现在越来越多的邮箱服务器及公司对垃圾邮件的管理日趋严格,独立IP发信被拦截的机率逐渐增大,那么在这种情况下,自建邮局使用SMTP Relay服务就显的特别重要。
部分面板已经提供SMTP RELAY可视化配置,但是诸多参数无法在可视化中配置,有可能导致无法连接
需要进入到postfixs配置文件
/etc/postfix/main.cf 或是master.cf
以AMAZON SES smtp replay设置为例。
relayhost = [email-smtp.us-east-1.amazonaws.com]:587
smtp_sasl_auth_enable = yes
smtp_use_tls=yes
smtp_tls_security_level = encrypt
smtp_tls_note_starttls_offer = yes
smtp_sasl_password_maps = static:username :password//smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
#END_POSTFIX_RELAY
查找
smtp_fallback_relay=
注释掉此行,如没有则不理会。
打开或是建立文件
/etc/postfix/sasl_passwd.
添加对应的用户名及密码
[email-smtp.us-west-2.amazonaws.com]:587 SMTPUSERNAME:SMTPPASSWORD