Hi, I am trying to build a scalable Postfix cluster (Postfix 2.5.1) serving 1000 - 30,000 users with LDAP. The idea is to store the account information inside LDAP and build Postfix servers, such that each server serves its own users, e.g. user1 on server1, user2 on server2 .....
Virtual domain: auth.hk1.sml.citizen.co.jp I try to use virtual alias, so that the e-mail destined to the virtual domain us...@auth.hk1.sml.citizen.co.jp will be delivered to the canonical address us...@server1.auth.hk1.sml.citizen.co.jp, us...@auth.hk1.sml.citizen.co.jp to us...@server2.auth.hk1.sml.citizen.co.jp.... It worked well by storing the virtual_alias_maps in hash table, but it failed when changed to LDAP with an error "Error : 4.3.0 queue file write error...". I checked the postmap and the result from hash is same as LDAP :- > postmap -q 'venus....@auth.hk1.sml.citizen.co.jp' hash:/etc/postfix/virtual venus....@imapsv02.auth.hk1.sml.citizen.co.jp > postmap -q 'venus....@auth.hk1.sml.citizen.co.jp' ldap:/etc/postfix/ldap-virtualalias venus....@imapsv02.auth.hk1.sml.citizen.co.jp === begin of main.cf with LDAP === alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix home_mailbox = Maildir/ inet_interfaces = all mailbox_size_limit = 0 mydestination = myhostname = imapsv02 mynetworks = 127.0.0.0/8 10.144.1.0/24 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = /etc/mailname readme_directory = no recipient_delimiter = + relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_tls_CAfile = /etc/ldap/ssl/cacert.pem smtpd_tls_cert_file = /etc/ldap/ssl/imapsv02-cert.pem smtpd_tls_key_file = /etc/ldap/ssl/imapsv02-key.pem smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = no virtual_alias_domains = auth.hk1.sml.citizen.co.jp virtual_alias_maps = ldap:/etc/postfix/ldap-virtualalias virtual_gid_maps = static:112 virtual_mailbox_base = /local/mailbox virtual_mailbox_domains = imapsv02.auth.hk1.sml.citizen.co.jp virtual_mailbox_maps = ldap:/etc/postfix/ldap-virtualmailbox virtual_minimum_uid = 100 virtual_uid_maps = static:104 === end of main.cf with LDAP === I hope someone could point me if it is a config. problem, or just Postfix just do not work in that way (see attached error log). Thanks a lot. John Mok
mail.log
Description: Binary data