如果我嘗試透過中繼發送郵件,我會得到:
warning: SASL: Connect to private/auth_dovecot failed: No such file or directory
fatal: no SASL authentication mechanisms
auth 部分main.cf
:
disable_vrfy_command = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth_dovecot
#smtpd_sasl_path=/var/spool/postfix/private/auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
broken_sasl_auth_clients = yes
dovecot 中的身份驗證提供者
unix_listener /var/spool/postfix/private/auth {
mode = 0666
user = postfix
group = postfix
}
說什麼dovecot -n
:
protocols = " imap pop3"
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
}
我正在 debian 7.0 機器上運行,核心為 3.2.0-4-amd64,dovecot 2.1.7
我用谷歌搜尋並嘗試了很多解決方案,但我無法讓它工作。也許有人知道如何解決這個問題,或者至少知道如何獲得更多資訊來調試。
答案1
基於 main.cf,Postfix 將連接到private/auth_dovecot
相對於 的套接字/var/spool/postfix
。不幸的是,基於dovecot -n
輸出,dovecot 僅提供/var/spool/postfix/private/auth
.
所以,這個錯誤配置解釋了為什麼 postfix 會拋出錯誤No such file or directory