Necessary to limit one definitive domain to only send messages in my local net.
I am following the documentation of postfix..
http://www.postfix.org/RESTRICTION_CLASS_README.html
main.cf
Code:
smtpd_recipient_restrictions =
check_sender_access
hash:/etc/postfix/restricted_senders,
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unauth_destination,
reject_unauth_pipelining,
reject_invalid_hostname,
reject_rbl_client opm.blitzed.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client sbl-xbl.spamhaus.org,
smtpd_restriction_classes = local_only
local_only = check_recipient_access hash:/etc/postfix/local_domains,reject
local_domains
Code:
intranet.test.com OK
restricted_senders
Code:
intranet.test.com OK
When I enter in the webmail (squirrelmail) with the user
test@intranet.test.com, and sending a message internally or external appears the following error:
Code:
451 Server configuration error