Re: Exim (was Re: spam software)
Ross Boylan wrote:
On Sat, Sep 27, 2003 at 03:43:13PM +1000, Russell Shaw wrote:
all From and Reply-To headers only on mail that is sent out the smtp
transport to my dialup isp. However, exim3 doesn't let you rewrite
envelope addresses on per-transport rewrites. The only other option
is to use the rewrite rule in the "generic" section of exim.conf.
This applies the rule to every local message floating around the system,
so its effects are too undefined for my liking.
Does exim4 allow envelope rewriting on only an smtp outgoing
Yes. I use this feature ini an exim4 installation. But I see it
described in the exim3 book on p 177: "a new generic transport option
called headers_rewrite was added to Exim for release 3.20."
There is more detail on P.342.
I have this in exim.conf:
driver = smtp
headers_rewrite = firstname.lastname@example.org email@example.com
Then test with:
mail -s test user@remote
The response shows that firstname.lastname@example.org hasn't been
replaced with email@example.com.
From MAILER-DAEMON Sat Sep 27 19:08:21 2003
From: Mail Delivery System <Mailer-Daemon@main.mypc.com.au>
Subject: Mail delivery failed: returning message to sender
Date: Sat, 27 Sep 2003 19:08:21 +1000
This message was created automatically by mail delivery software (Exim).
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
SMTP error from remote mailer after MAIL FROM:<firstname.lastname@example.org> SIZE=1364:
host smtp.iprimus.com.au [184.108.40.206]: 553 <email@example.com> unable to verify address
------ This is a copy of the message, including all the headers. ------
Received: from russell by main.mypc.com.au with local (Exim 3.36 #1 (Debian))
for <user@remote>; Sat, 27 Sep 2003 19:08:20 +1000
From: Russell Shaw <firstname.lastname@example.org>
Date: Sat, 27 Sep 2003 19:08:20 +1000