Under centOS 6.5, I'm trying to get postfix to play nicely with LDAP and cyrus-imapd (please don't say "Use dovecot", I can't) Postfix is authenticating against LDAP just fine and was writing Maildir mailboxes where I expected it to, and then I changed the transport to lmtp
mydestination = $myhostname, localhost.$mydomain, localhost virtual_mailbox_domains = $mydomain virtual_mailbox_base = /var/vmail/ virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf virtual_uid_maps = static:504 virtual_gid_maps = static:505 virtual_transport = lmtp:unix:/var/lib/imap/socket/lmtp I created Cyrus mailboxes in /var/vmail, and cyrus-imapd can read them. But postfix cannot find them: Sep 16 09:48:13 localhost postfix/cleanup[8101]: B67D61EF1: message-id=<20140916164802.B67D61EF1@localhost.localdomain> Sep 16 09:48:13 localhost postfix/qmgr[15890]: B67D61EF1: from=<t...@test.zzz>, size=356, nrcpt=1 (queue active) Sep 16 09:48:13 localhost postfix/smtpd[8094]: public/cleanup socket: wanted attribute: status Sep 16 09:48:13 localhost postfix/smtpd[8094]: input attribute name: status Sep 16 09:48:13 localhost postfix/smtpd[8094]: input attribute value: 0 Sep 16 09:48:13 localhost postfix/smtpd[8094]: public/cleanup socket: wanted attribute: reason Sep 16 09:48:13 localhost postfix/smtpd[8094]: input attribute name: reason Sep 16 09:48:13 localhost postfix/smtpd[8094]: input attribute value: (end) Sep 16 09:48:13 localhost postfix/smtpd[8094]: public/cleanup socket: wanted attribute: (list terminator) Sep 16 09:48:13 localhost postfix/smtpd[8094]: input attribute name: (end) Sep 16 09:48:13 localhost postfix/smtpd[8094]: > localhost[::1]: 250 2.0.0 Ok: queued as B67D61EF1 Sep 16 09:48:14 localhost lmtpunix[16091]: accepted connection Sep 16 09:48:14 localhost lmtpunix[16091]: lmtp connection preauth'd as postman Sep 16 09:48:14 localhost lmtpunix[16091]: verify_user(user.testuser2) failed: Mailbox does not exist Sep 16 09:48:14 localhost master[8104]: about to exec /usr/lib/cyrus-imapd/lmtpd Sep 16 09:48:14 localhost lmtpunix[8104]: executed Sep 16 09:48:14 localhost postfix/lmtp[8103]: B67D61EF1: to=<testuser2@my.domain>, relay=localhost.localdomain[/var/lib/imap/socket/lmtp], delay=21, delays=21/0.03/0/0.03, dsn=5.1.1, status=bounced (host localhost.localdomain[/var/lib/imap/socket/lmtp] said: 550-Mailbox unknown. Either there is no mailbox associated with this 550-name or you do not have authorization to see it. 550 5.1.1 User unknown (in reply to RCPT TO command)) Sep 16 09:48:14 localhost postfix/cleanup[8101]: 09EFD1EFC: message-id=<20140916164814.09EFD1EFC@localhost.localdomain> Sep 16 09:48:14 localhost postfix/bounce[8105]: B67D61EF1: sender non-delivery notification: 09EFD1EFC Sep 16 09:48:14 localhost postfix/qmgr[15890]: B67D61EF1: removed Sep 16 09:48:14 localhost postfix/qmgr[15890]: 09EFD1EFC: from=<>, size=2545, nrcpt=1 (queue active) Sep 16 09:48:14 localhost postfix/smtp[8106]: 09EFD1EFC: to=<t...@test.zzz>, relay=none, delay=0.09, delays=0/0/0.08/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=test.zzz type=AAAA: Host not found) Sep 16 09:48:14 localhost postfix/qmgr[15890]: 09EFD1EFC: removed Sep 16 09:48:16 localhost postfix/smtpd[8094]: < localhost[::1]: quit Sep 16 09:48:16 localhost postfix/smtpd[8094]: > localhost[::1]: 221 2.0.0 Bye Sep 16 09:48:16 localhost postfix/smtpd[8094]: match_hostname: localhost ~? 127.0.0.0/8 Sep 16 09:48:16 localhost postfix/smtpd[8094]: match_hostaddr: ::1 ~? 127.0.0.0/8 Sep 16 09:48:16 localhost postfix/smtpd[8094]: match_hostname: localhost ~? [::1]/128 Sep 16 09:48:16 localhost postfix/smtpd[8094]: match_hostaddr: ::1 ~? [::1]/128 Sep 16 09:48:16 localhost postfix/smtpd[8094]: disconnect from localhost[::1] Sep 16 09:48:16 localhost postfix/smtpd[8094]: master_notify: status 1 Sep 16 09:48:16 localhost postfix/smtpd[8094]: connection closed Sep 16 09:48:16 localhost postfix/smtpd[8094]: proxymap stream disconnect Sep 16 09:48:16 localhost postfix/smtpd[8094]: rewrite stream disconnect How do I find out WHERE it's looking for the mailbox? Is there a separate config for lmtp I'm not seeing? -- *********************************************************************** * John Oliver http://www.john-oliver.net/ * * * ***********************************************************************