Postfix 使用 Maildir 和 popper 作为 pop3 服务器

Postfix 使用 Maildir 和 popper 作为 pop3 服务器

我正在尝试运行具有“maildir”功能的 postfix 并使用 qpopper 作为 pop3 服务器,但我遇到了问题。

当我禁用“Maildir”功能时,popper 运行良好,但我想让它与 MailDir 一起工作。

我也尝试了许多 maildir 名称,例如:MailDir、mbox 等等...

即使我在服务器上有电子邮件,pop3 也会返回...

+OK someone has 0 visible messages (0 hidden) in 0 octets.

popper 与 xinetd 一起运行。

/etc/xinetd.d # cat qpopper
#
# qpopper - pop3 mail daemon
#
service pop3
{
        port            = 110
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        server          = /usr/sbin/popper
        server_args     = -s
        flags           = IPv4
}

Postfix 配置如下:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 550
mynetworks = 192.168.0.0/16, 127.0.0.0/8
home_mailbox = mbox/
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
html_directory = /usr/share/doc/packages/postfix-doc/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix-doc/samples
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
inet_protocols = all
smtp_dns_resolver_options = res_defnames
smtpd_banner = $myhostname
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = xxx.xxx.xxx
delay_warning_time = 1h
message_strip_characters = \0

谢谢你!

答案1

我认为您可能需要使用不同的 POP3 服务器,例如 Courier 或 Dovecot。

我在网上找不到任何关于 popper 支持除基本单一文件格式之外的任何信息。事实上,我很难找到任何最新的文档或该软件的来源...

答案2

QPopper 不支持 maildir。此外,它不再维护,不应再使用。还有其他更好的选择(例如 dovecot)。

相关内容