Nginx的Ubuntu的Postfix的configuration – 无法连接到传入的IMAP服务器'服务器没有响应',但可以通过传出使用相同的细节发送邮件?

我很喜欢新的服务器pipe理员,特别是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 localhost 25> ehlo locahost

 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 –list

 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 

我也发送邮件到服务器作为一个testing,并得到这个错误,如果有帮助?

 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不正确,但是configuration中的服务器主机名和主机名是正确的? 我最近移动服务器,主机已经将服务的主域名设置为new-domain.com,所以这可能是问题?

就像我说的,它可以连接到传出服务器,但传入得到没有响应的错误? 任何想法将不胜感激!

通过“通过我的iPhone访问我的邮件”是否指在客户端上接收邮件? 这通常使用POP3或IMAP,而不是SMTP,并且Postfix不是POP3或IMAP服务器。 您需要Dovecot之类的东西来为客户提供POP3或IMAP访问权限。