HOWTO Setup Postfix: Difference between revisions

From Research
Jump to navigation Jump to search
Line 29: Line 29:
  alias_database = hash:/etc/aliases
  alias_database = hash:/etc/aliases


relayhost = ''gotta check on this!''
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

Revision as of 18:45, 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

# maps 'virtual' addresses
virtual_maps             = hash:/etc/postfix/virtual

# the name says everything
###append_dot_mydomain = yes

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

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

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