[exim-dev] [Bug 2903] Rewrite rules in 4.96 cause SMTP conne…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 2903] Rewrite rules in 4.96 cause SMTP connections to drop
https://bugs.exim.org/show_bug.cgi?id=2903

Dean Brooks <dean@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |dean@???
         Resolution|FIXED                       |---


--- Comment #10 from Dean Brooks <dean@???> ---
I'm reopening out of an abundance of caution. We ran into this same problem
with global rewrites after upgrading to 4.96 yesterday. However, our problem is
occurring for some addresses even if *none* of the rewrite rules match. It
would immediately log an error and the smtp connection would drop.

The rewrite rule we have in the format of:

^(.*)@ourdomain.net $1@??? hE

To reproduce, in a manual smtp transaction we used the following commands:
-----------------------------------------------------------------------
EHLO ourdomain.com
MAIL FROM:<johndoe@???>
RCPT TO:<johndoe@???>
DATA
From: johndoe@??? <johndoe@???>
To: johndoe@???
Subject: test

test message
.
-----------------------------------------------------------------------

Immediately upon encountering the blank line after the headers, the smtp
transaction would drop. Debug shows:

end of ACL "check_rcpt": ACCEPT
250 Accepted
data
354 Enter message, ending with "." on a line by itself
From: johndoe@??? <johndoe@???>
To: johndoe@???
Subject: test
host in ignore_fromline_hosts? no (option unset)

johndoe@??? in "^(.*)@ourdomain.net"? no (end of list)
LOG: MAIN
rewrite: malformed address: <johndoe@???>
may not follow johndoe@???

** Note that the address did *not* actually match the rewrite rule, but it
still threw an error and disconnected the smtp transaction. I don't know if
this commit fixes this issue as well, but wanted to be sure someone saw this.

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