[Exim] Address rewriting breakage

Top Page
Delete this message
Reply to this message
Author: Dave Turner
Date:  
To: exim-users
Subject: [Exim] Address rewriting breakage
Hi,

My setup is as follows. I have Exim running locally, and desire to use my
local username dct25@??? for internal messages. For
external messages, if they are from the address dct25@??? they
should be routed to one smarthost, and if they are from some other address
then they should be sent to a different smarthost. If they appear to come
from dct25@??? then they should be rewritten to
originate from dct25@??? and treated accordingly.

Something happened between 4.30 and 4.31 to stop this from working. I am
using the same config file for each version. Under 4.31

I am trying to track down a breakage that happened between 4.30 and 4.31.
Using the same config file, under 4.30 my local address
dct25@??? is happily rewritten as dct25@??? and it
gets directed to the right router. Some debugging output is included here.

21730 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
21730 Verifying dct25@???
21730 address match: subject=dct25@???
pattern=*@dct25.clare.cam.ac.uk
21730 dct25.clare.cam.ac.uk in "dct25.clare.cam.ac.uk"? yes \
    (matched "dct25.clare.cam.ac.uk")
21730 dct25@??? in "*@dct25.clare.cam.ac.uk"? \
    yes (matched "*@dct25.clare.cam.ac.uk")
21730 LOG: address_rewrite MAIN
21730   "dct25@???" from env-from rewritten \
    as "dct25@???" by rule 1
21730 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
21730 Considering dct25@???
21730 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
21730 routing dct25@???
21730 --------> smarthost router <--------
21730 local_part=dct25 domain=cam.ac.uk
21730 checking domains
21730 cam.ac.uk in "dct25.clare.cam.ac.uk:dct25:localhost:\
    localhost.localdomain"? no (end of \
    list)
21730 cam.ac.uk in "! +local_domains"? yes (end of list)
21730 checking senders
21730 address match: subject= pattern=dct25@???
21730  in "dct25@???"? no (end of list)
21730 smarthost router skipped: senders mismatch


On the the third line from the bottom, I would expect to have
subject=dct25@???. 4.30 does this. 4.31 does not.

I've had a brief look through the source but without much success -
perhaps someone who knows their way around a bit better can help?

Many thanks,

Dave