无法在正常运行的电子邮件服务器上设置 IMAP

无法在正常运行的电子邮件服务器上设置 IMAP

我一直在尝试使用以下方式设置本地邮件服务器本教程在我的域名上Mydomain.me

我可以成功接收发送到我的地址的邮件,但无法使用 thunderbird 设置 IMAP 帐户(参见 Snapshot)。

奇怪的是,Thunderbird 检测不到我的 IMAPS 服务。我测试了一下,openssl s_client -connect mydomain.me:993似乎运行正常。当然,当我尝试设置无加密 imap 时,我遇到了麻烦。 设置 Thunderbird

知道我做错了什么吗?我的第一个猜测是 DNS 记录,第二个猜测是 postfix 配置。我忘了说我正在尝试在另一台不一定在同一网络上的机器上设置帐户。

内容cat main.cf | egrep -v "^#"

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/dovecot.pem
smtpd_tls_key_file=/etc/ssl/private/dovecot.pem
smtpd_use_tls=yes
smtpd_tls_auth_only = yes
smtp_tls_security_level = may
smtp_tls_loglevel = 2
smtpd_tls_received_header = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions =
        permit_sasl_authenticated,
        permit_mynetworks,
        reject_unauth_destination
myhostname = mydomain.me
myorigin = $mydomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost 
virtual_transport = lmtp:unix:private/dovecot-lmtp
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
local_recipient_maps = $virtual_mailbox_maps
relayhost = 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

内容tail -n 30 /var/log/mail.log

Nov 28 16:55:07 myServerName postfix/anvil[5449]: statistics: max connection rate 7/60s for (smtp:192.168.0.254) at Nov 28 16:51:27
Nov 28 16:55:07 myServerName postfix/anvil[5449]: statistics: max connection count 1 for (smtp:192.168.0.254) at Nov 28 16:51:14
Nov 28 16:55:07 myServerName postfix/anvil[5449]: statistics: max cache size 2 at Nov 28 16:51:47
Nov 28 16:57:01 myServerName postfix/smtpd[6006]: connect from unknown[192.168.0.254]
Nov 28 16:57:01 myServerName postfix/smtpd[6006]: disconnect from unknown[192.168.0.254]
Nov 28 16:57:01 myServerName postfix/smtpd[6006]: connect from unknown[192.168.0.254]
Nov 28 16:57:01 myServerName postfix/smtpd[6006]: improper command pipelining after EHLO from unknown[192.168.0.254]: QUIT\r\n
Nov 28 16:57:01 myServerName postfix/smtpd[6006]: disconnect from unknown[192.168.0.254]

这是我的 DNS 记录:

$TTL 3600
@   IN SOA dns106.ovh.net. tech.ovh.net. (2013112701 86400 3600 3600000 300)
              IN NS     dns106.ovh.net.
              IN NS     ns106.ovh.net.
              IN MX 1   mydomain.me.
              IN A      xx.xxx.x.xxx
              IN TXT    "1|www.mydomain.me"
ftp           IN CNAME  mydomain.me.
mail          IN CNAME  ns0.ovh.net.
ox            IN CNAME  ox.ovh.net.
pop3          IN CNAME  ns0.ovh.net.
smtp          IN CNAME  ns0.ovh.net.
www           IN MX 1   mydomain.me.
www           IN A      xx.xxx.x.xxx
www           IN TXT    "3|welcome"
www           IN TXT    "l|fr"

答案1

我解决这个问题已经有一段时间了,但我还没有提出解决方案,所以这里是:

尽管 Thunderbird 不会自动检测任何东西,我只需手动配置所有字段(IMAP 和 SMTP 的端口、身份验证方法,其翻译应为“纯文本/未加密的密码”),一切都会按预期工作。

相关内容