Configuring postfix for email relay: Difference between revisions

From MiRTA PBX documentation
Jump to navigation Jump to search
(Created page with "In main.cf add the following: <pre> relayhost = <your relay host>:587 smtp_use_tls = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_auth_enable = yes s...")
 
No edit summary
 
Line 1: Line 1:
Install any prerequisite
<pre>
yum install postfix cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain
</pre>
In main.cf add the following:
In main.cf add the following:



Latest revision as of 20:12, 26 May 2020

Install any prerequisite

yum install postfix cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain

In main.cf add the following:

relayhost = <your relay host>:587
smtp_use_tls = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =

in sasl_passwd

<your relay host>:587 username:password

Don't forget to postmap the sasl_passwd