You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure Postfix to send mail using an external SMTP server
Update and Install dependencies
apt-get update
apt-get install postfix mailutils libsasl2-modules
During the installation, a prompt will appear asking for your general type of mail configuration.
- Select Internet
- Type 'localhost'
Copy the files (main.cf, generic and sasl_passwd) to /etc/postfix
Modify the file /etc/postfix/main.cf and change the following lines
myhostname = debian # CHANGE ME
relayhost = [smtp.domain.com]:587 # CHANGE ME
Modify the file /etc/postfix/sasl_passwd with your mail credentials