HOWTO Setup Postfix: Difference between revisions
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
Check that these are uncommented, in '''/etc/postfix/main.cf'''. Gentoo is shown; other distributions omit the '''''/mail''''' path. | Check that these are uncommented, in '''/etc/postfix/main.cf'''. Gentoo is shown; other distributions omit the '''''/mail''''' path (FC6 is one). | ||
alias_maps = hash:/etc/mail/aliases | alias_maps = hash:/etc/mail/aliases | ||
alias_database = hash:/etc/mail/aliases | alias_database = hash:/etc/mail/aliases |
Revision as of 19:09, 15 February 2007
Install Postfix
# emerge postfix -va
Configuration
edit /etc/postfix/main.cf
myhostname = zero.iat.sfu.ca naturally, use your server's real name :-) mydomain = iat.sfu.ca
add to /etc/postfix/main.cf
# rewrites addresses sender_canonical_maps = hash:/etc/postfix/sender_canonical
We don't receive mail, so comment this line out, as shown, in /etc/postfix/main.cf
#mydestination = $myhostname, localhost.$mydomain, localhost
Check that these are uncommented, in /etc/postfix/main.cf. Gentoo is shown; other distributions omit the /mail path (FC6 is one).
alias_maps = hash:/etc/mail/aliases alias_database = hash:/etc/mail/aliases
You can quickly and succinctly get an overview of the non-default postfix settings:
postconf -n
Create the file /etc/postfix/sender_canonical. This ensures that any replies or whatever will go to a real (or nearly :-) ) human
root gordonp+server_name@sfu.ca
Create the .forward file in root's home-dir. This will cause root-directed mail (like logwatch and cron output) to go to our admin mailing-list:
admin@siat.sfu.ca