Following this guide, specifically going to figure 4, what should I put in the dialogue box? My mail subdomain is mail.example.com, but the advice from the dialogue box says that if a mail address on the localhost is [email protected], then the correct thing to enter would be example.com I would want a user to have an address like [email protected], so that makes me feel like I should enter example.com. So which is it -- mail.example.com or example.com? Would entering mail.example.com imply that an email user would be [email protected]? Is this all that's going on here?
Please read Postfix's STANDARD CONFIGURATION README carefully. Postfix has perfect documentation, it's worth to just dive in it.
I believe they ask for a
myhostname
value in the Postfix config (I wonder, why they never explain which parameter exactly they are setting in these countless how-tos?)In general, you use a local hostname, i.e. whatever
hostname -f
is answering. This name it uses in a banner, in delivery status notifications, in theReceived
header in the email.For a domain mail to be accepted, you list it in the
mydestination
list. This is the list of domains for which Postfix consider itself a final destination. It will then deliver mail withlocal
agent, which is set bylocal_transport
parameter.(There are also virtual domains, but I suspect you don't need them now.)