我们正在将旧的 Debian 6 Postfix 智能主机/中继服务器迁移到新的服务器,只需将配置文件和环境文件复制到新的 Ubuntu 20.04 系统。
由于某种原因,在新的环境中,邮件正在发送至 /var/mail/用户而不是 Maildir (/home/vmail/user/Maildir)。
这是后配置-n输出:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
default_destination_concurrency_limit = 10
default_destination_recipient_limit = 100
default_process_limit = 50
inet_protocols = ipv4
insiders_bind = yes
insiders_bind_dn = cn=admin,dc=domain,dc=root
insiders_bind_pw = ******
insiders_query_filter = (|(&(mail=%s)(externalmail=local_only))(&(uid=%u)(externalmail=local_only)))
insiders_result_attribute = externalmail
insiders_search_base = dc=root
insiders_server_host = ldap.domain.com
local_destination_concurrency_limit = 1
local_only = check_recipient_access hash:/etc/postfix/local_domains, reject
local_recipient_maps =
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
mailbox_size_limit = 10000000000
message_size_limit = 20971520
mydestination = localhost
mydomain = domain.com
myhostname = mailbackend1
mynetworks = 127.0.0.0/8 192.168.2.0/24
myorigin = domain.com
readme_directory = no
recipient_delimiter = +
smtp_helo_name = mail.domain.com
smtp_host_lookup = dns, native
smtp_sasl_auth_enable = no
smtp_tls_security_level = may
smtpd_banner = mailbackend1
smtpd_hard_error_limit = ${stress?5}${stress:20}
smtpd_junk_command_limit = ${stress?1}${stress:100}
smtpd_recipient_restrictions = check_sender_access ldap:insiders, check_client_access hash:/etc/postfix/frontends, reject_unauth_destination, reject
smtpd_restriction_classes = local_only
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_soft_error_limit = ${stress?2}${stress:10}
smtpd_timeout = ${stress?60}${stress:300}
uiduser_bind = yes
uiduser_bind_dn = cn=admin,dc=domain,dc=root
uiduser_bind_pw = ******
uiduser_query_filter = (uid=%u)
uiduser_result_attribute = uidNumber
uiduser_search_base = dc=root
uiduser_server_host = ldap.domain.com
uiduser_server_port = 389
valiases_bind = yes
valiases_bind_dn = cn=admin,dc=domain,dc=root
valiases_bind_pw = ******
valiases_query_filter = (&(mail=%s)(!(mail=pendiente)))
valiases_result_attribute = uid
valiases_search_base = dc=root
valiases_server_host = ldap.domain.com
valiases_server_port = 389
valiases_version = 3
virtual_alias_maps = ldap:valiases
virtual_gid_maps = static:10000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = domain.com
virtual_mailbox_maps = ldap:vmailbox
virtual_minimum_uid = 10000
virtual_transport = local
virtual_uid_maps = ldap:uiduser
vmailbox_bind = yes
vmailbox_bind_dn = cn=admin,dc=domain,dc=root
vmailbox_bind_pw = ******
vmailbox_query_filter = (uid=%u)
vmailbox_result_attribute = uid
vmailbox_result_format = %s/Maildir/
vmailbox_search_base = dc=root
vmailbox_server_host = ldap.domain.com
vmailbox_server_port = 389