2016-11-27 5 views
1

La "déclaration de problème clair" est comment configurer sSMTP pour relayer sendgrid comme smarthost?Configuration Smarthost pour configurer sSMTP pour relayer sendgrid

La configuration par défaut sSMTP est ::

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

Avec Exim4 nous pouvons configurer SMTP comme smarthost en utilisant la configuration suivante (il travaille) ::

[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# 

Répondre

1

Essayez ceci:

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