To begin, locate your system’s Postfix configuration files. In most distributions, these will be in /etc/postfix. If you’re having trouble finding the files try 'locate main.cf'.
Add your Easy-SMTP login credentials to /etc/postfix/sasl_passwd
|
Rebuild the password hash
$ chown root:root /etc/postfix/sasl_passwd
$ chmod 600 /etc/postfix/sasl_passwd
$ cd /etc/postfix ;; postmap hash:/etc/postfix/sasl_passwdAdd the following to /etc/postfix/main.cf. Note that if you’re using a Postfix version less than 2.5 the configuration lines are slightly different.
|
Restart Postfix Note that your system command to restart Postfix may be different
|
If you want to use Easy-SMTP for only certain mail transactions, you can specify the destinations to relay via Easy-SMTP in the /etc/postfix/transport file. The transport configuration file entries are formatted as destination:relay-host.
Add an entry to /etc/postfix/transport.
|
Rebuild the transport database.
$ chown root:root /etc/postfix/transport
$ chmod 600 /etc/postfix/transport
$ cd /etc/postfix ;; postmap hash:/etc/postfix/transport
Enable transport mapping in /etc/postfix/main.cf by adding:
|
Restart Postfix. Note that your command to restart Postfix may be different.
|