Ignoring last received from
glenn.steen at gmail.com
Mon Apr 23 15:08:12 IST 2007
On 23/04/07, Alex <alex at skynet-srl.com> wrote:
> Hi guys
> I'm playing with a damned configuration I cant' figure how to have i t
> THE PROBLEM
> 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: 220.127.116.11 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 : 18.104.22.168 <---- 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?
By having the flow:
INET -> FW -> PF with MS -> mailstore
Question: Why would you not put MailScanner closer to the internet? It
would solve the problem neatly:-).
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
More information about the MailScanner