Roundcube 可以发送邮件,但不能接收邮件

Roundcube 可以发送邮件,但不能接收邮件

系统信息
操作系统类型和版本:Debian Linux 10.13 Webmin 版本:1.941 Virtualmin 版本:6.08

过去我在虚拟域上发送和接收邮件没有任何问题,我想这一切都是在我从 Jessie 升级到 Buster 之后开始的,但我不确定。

这是我的 postfix 配置:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.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

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

inet_interfaces = all
inet_protocols = all
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = ns6707031.ip-43-45-56.eu, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
recipient_delimiter = +
virtual_alias_maps = hash:/etc/postfix/virtual
sender_bcc_maps = hash:/etc/postfix/bcc
home_mailbox = Maildir/
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
allow_percent_hack = no
smtpd_sasl_authenticated_header = yes

当我从另一封邮件向自己发送电子邮件时,mail.log 的一部分:

Sep 30 11:11:31 tz3145073 postfix/local[10812]: DA843E0086: [email protected], orig_to=<[email protected].>, relay=local, delay=100, delays=0.08/0.03/0/100, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Sep 30 11:11:31 tz3145073 postfix/qmgr[22689]: DA843E0086: removed

以下是 netstat 统计数据:

netstat -tuplen | grep 25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 0 123456789 54533/master
tcp6 0 0 :::25 :::* LISTEN 0 123458468 54533/master

更新:我可以在 maildir 上看到电子邮件: /home/域名/homes/用户名/Maildir

但是为什么不在 Thunderbird 或 Roundcube 收件箱上呢?

我很感激任何提示!

答案1

最后我找到了问题...Dovecot conf 文件邮件位置不同:

# mail_location = mbox:~/mail:INBOX=/var/mail/%u

上面是之前设置,下面是新设置

mail_location = maildir:~/Maildir

什么可能改变了 Dovecot 设置或者为什么它们与 Postfix 不同?

相关内容