myhostname=mail.matthewhelmke.com
This works with the parameters listed in the Postfix main.cf file:
Click here to view code image
matthew@seymour:~$ sudo postconf -e "smtp_sasl_auth_enable = yes"
myhostname=othername.matthewhelmke.com
As you can see, postconf is quite convenient. You can learn more about
postconf from the man page.
You start, stop, and restart Postfix by using this command, with the
appropriate one of the three action words start, stop, or restart, as
shown here:
Click here to view code image
matthew@seymour:~$ sudo /etc/init.d/postfix start
Complicated email server setup is beyond the scope of this book; consider
Postfix: The Definitive Guide by Kyle Dent for more information. This is a
great reference and rather unusual because it is a complete and useful
reference in only 250 pages or so. If you want to know something specific
about Postfix, this is the book to read.
The following sections address some commonly used advanced options. For
more information on Postfix, as well as other MTAs, see the “References”
section at the end of this chapter.
Configuring Masquerading
Sometimes you might want to have Postfix masquerade as a host with a name
other than the actual hostname of your system. Such a situation could occur if
you have a dial-up connection to the Internet and your ISP handles all your
mail for you. In this case, you want Postfix to masquerade as the domain
name of your ISP. For example, the following strips any messages that come
from matthew.gracehopper.net to just gracehopper.net:
Click here to view code image
masquerade_domains = gracehopper.net
Using Smart Hosts
If you do not have a full-time connection to the Internet, you will probably
want to have Postfix send your messages to your ISP’s mail server and let it
handle delivery for you. Without a full-time Internet connection, you could