Running Postfix 2.6.6 on CentOS 6.4. I have configured virtual user look-up in Active Directory. When sending mail to an individual address the mail is correctly delivered to the virtual user's Maildir. More than one recipient however results in a file being written in the vmail users's home directory with the list of recipients as the filename.
Here is my main.cf:
virtual_mailbox_domains = $mydomain virtual_mailbox_base = /home/vmail virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf,ldap:/etc/postfix/ldap-groups.cf virtual_uid_maps = static:75003 virtual_gid_maps = static:75003
server_host = mailhost.example.com search_base = cn=Users,dc=example,dc=com version = 3 query_filter = (&(objectclass=person)(mail=%s)) result_attribute = samaccountname result_format = %s/Maildir/
postmap query result:
postmap -q email@example.com ldap:/etc/postfix/ldap-users.cf usera/Maildir
server_host = mailhost.example.com search_base = ou=Test,dc=example,dc=com version = 3 query_filter = (&(objectclass=group)(mail=%s)) leaf_result_attribute = samaccountname special_result_attribute = member result_format = %s/Maildir/
postmap query result:
postmap -q firstname.lastname@example.org ldap:/etc/postfix/ldap-groups.cf usera/Maildir/,userb/Maildir/,userc/Maildir/
When I send mail to email@example.com the mail is correctly delivered to
/home/vmail/usera/Maildir/new but when I send mail to firstname.lastname@example.org the email body is written under the first recipient's Maildir
/home/vmail/usera/Maildir like this:
drwx------. 3 vmail vmail 8192 May 21 13:01 ,userb drwx------. 3 vmail vmail 8192 May 21 12:58 ,userc drwx------. 2 vmail vmail 8192 Jun 3 10:32 cur
The maillog reveals this:
Jun 3 11:09:02 mailhost postfix/virtual: mail_addr_find: email@example.com -> usera/Maildir/,userb/Maildir/,userc/Maildir/ Jun 3 11:09:02 mailhost postfix/virtual: deliver_mailbox: set user _attr: /home/vmail/usera/Maildir/,userb/Maildir/,userc/Maildir/, uid = 75003, gid = 75003
virtual_mailbox_base directive in main.cf is only being applied the first recipient. I'm guessing this is a problem, but even if it wasn't why is mail for the second and third recipients being delivered under the first recipient's Maildir?
Thanks in advance for any suggestions on how to fix this.