[exim-dev] [Bug 1872] New: not-quit acl missed during DATA a…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 1872] New: not-quit acl missed during DATA and after final dot
https://bugs.exim.org/show_bug.cgi?id=1872

            Bug ID: 1872
           Summary: not-quit acl  missed during DATA and after final dot
           Product: Exim
           Version: 4.87
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Documentation
          Assignee: nigel@???
          Reporter: jasen@???
                CC: exim-dev@???


If the TCP connection is dropped between "354 Enter message" and "250 OK"
ACL not-quit is not being run.

I would expect a call of the ACL with $smtp_notquit_reason = "connection-lost"

for the cases

"SMTP connection lost after final dot"

and

"lost while reading message data"


I fixed this deficiency by adding smtp_notquit_exit calls:

smtp_notquit_exit(US"connection-lost",NULL,NULL);

in receive.c:handle_lost_connection() immediately before return

and in receive.c:receive_msg() 3 below three lines after

uschar *msg = US"SMTP connection lost after final dot";


I note that in the latter case (lost after final dot) $message_exim_id is set
which can be useful if there is a need to undo something that was done in the
smtp_data ACL

--
You are receiving this mail because:
You are on the CC list for the bug.