Migrem un vechi server Debian 6 Postfix smarthost/releu la unul nou, doar copiem fișierele de configurare și fișierele de mediu într-un nou sistem Ubuntu 20.04.
Din anumite motive, în noul mediu, e-mailul este livrat la /var/mail/utilizator în loc de Maildir (/home/vmail/user/Maildir).
Iată postconf -n ieșire:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = nr
biff = nu
broken_sasl_auth_clients = da
default_destination_concurrency_limit = 10
default_destination_recipient_limit = 100
default_process_limit = 50
inet_protocols = ipv4
insiders_bind = da
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, respinge
local_recipient_maps =
mailbox_command = /usr/bin/procmail -a „$EXTENSION”
cutie_poștală_size_limit = 10000000000
mesaj_size_limit = 20971520
mydestination = localhost
domeniul meu = domeniu.com
myhostname = mailbackend1
rețelele mele = 127.0.0.0/8 192.168.2.0/24
myorigin = domeniu.com
readme_directory = nr
destinatar_delimiter = +
smtp_helo_name = mail.domain.com
smtp_host_lookup = dns, nativ
smtp_sasl_auth_enable = nr
smtp_tls_security_level = mai
smtpd_banner = mailbackend1
smtpd_hard_error_limit = ${stress?5}${stres:20}
smtpd_junk_command_limit = ${stress?1}${stres:100}
smtpd_recipient_restrictions = check_sender_access ldap:insiders, check_client_access hash:/etc/postfix/frontends, reject_unauth_destination, respinge
smtpd_restriction_classes = local_only
smtpd_sasl_auth_enable = da
smtpd_sasl_security_options = noanonymous
smtpd_soft_error_limit = ${stress?2}${stres:10}
smtpd_timeout = ${stres?60}${stres:300}
uiduser_bind = da
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 = da
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