Postfix无法接收邮件


1

我有一个VPS,安装和设置Postfix和达夫科特的Ubuntu 10.04下一个单一的系统用户这个这个导游。我可以发送电子邮件,但无法接收。我有一个域名tema.ee,其中包含所有必要的DNS记录

tema@artemis:~$ host tema.ee
tema.ee has address 46.182.27.240
tema.ee mail is handled by 10 tema.ee.
tema@artemis:~$ host -t NS tema.ee
tema.ee name server ns2.selectel.org.
tema.ee name server ns1.selectel.org.

/var/log/mail.log除了imap登录和断开消息连接外,什么时候我都不会收到电子邮件。

主机文件:

tema@artemis:~$ sudo cat /etc/hosts
127.0.0.1           localhost
46.182.27.240       tema.ee     artemis

主机名:

tema@artemis:~$ hostname -f
tema.ee

Netstat输出:

tema@artemis:~$ netstat -tap
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:imap2                 *:*                     LISTEN      -               
tcp        0      0 *:sunrpc                *:*                     LISTEN      -               
tcp        0      0 *:36243                 *:*                     LISTEN      -               
tcp        0      0 *:ssh                   *:*                     LISTEN      -               
tcp        0      0 *:imaps                 *:*                     LISTEN      -               
tcp        0      0 *:2025                  *:*                     LISTEN      -               
tcp        0     48 tema.ee:ssh             89-235-215-24.sat:62504 ESTABLISHED -               
tcp        0      0 tema.ee:imaps           89-235-215-24.sat:63988 ESTABLISHED -               
tcp        0      0 tema.ee:imaps           89-235-215-24.sat:63992 ESTABLISHED -                       
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      -               
tcp6       0      0 [::]:2025               [::]:*                  LISTEN      - 

这是我main.cf的后缀:

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

myhostname = tema.ee
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = tema.ee, localhost, artemis
relayhost =
mynetworks = 127.0.0.0/8 # [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
mailbox_command = 
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtp_tls_security_level = may
smtpd_tls_security_level = may
smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

实际上,起初我以为与DNS有关,但是我已经设置了另一个具有另一个域的虚拟机(来自不同的注册商),进行了相同的配置并获得了相同的结果-我可以发送,但不能发送接收邮件。可能是什么问题呢?

Answers:


1

存在防火墙问题。

您的主机在端口25上不可用

% nc 46.182.27.240 25
(UNKNOWN) [46.182.27.240] 25 (smtp) : No route to host

查看(或显示给我们)的输出

iptables-save

谢谢,似乎我只是将端口25更改为2025,而不是在master.cf中添加新行
Artem Pakk 2011年

好的,很乐意提供帮助。
cstamas 2011年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.