我有一个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有关,但是我已经设置了另一个具有另一个域的虚拟机(来自不同的注册商),进行了相同的配置并获得了相同的结果-我可以发送,但不能发送接收邮件。可能是什么问题呢?