Вставляем следующие строки в конфигурационный файл etc/postfix/main.cf
smtpd_helo_restrictions =
smtpd_helo_restrictions =
permit_mynetworks,
reject_non_fqdn_hostname,
reject_invalid_hostname,
reject_unknown_hostname
smtpd_sender_restrictions = permit_mynetworks, reject_non_fqdn_sender, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_invalid_hostname, reject_unknown_sender_domain, check_sender_access hash:/etc/postfix/filters/sa-blacklist
smtpd_client_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/access, reject_non_fqdn_sender, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_invalid_hostname, reject_unknown_sender_domain, check_sender_access hash:/etc/postfix/filters/sa-blacklist
strict_rfc821_envelopes = yes
smtpd_reject_unlisted_sender = yes
smtpd_reject_unlisted_recipient = yes
unknown_address_reject_code = 554
unknown_hostname_reject_code = 554
unknown_client_reject_code = 554
reject_non_fqdn_hostname,
reject_invalid_hostname,
reject_unknown_hostname
smtpd_sender_restrictions = permit_mynetworks, reject_non_fqdn_sender, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_invalid_hostname, reject_unknown_sender_domain, check_sender_access hash:/etc/postfix/filters/sa-blacklist
smtpd_client_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/access, reject_non_fqdn_sender, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_invalid_hostname, reject_unknown_sender_domain, check_sender_access hash:/etc/postfix/filters/sa-blacklist
strict_rfc821_envelopes = yes
smtpd_reject_unlisted_sender = yes
smtpd_reject_unlisted_recipient = yes
unknown_address_reject_code = 554
unknown_hostname_reject_code = 554
unknown_client_reject_code = 554
Немає коментарів:
Дописати коментар