New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Email relay

Started by thquantv, June 05, 2019, 07:46:51 AM

Previous topic - Next topic

thquantv

Dear all,
My email server with finished configure SPF, DKIM,... but sometimes go to spam gmail and blacklist by spamhaus.
I want to configure relay email to another mail server to send mail (Email relay service)

How to configure

evansa

Open /etc/postfix/main.cf for editing and configure the following;

relayhost = [mail.example.com]:587
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

Create /etc/postfix/sasl_passwd file and add the authentication details of the external SMTP server:

[mail.example.com]:587 user@example.com:passwd

chmod 0600 /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd

service postfix restart