Nginx Ubuntu Postfix 配置 - 无法连接到传入 IMAP 服务器“服务器无响应”但可以使用相同详细信息通过外发发送邮件?

Nginx Ubuntu Postfix 配置 - 无法连接到传入 IMAP 服务器“服务器无响应”但可以使用相同详细信息通过外发发送邮件?

我对新服务器管理员以及 nginx 很熟悉,但除了通过 iPhone 访问我的邮件之外,其他一切都很好?

我已将域名更改为“domain.com”

问题是我可以通过我的外发 IMAP 服务器发送邮件,但无法连接到接收服务器?我只收到消息"the mail server at mail.domain.com is not responding"

/etc/postfix/main.cf

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_command =
mailbox_size_limit = 0
mydestination = domain.com, mail.domain.com, localhost.com, , localhost, localhost.localdomain
mydomain = domain.com
myhostname = mail.domain.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

telnet 本地主机 25 > ehlo 本地主机

250-mail.domain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

使用以下详细信息进行连接:

用户名 密码 主机名:mail.domain.com 端口:25

iptables --列表

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

我还向服务器发送了邮件进行测试,并收到了此错误,这有帮助吗?

Technical details of temporary failure:
[mail.domain.com. (10): Connection refused]

我还查看了 /var/log/mail.log,它有多个条目:

postfix/smtpd[12239]: connect from 5acefc9a.bb.sky.com[90.206.252.xxx]
Mar 23 06:47:09 new-domain postfix/smtpd[12239]: lost connection after CONNECT from 5acefc9a.bb.sky.com[90.206.252.154]

注意新域名这是不正确的,但配置中的服务器主机名和主机名是正确的?我最近移动了服务器,主机已将服务上的主域设置为 new-domain.com,所以这可能是问题所在?

就像我说的,它可以连接到发送服务器,但接收服务器却出现无响应错误?任何想法都将不胜感激!

答案1

“通过我的 iPhone 访问我的邮件”是指在客户端接收邮件吗?这通常使用 POP3 或 IMAP,而不是 SMTP,而且 Postfix 不是 POP3 或 IMAP 服务器。您需要类似多夫科特为客户提供POP3或IMAP访问。

相关内容