Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3820

DNS Blocklist: implement DNSRBLHandler as MailHook instead of RcptHook

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • SMTPServer
    • None

    Description

      At the moment the DNSRBL handler (org.apache.james.protocols.smtp.core.fastfail.DNSRBLHandler) is implemented as a RcptHook. Thus, for every RCPT TO call this handler will be called and a blocklist lookup will be issued.

      One can argue It makes sense to implement the handler as a ConnectHandler, so the blocklist check is done as early as possible. However, if SMTP AUTH is successful then we should allow the connecting client anyway.

      Therefore it makes sense to implement the DNSRBL handler at MAIL FROM stage that is MailHook. One exception is the following. According to RFC 4954, authentication information can optionally provided as ESMTP AUTH parameter with a single value in the 'MAIL FROM:' command.

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ouvtam ouvtam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m