1) log in as root to you system
2) edit the /etc/postfix/main.cf file and find the following line, the actual smtp server name will be different but we will be changing it to your ISP's SMTP server, so for example relais.videotron.ca
- Code: Select all
relayhost = relais.videotron.ca
3) because we require authentication we need to add a user name and password, at the bottom of the main.cf file add the following if not already there
- Code: Select all
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
Save the file and exit.
4) next we need to edit /etc/postfix/sasl_password If it is not already present create the file and enter in your credentials as so, replacing the user and passowrd with your own details and the smtp address of your ISP's mail server is not videotron in the below example
- Code: Select all
realais.videotron.ca user:pass
Save the file and exit
5) to enter the password into a db that postfix will use tyoe:
- Code: Select all
postmap /etc/postfix/sasl_passwd
6) reload postfix to apply the changes
- Code: Select all
postfix reload
If the username and password change at any point steps 3-6 must be repeated.
