configuration无法validation – 用户名或密码是否错误? 从Thunderbird与Ubuntu服务器16.04上的Postfix和Dovecot

所以我在我的Ubuntu Server 16.04上完成了Postfix和Dovecot的一个非常基本的安装,而且我很难用Thunderbird设置/login到我的帐户。

按照本指南中的步骤1-5安装Postfix: https ://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-16-04安装Dovecot与帮助从这个链接: https : //help.ubuntu.com/community/Dovecot

我从Thunderbird得到的错误是“configuration无法validation – 用户名或密码是否错误?”。 当我查看系统日志,auth.log和mail.log我无法看到login失败的原因和地方。 Mail.err也不包含任何细节。

如果我运行“postconf -n”,我得到以下内容:

alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no home_mailbox = Maildir/ inet_interfaces = all inet_protocols = all mailbox_size_limit = 104857600 mydestination = $myhostname, example.com, mail.example.com, localhost.example.com, localhost myhostname = localhost.localdomain mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = /etc/mailname readme_directory = no recipient_delimiter = + relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes virtual_alias_maps = hash:/etc/postfix/virtual 

如果我运行“dovecot -n”,我得到以下内容:

 # 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf # Pigeonhole version 0.4.13 (7b14904) # OS: Linux 4.4.0-93-generic x86_64 Ubuntu 16.04.3 LTS mail_location = maildir:~/Maildir namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = pam } protocols = imap service imap-login { inet_listener imaps { port = 993 ssl = yes } } ssl_cert = </etc/ssl/certs/ssl-cert-snakeoil.pem ssl_key = </etc/ssl/private/ssl-cert-snakeoil.key userdb { driver = passwd } 

如果我运行“telnet localhost imap2”,然后A1login用户名密码,我得到这个结果:

 anders@toshiban:~$ telnet localhost imap2 Trying ::1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready. A1 LOGIN anders password A1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SPECIAL-USE] Logged in e logout * BYE Logging out e OK Logout completed. Connection closed by foreign host. 

请让我知道,如果有什么我可以添加到这个问题,以帮助您解决这个问题。

最好的问候安德斯

更新我的DNS与imap.example.com和smtp.example.com正确的设置,并得到它的工作。