D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Sendmail - Clone all incoming email to compare spam filters?

 

On Thu, 25 Mar 2010, Sam Grabham wrote:

Hi Gordon

Yes it would be the "one acting as a switch to send the message to 2 servers downstream? " option, so what should i put in the /etc/mail/aliases file to make this work?
I have forward to groups, like sales in the past, but never forward all email 
to another before. I would have use the smart host option.
Ah, lots of emails... not just one address.. Hm.

In which case I can't think of anything easy off-hand.

If you had a complete list of emails, then in /etc/aliases:

gordon:         gordon@xxxxxxxxxxxxxxx,gordon@xxxxxxxxxxxxxxx
sam:            sam@xxxxxxxxxxxxxxx,sam@xxxxxxxxxxxxxxx

where test1.local.com would need to be a MX record pointing to the local server - same for test2.local.com.... (you might get away with
gordon:  gordon@[192.168.42.45], gordon@[192.168.42.46]

though.

Remember to accept emails to the domain on each test server - /etc/mail/local-host-names needs an entry for each domain it's accepting email for.
Gordon



Regards

Sam


Gordon Henderson wrote:
On Thu, 25 Mar 2010, Sam Grabham wrote:

Hi

Does anyone know how to clone all incoming email traffic to 2 separate smtp servers.
I want to prove a concept but need the same emails on both servers to 
compare.
have looked for a milter, but nothing seems to do what i want.

have tried "define(`SMART_HOST',`[exchange2007.xxxxxxxxx.co.uk]:[jessie.xxxxxxxxx.co.uk]')" but this chooses the first server only, if on-line.
have looked at a milter called  SYNONYM - The Mail ARCHiver 
(http://www.modulo.ro/synonym)
are there any INPUT_MAIL_FILTER options in sendmail i could use?
I am not going to open my copy of the bat book...

However - won't this affect the 2nd server - as the email will have headers added by the first? Or do you realy have 3 servers - one acting as a switch to send the message to 2 servers downstream?
If you have 3, you could simply use the /etc/mail/aliases on the incoming 
server and send it to the 2 other servers - they'd at least get the same 
headers, but wouldn't be able to use any IP address based blacklisting 
unless the rules were really clever to scan all the headers and ignore the 
last sending server.
Watch out for backscatter though.

Gordon

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html