Chciałbym umożliwić wysłanie maila pod dany adres tylko z jednego maila. Resztę zablokować. Generalnie chodzi mi o listę mailingową.
Posłużyłem się tym przykładem, tylko domeny zmieniłem na adresy mailowe.
Kod: Zaznacz cały
/etc/postfix/main.cf:
smtpd_recipient_restrictions =
...
check_recipient_access hash:/etc/postfix/protected_destinations
...the usual stuff...
smtpd_restriction_classes = insiders_only
insiders_only = check_sender_access hash:/etc/postfix/insiders, reject
/etc/postfix/protected_destinations:
all@my.domain insiders_only
all@my.hostname insiders_only
/etc/postfix/insiders:
my.domain OK matches my.domain and subdomains
another.domain OK matches another.domain and subdomains
W jaki sposób mogę to zablokować ?
main.cf
Kod: Zaznacz cały
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination check_recipient_access hash:/etc/postfix/protected_destinations, reject
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_restriction_classes = insiders_only
insiders_only = check_sender_access hash:/etc/postfix/insiders, reject
Kod: Zaznacz cały
mail_z_ktorego_moge_wysylac@gmail.com<------>OK
Kod: Zaznacz cały
mail_na_ktory_wysylam@xxx.com insiders_only,reject