linux – 在Ubuntu上使用Postfix的Dovecot:警告:SASL:连接到private / auth-client失败:没有这样的文件或目录

我似乎无法启动dovecot.
我的日志不断显示这些东西:
connect from localhost[127.0.0.1]
Mar  1 17:15:01 mac postfix/smtpd[32526]: warning: SASL: Connect to private/auth-client failed: No such file or directory
Mar  1 17:15:01 mac postfix/smtpd[32526]: fatal: no SASL authentication mechanisms
Mar  1 17:15:02 mac postfix/master[21369]: warning: process /usr/lib/postfix/smtpd pid 32526 exit status 1
Mar  1 17:15:02 mac postfix/master[21369]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Mar  1 17:15:03 mac postfix/smtpd[32546]: connect from localhost[127.0.0.1]
Mar  1 17:15:03 mac postfix/smtpd[32546]: warning: SASL: Connect to private/auth-client failed: No such file or directory
Mar  1 17:15:03 mac postfix/smtpd[32546]: fatal: no SASL authentication mechanisms
Mar  1 17:15:04 mac postfix/master[21369]: warning: process /usr/lib/postfix/smtpd pid 32546 exit status 1
Mar  1 17:15:04 mac postfix/master[21369]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

我的/etc/postfix/main.cf有:

home_mailbox = Maildir/
mailbox_command =
inet_protocols = ipv4
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth-client
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous

谷歌搜索看起来像我需要添加一个客户端块,如:

client {
  path = /var/spool/postfix/auth/dovecot
  mode = 0660
  user = postfix
  group = mail
}

但是自从我找到的所有例子以来,dovecot似乎已经改变了,所以我不确定在哪里放这个.我正在使用Dovecot 2.0.13

任何想法如何解决这一问题?
谢谢!

解决方法

我全神贯注地看着这个并没有找到任何东西.我正在使用Dovecot 2.0.19.

通过编辑/etc/dovecot/conf.d/10-master.conf并设置以下内容,最终找到了修复程序:

# Postfix smtp-auth
  unix_listener /var/spool/postfix/private/auth_client {
    mode = 0666
    user = postfix
  }

然后重启dovecot(‘service restart dovecot’)

如果您没有文件/etc/dovecot/conf.d/10-master.conf,请尝试使用grepping / etc / dovecot查找可能配置的位置:

cd /etc/dovecot
grep -ri postfix *

并查找一个文件,声明/ var / spool / postfix中某处的路径,并根据需要进行调整.在我的dovecot配置中,unix_listener被注释掉并指向错误的文件(/ var / spool / postfix / private / auth).

相关文章

/etc/sysctl.conf这个目录主要是配置一些系统信息,/etc/sys...
1.作用 useradd或adduser命令用来建立用户帐号和创建用户的起...
它们都是多模式编辑器,不同的是vim 是vi的升级版本,它不仅...
不管是我们在安装软件还是监测软件的使用性能,我们都要随时...
装好Tomcat7后,发现除了本机能访问外界访问不了,岂有此理。...
修改防火墙配置需要修改 /etc/sysconfig/iptables 这个文件,...