我最近将我的服务器从 Centos 6.9 迁移到 Centos 7.9 的新服务器,由于操作系统的剧烈变化以及 Perl、Python、PHP 和 Apache 的版本变化,我遇到了许多问题。我已经把它们整理好了。
但 Postfix/Dovecot 服务器继续造成严重困扰。例如:[email protected]
、[email protected]
和[email protected]
- 全部出现在服务器的管理员帐户中,而该服务器首先未映射到任何域。
这是我所做的/ect/postfix/virtual
:
[email protected] domain1.com-admin
[email protected] domain2.com-admin
结果:毫无喜悦
然后我补充说/etc/postfix/vmailbox
:
[email protected] domain1.com/admin
[email protected] domain2.com/admin
在执行常规 postmap /etc/postfix/virtual 和 postmap /etc/postfix/vmailbox 之后,仍然没有分离管理员邮件。
我应该去哪里找?如能得到任何指点我将不胜感激。
Postfix配置信息:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
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
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = Maildir/
html_directory = no
inet_protocols = all
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
milter_default_action = accept
mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost, mail.$mydomain
newaliases_path = /usr/bin/newaliases.postfix
non_smtpd_milters = inet:localhost:8891
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
resolve_dequoted_address = no
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sender_bcc_maps = hash:/etc/postfix/bcc
sender_dependent_default_transport_maps = hash:/etc/postfix/dependent
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_security_level = may
smtpd_error_sleep_time = 5s
smtpd_milters = inet:localhost:8891
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_tls_CAfile = /etc/postfix/postfix.ca.pem
smtpd_tls_cert_file = /etc/postfix/postfix.cert.pem
smtpd_tls_key_file = /etc/postfix/postfix.key.pem
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtpd_tls_security_level = may
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
摘录自/etc/postfix/virtual
:
domain1.com domain1.com
[email protected] domain1.com-admin
domain2.com domain2.com
[email protected] domain2.com-admin
摘录自/etc/postfix/vmailbox
:
[email protected] domain1.com/admin
[email protected] domain2.com/admin