Postfix / Dovecot / MySQL-不起作用!

Postfix / Dovecot / MySQL-不起作用!

我刚刚在 Postfix 和 Dovecot 上安装了邮件服务器,使用 MySQL 来验证用户身份。但是,如果我尝试通过 Outlook 或 Thunderbird 连接到服务器,mail.err 中会出现以下错误:postfix/smtpd[4937]: fatal: no SASL authentication Mechanism 有没有什么办法可以解决这个问题?谢谢 :)

答案1

我需要更多信息来了解您到底想做什么。您是通过 smtp 连接发送电子邮件吗?还是用于接收?例如 pop3 还是 imap?

#For your main.cf: proxy:mysql:
virtual_alias_maps = proxy:mysql:/etc/postfix/virtual/mysql-aliases.cf
# Eg changes to
virtual_alias_maps = proxy:mysql:/etc/postfix/virtual/mysql-aliases.cf

# I use, no idea if it is any different
virtual_transport = dovecot

这不能保证是解决方案,但您可以尝试:

# master.cf: 

# You need to enable smtpd. Line 13 in your master.cf paste.
#smtpd     pass  -       -       -       -       -       smtpd

I am not sure if it has any different effect, however worth a try if the above is not fixing your issue:
(Removed some configuration options, the milter line I supply below, is also possible to leave out.)    

#enabling submission on port 587, force ssl.

submission inet n       -       -       -       -       smtpd
  -o syslog_name=postfix/submission
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING

# Unless you have created the mail dirs you might need to
# in your dovecot config.
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
#you could also use higher restrictions
service auth {
  unix_listener /var/spool/postfix/private/auth {
    mode = 0666
  }
  unix_listener auth-userdb {
    group = vmail
    mode = 0660
  }
}
service imap-login {
  inet_listener imaps {
    ssl = yes
  }
}
service pop3-login {
  inet_listener pop3s {
    ssl = yes
  }
}

相关内容