【发布时间】:2014-11-25 22:55:56
【问题描述】:
我希望一个发送地址使用不同的 gmail 帐户,而所有其他地址都使用默认的 gmail 帐户。
正如大多数在线教程所说,这应该可以工作,但 postfix 使用所有电子邮件的默认 smtp 用户名和密码...
是否有任何关于 postfix 的文档可以提供帮助? 发件人依赖的 tls 加密似乎也不是一个选项......我错了吗?
### main.cf ###
relayhost = smtp.gmail.com:587
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
sender_dependent_relayhost_maps=/etc/postfix/senderDependentRelayHostMap
smtp_use_tls = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_note_starttls_offer = yes
smtp_tls_...
### senderDependentRelayHostMap ###
test@gmail.com smtp.gmail.com:587
### sasl_password ###
#per sender email stmp username and password
test@gmail.com test@gmail.com:testPass
#default route
smtp.gmail.com:587 default@site.com:defaultPass
【问题讨论】:
标签: postfix-mta