I am trying to setup a single server to send out email from a single domain but I'm having trouble identifying the correct values for these Postfix settings.
mydomain = example.com
myhostname = example.com
myorigin = $mydomain
mydestination = $example, localhost.$example, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
Can someone can explain them so I know what I should be setting them to?
Things like $mydomain
appear to be added at runtime by the script. This seems to work (emails come from [email protected]) but I am weary of using values for parameters I don't understand.
Good for you. You should be weary of using parameters you don't understand. This is the failing of most control panel software. Most people start jacking with stuff they don't understand.
Your postfix should have come with a large amount of documentation and comments directly in the main.cf file, if it didn't, then find one of the originals that did because the documentation in that file is fantastic. Fortunately, Postfix has some pretty good defaults and you don't have to do much for a basic setup. All this really depends on what you are doing so I'll just explain how each of the parameters is used as you asked.
All the Postfix configuration parameters are documented in postconf(5).
If you prefer reading on the web, http://www.postfix.org/postconf.5.html has all the information. http://www.postfix.org/postconf.5.html#mydomain will jump to the entry for mydomain in the manual.
Good luck.