OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: dedicated antivirus and anti spam

From: Alexandre Balistrieri (balisir.inpe.br)
Date: Fri Jun 01 2007 - 07:10:15 CDT


On Friday 01 June 2007 08:20, cachak wrote:
> hello
> i have to server
> one server for mail server with :
> -postfix
> -maildrop
> -courier-auth
> -courier-imap
> -saslautd
>
> and other server for content filtering(antivirus and spam) with :
> -amavisd
> -kaspersky
> -spamassasin
>
> if antivirus and mta in one server, mail server is fine, and my
> configure in main is :
> content_filter=smtp-amavis:[127.0.0.1]:10024
> and in master.cf
> smtp-amavis unix - - n - 2 lmtp
> -o lmtp_data_done_timeout=1200
> -o lmtp_send_xforward_command=yes
>
> 127.0.0.1:10025 inet n - n - - smtpd
> -o content_filter=
> -o local_recipient_maps=
> -o relay_recipient_maps=
> -o smtpd_restriction_classes=
> -o smtpd_client_restrictions=
> -o smtpd_helo_restrictions=
> -o smtpd_sender_restrictions=
> -o smtpd_recipient_restrictions=permit_mynetworks,reject
> -o mynetworks=127.0.0.0/8
> -o strict_rfc821_envelopes=yes
> -o smtpd_error_sleep_time=0
> -o smtpd_soft_error_limit=1001
> -o smtpd_hard_error_limit=1000
>
>
> if i m use dedicated content filter i dont know to configure
> how to configure in main.cf,master.cf(server one) and in server two
>
> server one is with ip public
> server two with ip private
>
> Regard,
> Sahir
> Administrator

my settings,
host with postfix (ip public and 10.0.0.1)

host with amvisd-new (10.0.0.2)

main.cf:
content_filter=smtp-amavis:10.0.0.2:10024

master.cf
smtp-amavis unix - - n - 2 lmtp
        -o lmtp_data_done_timeout=1200
        -o lmtp_send_xforward_command=yes
        -o disable_dns_lookups=yes
        -o max_use=20

10.0.0.1:10025 inet n - n - - smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8,10.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o smtpd_error_sleep_time=0
        -o smtpd_soft_error_limit=1001
        -o smtpd_hard_error_limit=1000
        -o smtpd_client_connection_count_limit=0
        -o smtpd_client_connection_rate_limit=0
        -o
receive_override_options=no_header_body_checks,no_unknown_recipient_checks

amavisd.conf
$forward_method = 'smtp:[10.0.0.1]:10025';
inet_acl = qw(127/8 ::1 10.0.0.1);

--
[]s
Bali