講故事短。我的 MacOS 版本是:12.4。
在 /etc/postfix/ 中:
在sasl_passwd我有:
smtp.emailsrvr.com:587 <myEmail>:<password>
在main.cf我有:
# custom POSTFIX email sender config
relayhost = smtp.emailsrvr.com:587
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd
smtp_sasl_mechanism_filter = plain
# also tried AUTH LOGIN in the line above
smtp_sasl_security_options =
smtp_use_tls=yes
smtp_tls_security_level=encrypt
tls_random_source = dev:/dev/urandom
我在網路設定中的默認 DNS 是 8.8.8.8 - 標準的 Google DNS。
我做了我的sasl_passwd的postmap (ing) ,postfix重新加載......第一次通過以下方式發送電子郵件后:
sudo echo "testing testing test email" | mail -s test <someTargetEmail>
SASL Authorization error當我在sasl_passwd中使用我的 gmail 帳戶時,我得到了。
然后找到關于需要在 gmail 帳戶中啟用的資訊,有點像"ACCESS OF ANOTHER SOURCES"。然后將我的原始電子郵件從sasl_passwd 更改為來自@bk.ru 域的另一封電子郵件。
在我發送電子郵件時再次重做/重新啟動之后 - 沒有發生錯誤,我在mailq中獲得了電子郵件 ID 和描述:
"-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
B7BD6301AB98DC* 305 Fri Jun 17 23:23:49 [email protected]
<targetEmail>"
但是到處都沒有在targetEmail帳戶中找到任何訊息。有人可以幫助我了解情況并解決問題,謝謝。
uj5u.com熱心網友回復:
最后我自己解決了。
我在...main.cf的自定義設定中添加/編輯了這個:
mydomain = localhost
myorigin = $mydomain
smtp_sasl_security_options = noanonymous
inet_protocols = ipv4
在 Google Gmail 帳戶中添加了輔助應用密碼和 2 因素身份驗證。在sasl_passwd中連接生成的密碼。
在mailq中,有時郵件會在一秒鐘內被卡住或留下,但尚未收到。一旦問題出現在發件人驗證中,然后是 ipv6 和空安全選項。重做然后postmap和重新加載postfix然后就完成了作業,突然間一切都開始作業了。
并在這里找到了非常有用的資訊
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/496256.html
標籤:电子邮件 Unix smtp 后缀-mta 邮件服务器
上一篇:圖片前景的巨大占位符
下一篇:Gmail電子郵件發送c#
