Originally Posted by
AvengerX9
how can I disable relays ?
Having something like this in your main.cf file will often be a help:
Code:
smtpd_recipient_restrictions =
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
permit_mynetworks,
reject_unauth_destination,
reject_rbl_client bl.spamcop.net
permit
The important line is "reject_unauth_destination", which limits the incoming mail that doesn't arrive via your own network to destinations in Postfix's "mydestination =" line in the main.cf file.
Bookmarks