Control Web Panel

WebPanel => E-Mail => Topic started by: thquantv on June 05, 2019, 07:46:51 AM

Title: Email relay
Post by: thquantv on June 05, 2019, 07:46:51 AM
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
Title: Re: Email relay
Post by: evansa on June 05, 2019, 11:24:34 PM
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