Ubuntu 服务器 - Postfix 问题

Ubuntu 服务器 - Postfix 问题

我在服务器中接收电子邮件时遇到问题,以下是 mail.log 文件中显示的内容:

Nov  1 10:50:30 hoskin postfix/smtpd[20806]: warning: SASL: Connect to /var/spool/postfix/private/auth failed: No such file or directory
Nov  1 10:50:30 hoskin postfix/smtpd[20806]: fatal: no SASL authentication mechanisms
Nov  1 10:50:31 hoskin postfix/master[1676]: warning: process /usr/lib/postfix/sbin/smtpd pid 20806 exit status 1
Nov  1 10:50:31 hoskin postfix/master[1676]: warning: /usr/lib/postfix/sbin/smtpd: bad command startup -- throttling

有人能帮助我或者给我建议我该怎么做吗?

答案1

首先欢迎来到 Serverfault。不要让负面评价打击你。这里有值得一读的内容:https://serverfault.com/help/asking

要解决您的问题,请尝试以下操作:

chown postfix:postfix /var/spool/postfix/private/auth
chmod 666 /var/spool/postfix/private/auth

然后在 /etc/dovecot/conf.d/10-master.conf (或 /usr/local/etc/dovecot/conf.d/10-master.conf)中修改如下 -

      unix_listener auth-userdb {
        mode = 0666
        user = postfix
        group = postfix
      }

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

然后重新启动dovecot:

/etc/init.d/dovecot restart

相关内容