Marek Kozlowski
2019-Mar-17 11:14 UTC
LMTP: Undelivered Mail Returned to Sender: User doesn't exist! :-(
:-) I'm using postfix for mail delivery and dovecot for mailbox access imaps pop3s. Postfix resolves, verifies and overwrites users' addresses by numerous subtle LDAP queries. However users are visible as local ones (openldap, pam, nss) in the sense I can run `id' or `finger' queries and receive replies. Dovecot handles all mailboxes over imap/pop correctly with no additional configuration for LDAP. Just (10-mail.conf): mail_location = maildir:/mailboxes/%u and it works fine. Because I'd like to use pigeonhole I'm trying to make local delivery via dovecot LMTP (https://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP). I've configured the socket and added to `/etc/postfix/main.cf' the line: mailbox_transport = lmtp:unix:/var/spool/postfix/private/dovecot-lmtp I think that id dovecot handles mailboxes correctly over imap/pop it can easily find the users and their mailboxes so it doesn't need any additional configuration for LDAP. Unfortunately it doesn't work and results in: Undelivered Mail Returned to Sender: User doesn't exist! :-( What's the thing I've missed? Best regards, Marek -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3914 bytes Desc: S/MIME Cryptographic Signature URL: <https://dovecot.org/pipermail/dovecot/attachments/20190317/70c24171/attachment.p7s>
Aki Tuomi
2019-Mar-17 11:29 UTC
LMTP: Undelivered Mail Returned to Sender: User doesn't exist! :-(
> On 17 March 2019 13:14 Marek Kozlowski via dovecot <dovecot at dovecot.org> wrote: > > > :-) > > I'm using postfix for mail delivery and dovecot for mailbox access imaps > pop3s. > > Postfix resolves, verifies and overwrites users' addresses by numerous > subtle LDAP queries. However users are visible as local ones (openldap, > pam, nss) in the sense I can run `id' or `finger' queries and receive > replies. > > Dovecot handles all mailboxes over imap/pop correctly with no additional > configuration for LDAP. Just (10-mail.conf): > > mail_location = maildir:/mailboxes/%u > > and it works fine. > > Because I'd like to use pigeonhole I'm trying to make local delivery via > dovecot LMTP (https://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP). I've > configured the socket and added to `/etc/postfix/main.cf' the line: > > mailbox_transport = lmtp:unix:/var/spool/postfix/private/dovecot-lmtp > > I think that id dovecot handles mailboxes correctly over imap/pop it can > easily find the users and their mailboxes so it doesn't need any > additional configuration for LDAP. Unfortunately it doesn't work and > results in: > > Undelivered Mail Returned to Sender: User doesn't exist! :-( > > What's the thing I've missed? > > Best regards, > MarekIf your usernames do not have a domain, you need to configure auth to lookup users by local part only. Depending a bit on situation, sometimes it's better to do auth_username_format = %Ln sometimes it's better to configure the passdb itself. Aki
Marek Kozlowski
2019-Mar-17 11:47 UTC
LMTP: Undelivered Mail Returned to Sender: User doesn't exist! :-(
:-)>> I think that id dovecot handles mailboxes correctly over imap/pop it can >> easily find the users and their mailboxes so it doesn't need any >> additional configuration for LDAP. Unfortunately it doesn't work and >> results in: >> >> Undelivered Mail Returned to Sender: User doesn't exist! :-( >> >> What's the thing I've missed? > > If your usernames do not have a domain, you need to configure auth to lookup users by local part only. > > Depending a bit on situation, sometimes it's better to do > > auth_username_format = %LnExactly, that's the thing I missed (removing a domain suffix). Now it works fine, thank you. Best regards, Marek -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3914 bytes Desc: S/MIME Cryptographic Signature URL: <https://dovecot.org/pipermail/dovecot/attachments/20190317/6d69decf/attachment.p7s>
Seemingly Similar Threads
- LMTP: Undelivered Mail Returned to Sender: User doesn't exist! :-(
- testing dovecot LMTP with postfix/spamassassin
- bug submitting bug? [Fwd: Undelivered Mail Returned to Sender]
- testing dovecot LMTP with postfix/spamassassin
- Undelivered Mail Returned to Sender (fwd)