1

“明确的问题陈述”是 How to configure sSMTP to relay sendgrid as 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#
4

1 回答 1

1

尝试这个:

mailhub=smtp.sendgrid.com:587
UseSTARTTLS=YES
FromLineOverride=YES
AuthUser=login_sendgrid
AuthPass=password_sendgrid
于 2016-11-29T10:41:47.397 回答