redhat4.2 + postfix + dovecot不能收取邮件?

发布于 2022-07-21 05:40:40 字数 4106 浏览 10 评论 0

pop3测试正常,可以发信,可以建立邮箱的目录,但目录为空?权限也没有问题!
日志如下:

May 17 11:13:26 mail dovecot: Killed with signal 15
May 17 11:13:26 mail dovecot: Dovecot starting up
May 17 11:13:27 mail dovecot-auth: MySQL: connected to localhost
May 17 11:13:40 mail authdaemond: stopping authdaemond children
May 17 11:13:40 mail authdaemond: modules="authmysql", daemons=10
May 17 11:13:40 mail authdaemond: Installing libauthmysql
May 17 11:13:41 mail authdaemond: Installation complete: authmysql
May 17 11:13:45 mail pop3-login: Login: b@ztg.com [::ffff:122.122.185.56]

main.cf:

#=====================BASE=========================#
myhostname = mail.ztg.com
mydomain = ztg.com
myorigin = $mydomain
#mydestination = $myhostname localhost localhost.$mydomain
#mydestination = mail.ztg.com,www.ztg.com
mydestination = mail.ztg.com,$myhostname, localhost.$mydomain,localhost,mail.$mydomain, www.$mydomain, ftp.$mydomain
mynetworks = 127.0.0.0/8;122.122.185.10/20
inet_interfaces = all
alias_maps = $alias_database
relay_domain = mail.ztg.com,www.ztg.com
#=====================Vritual Mailbox settings=========================#
#(输入存放用户邮件目录)#这里先使用virtual穿送邮件,稍后设置好imap以后是使用cyrus来抓取虚拟用户的邮件
virtual_transport = virtual
virtual_mailbox_base = /home/mailbox/
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
#指定虚拟别名域的名成
virtual_alias_domains =
#含有虚拟别名于定义的文件路径
virtual_alias_maps =  mysql:/etc/postfix/mysql_virtual_alias_maps.cf
#(输入postfix用户的ID)
virtual_uid_maps = static:89
#(输入postfix用户组的ID)
virtual_gid_maps = static:89

maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1
====================QUOTA========================#
message_size_limit = 14336000
virtual_mailbox_limit = 20971520
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir
virtual_overquota_bounce = yes

#====================SASL========================#

smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain= ''
#smtpd_recipient_restrictions = #permit_mynetworks,permit_sasl_authenticated,permit_auth_destination,reject_unauth_destination,reject_invalid_hostname,reject_non_fqdn_hostname,reject_non_fqdn_recipient,reject_unknown_sender_domain,reject_unauth_pipelining,reject_unauth_destination
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
#一定不能是myhostname,否则s m t p 认证失败
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd

broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_sasl_authenticated
#在测试s m t p 是否启动是的提示信息,没有太大的作用,使用默认值就可以
#220 mail.ztg.com ESMTP Postfix
smtpd_banner=$myhostname ESMTP "Version not Available"

#====================OTHER========================#

readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
html_directory = no
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/local/man
daemon_directory = /usr/libexec/postfix
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
queue_directory = /var/spool/postfix
mail_owner = postfix

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文