oui .
il suffit de ne pas filtrer sur les mails qui viennent par exemple d'une interface donnée .
par exemple soit une conf actuelle ainsi ( master.cf )
smtp inet n - n - 10 smtpd
-o cleanup_service_name=pre-cleanup
pickup fifo n - n 60 1 pickup
pre-cleanup unix n - n - 0 cleanup
-o canonical_maps=
-o sender_canonical_maps=
-o recipient_canonical_maps=
-o masquerade_domains=
-o content_filter=lmtp-filter:[127.0.0.1]:10024
cleanup unix n - n - 0 cleanup
-o mime_header_checks=
-o nested_header_checks=
-o body_checks=
-o header_checks=
-o header_checks=pcre:/etc/postfix/maps/headers/header_checks2
[...]
lmtp-filter unix - - - - - lmtp
-o lmtp_data_done_timeout=1200
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - 5 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
|
dans le cas on a une archi qui se présente ainsi
smtpd ---> pre-cleanup ---> amavis --> cleanup ---> qmgr
|
l'idée est donc de créer une interface qui par exemple ne passera pas par le pre-cleanup ( vu que c'est lui qui files les mails a amavis )
10.0.0.1:smtp inet n - n - - smtpd
-o smtpd_client_restrictions=permit_mynetworks,reject
127.0.0.1:smtp inet n - n - - smtpd
-o smtpd_client_restrictions=permit_mynetworks,reject
62.212.112.250:smtp inet n - n - - smtpd -o receive_override_options=no_address_mappings
-o cleanup_service_name=pre-cleanup
|
ceci est bien sur tiré de la fabuleuse doc de postfix (le FILTER_README de mémoire mais j'ai la flemme de rechercher le nom exact
)
Message édité par mikala le 12-08-2004 à 07:27:09