That way you can just amend the values to suit your SMTP server details, and the rest of the configuration steps can remain following commands append the mail server connection details to the "/etc/postfix/sasl_passwd" file, then display the contents of the file.Ĭat > /etc/postfix/sasl_passwd > /etc/postfix/main.cf, size=473, nrcpt=1 (queue active) We will use the following environment variables during the configuration. To run from a user with sudo privileges, just prefix with the sudo command. The following operations are performed as the root user. Systemctl start postfix Configure the Email Relay Yum install -y postfix mailx cyrus-sasl cyrus-sasl-plain Install Postfix and some related packages as the root user.ĭnf install -y postfix mailx cyrus-sasl cyrus-sasl-plain You won't be able to the Gmail SMTP servers if you have 2-factor authentication enabled on your Google account, which is a must these days. You will need to get the details from your email administrator or your hosting provider. It's important you have a mail server that accepts connections from the relay. It is really important you make sure port 25 is blocked on the server's local firewall, so only processes on the server can access this email relay.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |