Exim

exim4 發送錯誤的 Mail From 標頭

  • April 23, 2017

當我通過我的 smtp exim4 伺服器發送電子郵件時,我收到此錯誤:

The sender address blah@usersdomain@myserver.net is not\n553 5.1.2 a valid RFC-5321 address.

使用完整的電子郵件地址登錄伺服器。但是 exim4 只是將使用者登錄名與我的 primary_hostname 連接起來以得到這個崩潰。我怎樣才能改變這個?

這個問題的答案是:

acl_check_rcpt:
 ... your stuff here, then abit later towards the end of the ACL
 accept  
   authenticated = *
   # JolieRouge This took some time to search out
   # 2006-09-27 <pille@struction.de>
   # force empty domain, when fixing header during submission, as we use fqdn in our usernames (to avoid doubled domains)
   # 2007-01-30 <pille@struction.de>
   # added /sender_retain option to take any given address from 'Sender:'-header (used as 'Return-path:' and for 'MAIL FROM:'-SMTP-command)
   control       = submission/sender_retain/domain=

control = submission/sender_retain/domain=當您的登錄名是完整的電子郵件地址時,使用底線。

引用自:https://serverfault.com/questions/843442