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

What domains to receive mail for

The mydestination parameter specifies what domains this machine will deliver locally, instead of forwarding to another machine. The default is to receive mail for the machine itself. See the VIRTUAL_README file for how to configure Postfix for hosted domains.

You can specify zero or more domain names, "/file/name" patterns and/or " type:table" lookup tables (such as hash:, btree:, nis:, ldap:, or mysql:), separated by whitespace and/or commas. A "/file/name" pattern is replaced by its contents; " type:table" requests that a table lookup is done and merely tests for existence: the lookup result is ignored.

IMPORTANT: If your machine is a mail server for its entire domain, you must list $ mydomain as well.

Example 1: default setting.

/etc/postfix/main.cf:
    
mydestination = $
myhostname localhost.$
mydomain localhost

Example 2: domain-wide mail server.

/etc/postfix/main.cf:
    
mydestination = $
myhostname localhost.$
mydomain localhost $
mydomain

Example 3: host with multiple DNS A records.

/etc/postfix/main.cf:
    
mydestination = $
myhostname localhost.$
mydomain localhost 
        www.$
mydomain ftp.$
mydomain

Caution: in order to avoid mail delivery loops, you must list all hostnames of the machine, including $ myhostname, and localhost.$ mydomain.

Postfix Documentation
Previous Page Home Next Page