|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: sending unchanged incoming mail to multiple servers
From: mouss (mlist.only
free.fr)
Date: Thu Feb 01 2007 - 16:17:52 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jason Smith wrote:
> I have spent 3 days reading thru post trying to find a firm answer,
> but alas my powers are weak..
>
> I need to test several spamfilters/email setups at the same time. To
> do a valid test I need the email that is sent to each server to be in
> it's original condition. That means no header modifications/rewrites
> etc. Currently the server acting as the gateway is using Postfix
> 2.1.5 .
>
> What is the best way for me to send copies of all emails to 4 other
> servers on the same network?
>
> Some solutions I have though of might be:
> 1. Copy all to Bcc and then swap the name back to the original. Will
> this change the message in such a way that the various mail filters /
> uce will classify it as local mail?
>
That depends on the filter, but it should not (unless the filter is not
configured for the situation, or is not robust enough).
You can use header_checks with IGNORE to prevent postfix from adding a
Received header (take the time to assess this before using it. you may
lose important information).
> 2. Using content header_check = regexp:/etc/postfix/header_checks then
> put /^Received:/ HOLD and send all email to the hold queue.
no need to resort to header_check. smtpd_client_restrictions is enough.
> Then
> somehow have a script run that copies this file to each of the other
> servers HOLD queue. Once it's copied to each server then release it?
> Not sure exactly how to do this though
>
too convoluted...
> 3. Use the XForward and alias to forward a copy?? will Xforward
> rewrite with original info?? not sure how this would work?
>
forget about xfroward.
> 4. Use Tcpflow and capture the incoming stream. Then some how use
> this to fake the original IP and dump it to port 25 of each of the
> test servers. I tried this manually and it works but I don't know how
> to do some flow control etc. I did this by setting an another IP
> address internally that matched the original IP address and set the
> route. Then sent each line by hand.
>
>
if you can make this work, then it's your best option. A similar
solution would be a transparent proxy that duplicates the flow.
> This issue was address back in 2004 but no answers given.
>
> by the way this was discussed somewhat before but no answer given back
> in 2004
>
> http://groups.google.com/group/mailing.postfix.users/browse_thread/thread/87b83afb51b52fef/735057e4133bb995?lnk=gst&q=duplicate+mail&rnum=2#735057e4133bb995
> <http://groups.google.com/group/mailing.postfix.users/browse_thread/thread/87b83afb51b52fef/735057e4133bb995?lnk=gst&q=duplicate+mail&rnum=2#735057e4133bb995>
>
>
no need to that far
http://archives.neohapsis.com/archives/postfix/2007-01/thread.html#538
(I am not saying it answers your question...).
copying at tcp/ip level is probably the "simplest" way.
otherwie, you can just chain filters if you can configure them to ignore
other filters "additions". if you can't, put a postfix in fornt of each
and use header_checks with IGNORE to remove headers that were added by
previous filters or previous postfixes.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]