“明确的问题陈述”是 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#