[Postfixbuch-users] smtp_restriction_classes bypass amavis
Vadim Korschok
korschok at caritas-geldern.de
Sa Aug 30 16:33:20 CEST 2008
Hallo zusammen,
ich möchte mittels der Datei no_filter den Mailaccount testmail* von Amavis ausschließen.
Wenn ich die letzte Zeile in der no_filter auskommentiere funktioniert dies auch. Was mache ich hier falsch, die Mail wird immer an Port 10024 weitergeleitet und nicht an Port 10021.
main.cf
smtpd_restriction_classes = no_filter, greylisting, restrictive, permissive
no_filter = check_sender_access regexp:/etc/postfix/no_filter
greylisting = check_policy_service inet:127.0.0.1:10023
restrictive = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient
permissive = permit
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
check_recipient_access hash:/etc/postfix/recipient_access,
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
content_filter = smtp:[127.0.0.1]:10020
master.cf
127.0.0.1:10020 inet n - n - - smtpd
-o mynetworks=127.0.0.0/8,78.47.80.80
-o smtp_send_xforward_command=yes
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=no_filter
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=no_filter
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o content_filter=
-o disable_dns_lookups=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
127.0.0.1:10021 inet n - n - - smtpd
-o mynetworks=127.0.0.0/8,78.47.80.80
-o smtp_send_xforward_command=yes
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-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
-o disable_dns_lookups=yes
-o content_filter=
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_delay_reject=no
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-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,78.47.80.80
-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
no_filter:
/^testmail\.*$/ FILTER smtp:[127.0.0.1]:10021
/^.*@.*$/ FILTER amavis:[127.0.0.1]:10024
recipient_access:
postmaster at domain.de greylisting
Mehr Informationen über die Mailingliste Postfixbuch-users