How prevent sending mail to ISP when using default rDNS

From PeerFreedom Wiki
Jump to navigation Jump to search

There are some cases when misconfigured Postfix server can deliver your local mail to your ISP, when you are using default hostname obtained from your IP address by rDNS. For example

Lets asume that your domain is

To prevent any leakage set in /etc/postfix/

parent_domain_matches_subdomains = smtpd_client_event_limit_exceptions
myhostname =
mydomain =
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost
relay_domains = $mydestination

You can also set virtual aliases for your local users, for example: ->