[Dovecot] postfix, dovecot, samba, winbind

Bob Miller
Thu, 28 Feb 2013 18:00:06 -0000

It has been a few months since I worked out all the settings to
authenticate against samba's AD, but I think you can solve your problem
by putting a home argument in your userdb{} stanza.  If that doesn't
work, and assuming you are authenticating using ldap lookups, let me
know and I can share more of how I set things up...
--
Computerisms
Bob Miller
867-334-7117 / 867-633-3760
http://computerisms.ca


On Thu, 2013-02-28 at 18:22 +0100, Denis Witt wrote:
> Hello List,
>
> we're currently working on the migration of our LDAP/Samba3-Domain to
Samba4-Active-Directory. So far everything works fine. Postfix can deliver Mails
using ProxyAddresses-Information from the AD and Dovecot delivers the mail.
>
> Unfortunately when Postfix tells Dovecot to deliver the mail he submit the
username without the AD-Domain part:
>
> Feb 28 17:17:59 tpdc postfix/pickup[30396]: 5DDAE2C0C2B: uid=0
from=<root>
> Feb 28 17:17:59 tpdc postfix/cleanup[30402]: 5DDAE2C0C2B:
message-id=<20130228161759.5DDAE2C0C2B at mx0.concepts-and-training.de>
> Feb 28 17:17:59 tpdc postfix/qmgr[30395]: 5DDAE2C0C2B: from=<root at
concepts-and-training.de>, size=463, nrcpt=1 (queue active)
> Feb 28 17:17:59 tpdc dovecot: lda(dwitt):
msgid=<20130228161759.5DDAE2C0C2B at mx0.concepts-and-training.de>: saved
mail to INBOX
> Feb 28 17:17:59 tpdc postfix/local[30404]: 5DDAE2C0C2B: to=<dwitt at
concepts-and-training.de>, orig_to=<denis.witt at cat06.de>,
relay=local, delay=0.24, delays=0.1/0.01/0/0.13, dsn=2.0.0, status=sent
(delivered to command: /usr/lib/dovecot/deliver)
> Feb 28 17:17:59 tpdc postfix/qmgr[30395]: 5DDAE2C0C2B: removed
>
> So Dovecot saves the Mail to "/var/mail/dwitt/", which is fine
for me. The Problem kicks in when I try to read my Mail. Dovecot uses
"TESTDOM\dwitt" as username and so he didn't find the Mailbox and
create a new one in "/var/mail/TESTDOM\dwitt".
>
> I tried to fix it with auth_username_translation and auth_username_format
but it doesn't work.
>
> Any ideas?
>
> Thanks!