升级系统导致Postfix的SMTP认证失败(Cyrus-SASL + MySQL)

日志里这样的错误信息:
warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory

最终发现原因:main.cf里smtpd_sasl_path的设置错误,可能是更新修改的。
把smtpd_sasl_path=/etc/postfix/sasl:/usr/lib/sasl2改成smtpd_sasl_path=smtpd后,重启postfix和courier-authdaemon,问题解决。

3 thoughts on “升级系统导致Postfix的SMTP认证失败(Cyrus-SASL + MySQL)

  1. 初装邮件系统后也出现warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory

    根据您的文章,改为smtpd_sasl_path=smtpd后,倒是没有出现上面的错误提示。但是客户端仍然登录不了。
    mysql已经根据sql_select查询数据库了。
    能否给些提示呢?
    我在ubuntu中文论坛的帖子:
    http://forum.ubuntu.org.cn/viewtopic.php?p=835389#835389

Leave a Reply

Your email address will not be published. Required fields are marked *

*

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.
For more help see http://daringfireball.net/projects/markdown/syntax

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>