[exim-dev] [Bug 2910] New: recipient callout ignoring errors…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 2910] New: recipient callout ignoring errors_to
https://bugs.exim.org/show_bug.cgi?id=2910

            Bug ID: 2910
           Summary: recipient callout ignoring errors_to
           Product: Exim
           Version: 4.96
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: ACLs
          Assignee: jgh146exb@???
          Reporter: thomasm-exim@???
                CC: exim-dev@???


I've implemented SRS rewriting using a redirect router setting errors_to .

If I do recipient verification with callout using the original sender,
the sender does not get rewritten.
According to debug information, errors_to is set correctly.

This might cause the verfication to fail due to SPF based rejection,
even if a mail to that destination would work with SRS rewriting.

It's even worse in the case of cutthrough delivery, when the verfication SMTP
connection will be held open (if the sender isn't immediately rejected) and
then used for sending the mail, which will bypass SRS rewriting completely.


This could be easily fixed by setting the from_address in src/verify.c (~ line
509):

 if (options & vopt_is_recipient)
   if (options & vopt_callout_recipsender)
     {
      from_address = addr->prop.errors_address ? addr->prop.errors_address :
sender_address;


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