[postfix-users] mailannahme auf IP begrenzen?
Jan P. Kessler
postfix at jpkessler.info
Mi Apr 15 10:29:19 CEST 2009
Georg Käfer schrieb:
> /etc/postfix/main.cf:
> mynetworks_style = host
> mynetworks = 192.168.128.0/24, 127.0.0.0/8
> smtpd_recipient_restrictions =
> permit_mynetworks,
> reject_non_fqdn_recipient,
> permit_sasl_authenticated,
> reject_unauth_destination,
> check_recipient_access hash:/etc/postfix/recipient_access,
> permit
> smtpd_restriction_classes =
> check_if_mailfirewall_is_sender
> check_if_mailfirewall_is_sender =
> check_sender_access hash:/etc/postfix/mailfirewall-ip
>
> /etc/postfix/mailfirewall-ip:
> xx.xx.xx.xx OK
>
> /etc/postfix/recipient_access:
> testdomain.at check_if_mailfirewall_is_sender
>
> nicht vergessen habe ich auf:
> postmap /etc/postfix/mailfirewall-ip
> postmap /etc/postfix/recipient_access
>
Hehe, da herrscht wohl ein wenig Verwirrung bzgl sender, client und
recipient. Außerdem fehlt da irgendwo natürlich ein reject. Versuch's
mal so:
main.cf:
--------
smtpd_recipient_restrictions =
permit_mynetworks,
reject_non_fqdn_recipient,
permit_sasl_authenticated,
reject_unauth_destination,
check_recipient_access hash:/etc/postfix/recipient_access,
smtpd_restriction_classes =
check_if_mailfirewall_is_sender
check_if_mailfirewall_is_sender =
check_CLIENT_access hash:/etc/postfix/mailfirewall-ip,
REJECT
/etc/postfix/mailfirewall-ip:
-----------------------------
xx.xx.xx.xx OK
/etc/postfix/recipient_access:
-----------------------------
testdomain.at check_if_mailfirewall_is_sender
More information about the postfix-users
mailing list