このコンテンツは選択した言語では利用できません。
11.3.2.2. Basic Postfix Configuration
By default, Postfix does not accept network connections from any host other than the local host. Perform the following steps as root to enable mail delivery for other hosts on the network:
- Edit the
/etc/postfix/main.cf
file with a text editor, such asvi
. - Uncomment the
mydomain
line by removing the hash mark (#
), and replace domain.tld with the domain the mail server is servicing, such asexample.com
. - Uncomment the
myorigin = $mydomain
line. - Uncomment the
myhostname
line, and replace host.domain.tld with the hostname for the machine. - Uncomment the
mydestination = $myhostname, localhost.$mydomain
line. - Uncomment the
mynetworks
line, and replace 168.100.189.0/28 with a valid network setting for hosts that can connect to the server. - Uncomment the
inet_interfaces = all
line. - Restart the
postfix
service.
Once these steps are complete, the host accepts outside emails for delivery.
Postfix has a large assortment of configuration options. One of the best ways to learn how to configure Postfix is to read the comments within
/etc/postfix/main.cf
. Additional resources including information about LDAP and SpamAssassin integration are available online at http://www.postfix.org/.