混亂的電子郵件伺服器

混亂的電子郵件伺服器

我最近將我的伺服器從 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 後,仍然沒有分離管理郵件。

我該看哪裡?如果有任何指點,我將不勝感激。

後綴配置資訊:

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

相關內容