O'Reilly logo

SpamAssassin by Alistair McDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring Postfix

The Postfix configuration files normally reside in /etc/postfix and /etc/mail/, although this may vary from distribution to distribution. The main files are main.cf and master.cf. To create an email gateway, perform the operations described in the following sections.

Accepting Email for the Domain

Postfix needs to be configured to accept email for the domain. To do this, edit the main.cf file and add or change the following lines, substituting the appropriate domain and hostname:

myhostname = mailgateway.domain.com
mydomain = domain.com
relay_domains = domain.com

Mail for the root User

Mail for the root user and other common aliases should be configured. This is done by editing the /etc/mail/aliases file and altering the entries ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required