我们正在从自己的邮件服务器迁移到 Google Apps,我需要以某种方式将所有收到的邮件同时传送到本地邮件服务器和 Google,直到我们让所有人都迁移过来。我正在按照以下网址给出的说明进行操作https://support.google.com/a/answer/9228551 使用“旧服务器作为主服务器>基于服务器的转发”,我可以使用transport_maps将邮件发送到本地或发送到Google,但不能同时发送到两者。有谁知道如何在不对当前 postfix 设置进行重大更改的情况下将邮件传递到本地帐户和 Google?
这是 postconf -n 的输出(减去显然不需要的东西)
content_filter = scan:blocker.example.com:10025
inet_protocols = ipv4
message_size_limit = 15360000
mydestination = $myhostname, localhost.$mydomain, localhost, mail.example.com
mynetworks = 1.1.1.0/24
mynetworks_style = host
smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_rbl_client bl.spamcop.net, reject_rbl_client zen.spamhaus.org
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, check_helo_access hash:/data/config/helo_access
smtpd_recipient_restrictions = check_recipient_access ldap:/data/config/message.ldap, check_recipient_access hash:/data/config/recipient_checks, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, check_policy_service inet:blocker.example.com:10031
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = example.com
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_sasl_authenticated, check_sender_access hash:/data/config/access, check_sender_access hash:/data/config/sender_checks, check_sender_access regexp:/data/config/sender_checks.regex, permit_mynetworks, reject_rbl_client bl.spamcop.net, reject_rbl_client zen.spamhaus.org, reject_unauth_destination
smtpd_use_tls = yes
soft_bounce = no
transport_maps = hash:/data/config/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = ldap:/data/config/alias.ldap
virtual_gid_maps = static:125
virtual_mailbox_base = /data/mail
virtual_mailbox_domains = ldap:/data/config/domains.ldap
virtual_mailbox_maps = ldap:/data/config/mailbox.ldap
virtual_transport = virtual
virtual_uid_maps = static:125
谢谢你!
答案1
因此,我最终按照此处给出的步骤进行操作:https://jyotishp.ml/tutorials/postfix/dual-delivery-for-postfix
效果非常好。不幸的是,您确实必须运行两台服务器,但我找不到任何其他方法来做到这一点。