I'm using Amavis with Postfix. Postfix receives email and amavis is 
acting as content filter listening on port 10024 - as ussual.

I don't want to waste a hardware capacities and CPU load, so I decided 
to bypass amavis when sending mails from our server outside.
I found many howtos on the internet, but every is the same: when I 
send mail from my network to my network through my server, the mail 
check by amavis is bypassed. And this is also what I've achieved on my 
system (found howto on 
http://marc.info/?l=amavis-user&m=113415019700881, this works fine)

What do I want:
I want to check all the emails including the ones being send between 
computers inside @mynetwork. Only when mail goes outside of 
@mynetwork, it shouldn't be checked.

How can I do that?

Many thanks


----------------------------
Amavis configuration (/etc/amavisd.conf):

# LOCAL POLICY BANK
@mynetworks = qw( /_some_my_public_networks_here_/ );
$policy_bank{'MYNETS'} = {  # mail originating from @mynetworks
     bypass_spam_checks_maps   => [1],  # don't spam-check internal mail
     bypass_virus_checks_maps => [1],
     bypass_banned_checks_maps => [1],  # don't banned-check internal mail
     bypass_header_checks_maps => [1],
     final_spam_destiny   => D_PASS,
     final_virus_destiny => D_PASS,
     final_banned_destiny   => D_PASS,
     final_bad_header_destiny => D_PASS
};

$inet_socket_port = 10024;


-------------------------------
Postfix config
/etc/postfix/master.cf:
smtp-antivir unix -     -       n       -       10  smtp
     -o smtp_data_done_timeout=1200
     -o smtp_send_xforward_command=yes
     -o disable_dns_lookups=yes
     -o max_use=20


127.0.0.1:10025 inet n  -       n       -       -  smtpd
     -o content_filter=
     -o smtpd_restriction_classes=
     -o smtpd_delay_reject=no
     -o smtpd_client_restrictions=permit_mynetworks,reject
     -o smtpd_helo_restrictions=
     -o smtpd_sender_restrictions=
     -o smtpd_recipient_restrictions=permit_mynetworks,reject
     -o smtpd_data_restrictions=reject_unauth_pipelining
     -o smtpd_end_of_data_restrictions=
     -o mynetworks=127.0.0.0/8
     -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 smtpd_milters=
     -o local_header_rewrite_clients=
     -o local_recipient_maps=
     -o relay_recipient_maps=
     -o 
receive_override_options=no_address_mappings,no_header_body_checks,no_unknown_recipient_checks


/etc/postfix/main.cf
content_filter=smtp-antivir:[127.0.0.1]:10024

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected] 
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