Ignoring last received from
alex at skynet-srl.com
Mon Apr 23 14:22:37 IST 2007
I'm playing with a damned configuration I cant' figure how to have i t
All the mail that comes on some servere passes on STMP servers that are
behind a firewall.
Those servers are placed in a DMZ and use Postfix with load balancing.
Those SMTP servers decide where to send their mail on different mail
servers using sendmail AND Mailscanner.
INTERNET ----->firewall----->SMTP servers (10.0.0.55)------- route to
SMTP using MS -->Mailscanner
If I set up a wihitelist like the following
From: 22.214.171.124 and To: address at domain yes
it will never match since the headers of the received mail on the
Mailscanner servers look like
Received from: 10.0.0.55 <----- this is the internal IP of the last
passed trough SMTP server
Received from : 126.96.36.199 <---- this is the public INTERNET server who
sent the mail and I cant' match to...
THE SOLUTIONS I TRIED (with no success)
a) used the Remove Header in MS configuration, but this seems top only
match complete headers.
I cannote remove
Received from : 10.0.0.
but I can remove all the receive from headers (uselsess for my problem)
b) It seems I cant find a m4 macro to tell sendmail not to avoid adding
the Received from header (it's so easy in Postfix)
I don't think I'm the only one with this problem.
How did you guys solve this?
More information about the MailScanner