[exim-dev] [Bug 626] New: ACL drop should allow a 421 respon…

Góra strony
Delete this message
Reply to this message
Autor: Brad "anomie" Jorsch
Data:  
Dla: exim-dev
Temat: [exim-dev] [Bug 626] New: ACL drop should allow a 421 response
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=626
           Summary: ACL drop should allow a 421 response
           Product: Exim
           Version: 4.68
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: wishlist
          Priority: medium
         Component: ACLs
        AssignedTo: ph10@???
        ReportedBy: anomie@???
                CC: exim-dev@???



Created an attachment (id=216)
--> (http://bugs.exim.org/attachment.cgi?id=216)
A patch to special-case drop to allow a user-specified 421 code

In an ACL, we may want to drop the connection with a 421 status. While 'defer'
from the connect ACL does just what we want, there is no way to do it in other
ACLs. This does not work:

drop message = 421 Try again later

Since the default response for a drop is usually 550, exim logs the following
error and ignores the specified 421:

configured error code starts with incorrect digit (expected 5) in "421 Try
again later"

I've attached a patch that simply special-cases 421 when the message is being
dropped in smtp_handle_acl_fail(). Alternatives would be to add a whole new
verb, or a control modifier to close the connection after any verb (thereby
making 'drop' redundant to 'deny' with this new modifier).


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email