2016-11-27 57 views
1

「清楚的問題陳述」是如何配置sSMTP將sendgrid作爲smarthost來中繼?Smarthost配置配置sSMTP來中繼sendgrid

默認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,我們可以使用下面的配置(它的工作)::

[email protected]:/etc/exim4# grep -E 'sendgri|smart' update-exim4.conf.conf 
dc_eximconfig_configtype='smarthost' 
dc_smarthost='smtp.sendgrid.net::587' 
[email protected]:/etc/exim4# 

回答

1

配置SMTP作爲智能主機,試試這個:

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