Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Postfix Documentation
Previous Page Home Next Page

Recipient address verification

As mentioned earlier, recipient address verification may be useful to block mail for undeliverable recipients on a mail relay host that does not have a list of all valid recipient addresses. This can help to prevent the mail queue from filling up with MAILER-DAEMON messages.

Recipient address verification is relatively straightforward and there are no surprises. If a recipient probe fails, then Postfix rejects mail for the recipient address. If a recipient probe succeeds, then Postfix accepts mail for the recipient address.

By default, address verification results are not saved. To avoid probing the same address repeatedly, you can store the result in a persistent database as described later.

/etc/postfix/
main.cf:
    
smtpd_recipient_restrictions = 
        
permit_mynetworks
        
reject_unauth_destination
        ...
        
reject_unknown_recipient_domain
        
reject_unverified_recipient
        ...

The " reject_unknown_recipient_domain" restriction blocks mail for non-existent domains. Putting this before " reject_unverified_recipient" avoids the overhead of generating unnecessary probe messages.

The unverified_recipient_reject_code parameter (default 450) specifies how Postfix replies when a recipient address is known to bounce. Change this setting into 550 when you trust Postfix's judgments.

Postfix Documentation
Previous Page Home Next Page