MD wrote:

> Hi!

> I'm running two servers with amavisd-new under debian with postfix.

> On Server A there is a spam collection account [EMAIL PROTECTED], where
> all viruses have to be delivered to.
> On host B all spam found should be delivered to Server A into the
> spam.collect account.

> If now Server A receives SPAM, I can see two messages in the
> spam.collect box. The SPAM mail itself, and a resport for each SPAM with
> title "SPAM FROM xxx"

> If Server B receives SPAM, I can see three messages since (I expect)
> server B identifies spam, generates a "SPAM FROM" message to Server A,
> forwards SPAM itself to Server A, where server A also identifies message
> as SPAM again and produces a second report...
> This second report always shows up as "SPAM FROM (?)" where the
> exclamation mark is present.

> What would be the right or common way to forward that Mails?
> I already was thinking of using a transport from B to A, not being
> handled via amavis but i don't want to switch off too much checks and
> don't want to open unnecessary ports .

> Any suggestions to this setup?

> Thanks a lot

> +-------------------------------+  +-------------------------------+
> | Miro Dietiker                 |  | MD Systems Miro Dietiker      |
> +-------------------------------+  +-------------------------------+

I'm not exactly clear on all points of your setup but
maybe this would work (or at least give you one idea).
At some appropriate place in main.cf create a
check_client_access map that will use a policy bank if
the mail originates from server B. Then only bypass checks
if mail from that client is addressed to [EMAIL PROTECTED] 

check_client_access hash:/etc/postfix/amavis_quarantine

/etc/postfix/amavis_quarantine:
192.168.1.15 FILTER smtp-amavis:[127.0.0.1]:10026

in amavisd.conf:
$inet_socket_port = [10024,10026];

Then set up a policy bank. This will override amavisd-new's
configured settings for any message received on port 10026.

$interface_policy{'10026'} = 'QUARANTINE';

$policy_bank{'QUARANTINE'} = {
 bypass_spam_checks_maps => [[qw( [EMAIL PROTECTED] )]],
 bypass_banned_checks_maps => [[qw( [EMAIL PROTECTED] )]],
 bypass_virus_checks_maps => [[qw( [EMAIL PROTECTED] )]],
 bypass_header_checks_maps => [[qw( [EMAIL PROTECTED] )]],
 spam_lovers_maps => [[qw( [EMAIL PROTECTED] )]],
 banned_files_lovers_maps => [[qw( [EMAIL PROTECTED] )]],
 virus_lovers_maps => [[qw( [EMAIL PROTECTED] )]],
 bad_header_lovers_maps => [[qw( [EMAIL PROTECTED] )]],
};

Gary V






Gary V



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to