Postfix

From AdminWiki

(Difference between revisions)
Jump to: navigation, search

Revision as of 16:56, 28 May 2009

Adding a Second Postfix Instance on one Server

Base reference: http://advosys.ca/papers/email/58-postfix-instance.html

  • Add an ip address to the server (e.g. 1.2.3.4)
ip addr add 1.2.3.4/8 dev eth0 # or see /etc/network/interfaces
  • Copy the /etc/postfix directory and all files
rsync -av /etc/postfix /tmp/
  • Create an additional spool directory
mkdir /tmp/spool
  • Create an additional data directory
mkdir /tmp/data; chown postfix.postfix /tmp/data
  • Edit the config files
    • /tmp/postfix/main.cf
inet_interfaces =1.2.3.4
smtp_bind_address = 1.2.3.4
queue_directory = /tmp/spool/
data_directory = /tmp/data
    • /etc/postfix/main.cf (default configuration file)
alternate_config_directories = /tmp/postfix/
  • check & start
postfix -c /tmp/postfix/ check
postfix -c /tmp/postfix/ start
Personal tools