Smarthost配置配置sSMTP以中继sendgrid

时间:2016-11-27 21:39:56

标签: sendgrid ssmtp smarthost

"明确的问题陈述"是如何配置sSMTP将sendgrid作为smarthost中继?

默认sSMTP配置为::

$ cat /etc/ssmtp/ssmtp.conf
root=postmaster
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=mail
#rewriteDomain=
hostname=spinoza 

使用Exim4,我们可以使用以下配置将SMTP配置为智能主机(它正常工作)::

root@me:/etc/exim4# grep -E 'sendgri|smart' update-exim4.conf.conf
dc_eximconfig_configtype='smarthost'
dc_smarthost='smtp.sendgrid.net::587'
root@me:/etc/exim4#

1 个答案:

答案 0 :(得分:1)

试试这个:

mailhub=smtp.sendgrid.com:587
UseSTARTTLS=YES
FromLineOverride=YES
AuthUser=login_sendgrid
AuthPass=password_sendgrid