HOWTO Setup Postfix: Difference between revisions

From Research
Jump to navigation Jump to search
Line 6: Line 6:
<br>
<br>


'''/etc/postfix/main.cf'''
edit '''/etc/postfix/main.cf'''
  myhostname = zero.iat.sfu.ca  
  myhostname = zero.iat.sfu.ca  
             ''naturally, use '''your''' server's '''real''' name'' :-)
             ''naturally, use '''your''' server's '''real''' name'' :-)
   
   
  mydomain = iat.sfu.ca
  mydomain = iat.sfu.ca
  sender_canonical_maps = hash:/etc/postfix/sender_canonical
 
  virtual_maps = hash:/etc/postfix/virtual
add to '''/etc/postfix/main.cf'''
# rewrites addresses
recipient_canonical_maps = hash:/etc/postfix/recipient_canonical
  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
alias_maps = hash:/etc/aliases
  relayhost = ''gotta check on this!''
  relayhost = ''gotta check on this!''

Revision as of 18:09, 15 February 2007

Install Postfix

# emerge postfix -va

Configuration

Configure Postfix; the relevant settings to be tweaked are presented:

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
recipient_canonical_maps = hash:/etc/postfix/recipient_canonical
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

alias_maps = hash:/etc/aliases

relayhost = gotta check on this!