[Dovecot] Samba4 Active Directory and Doveadm
Trever L. Adams
trever.adams at gmail.com
Fri Oct 15 15:14:08 EEST 2010
On 10/14/2010 11:07 AM, Timo Sirainen wrote:
>
> This can be alternatively done by putting to dovecot.conf:
>
> mail_home = /home/vmail/%d/%n
I actually have that as well.
> Don't put this here, rather just do it like everyone else:
>
> mail_location = maildir:~/
>
> But then again, you should also read
> http://wiki2.dovecot.org/VirtualUsers/Home
I have this as well, or similar. I do not have a homedirectory set that
seems to work at the moment, so I have it as a full path.
Thank you for the VirutalUsers/Home. This will help. I spent a lot of
time reading various documentation and somehow missed this.
Is there some global option like mail_location for homedirectory? That
is one I am not finding one with google or with grep in the configuration.
>
> This isn't right. You probably wanted =uid=vmail, =gid=vmail. But this
> is again done easier by setting:
>
> mail_uid = vmail
> mail_gid = vmail
>
> So all in all, your user_attrs could probably just be empty and you
> should probably remove userdb ldap completely from your config to avoid
> unnecessary userdb lookups.
I have done this as well. The problem with removing all of this is I use
Dovecot's deliver (LDA). It needs a way of finding which users do and do
not exist. Is there a better way to do this?
I may be able to turn this off. I do use postfix and I believe it is
already looking up the users. I seem to remember there was an option to
turn this off in Dovecot (the looking up of the user for LDA).
The only problem that is there is this: I need doveadm expunge -A. This
is where I am having the problem. I guess this doesn't use the user_
stuff. It uses the iterate_attrs right?
vmail and root are NOT in the AD LDAP.
This is what I get when I run doveadm search -A mailbox INBOX from
VALID_FROM
> Oct 15 05:48:06 TeaSet dovecot: auth: Error: auth worker: Aborted request: Worker process died unexpectedly
> Oct 15 05:48:06 TeaSet dovecot: auth: Debug: master in: USER#0112#011root#011service=doveadm
> Oct 15 05:48:06 TeaSet dovecot: auth: Debug: passwd(root): lookup
> Oct 15 05:48:06 TeaSet dovecot: auth: Debug: master out: USER#0112#011root#011system_groups_user=root#011uid=0#011gid=0#011home=/root
> Oct 15 05:48:06 TeaSet dovecot: auth: Debug: master in: USER#0113#011bin#011service=doveadm
> Oct 15 05:48:06 TeaSet dovecot: auth: Debug: passwd(bin): lookup
> Oct 15 05:48:06 TeaSet dovecot: auth: Debug: master out: USER#0113#011bin#011system_groups_user=bin#011uid=1#011gid=1#011home=/bin
> Oct 15 05:48:06 TeaSet dovecot: master: Error: service(auth-worker): child 16375 killed with signal 11 (core dumps disabled)
> Oct 15 05:48:06 TeaSet dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
> Oct 15 05:48:06 TeaSet dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
> Oct 15 05:48:06 TeaSet dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
> Oct 15 05:48:06 TeaSet dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so
> Oct 15 05:48:50 TeaSet dovecot: auth: Debug: master in: LIST#0111
> Oct 15 05:48:50 TeaSet dovecot: auth: Debug: ldap: iterate: base=dc=example,dc=com scope=subtree filter=(objectClass=person) fields=
> Oct 15 05:48:50 TeaSet dovecot: auth: Error: auth worker: Aborted request: Worker process died unexpectedly
> Oct 15 05:48:50 TeaSet dovecot: auth: Debug: master in: USER#0112#011root#011service=doveadm
> Oct 15 05:48:50 TeaSet dovecot: auth: Debug: passwd(root): lookup
> Oct 15 05:48:50 TeaSet dovecot: auth: Debug: master out: USER#0112#011root#011system_groups_user=root#011uid=0#011gid=0#011home=/root
> Oct 15 05:48:50 TeaSet dovecot: auth: Debug: master in: USER#0113#011bin#011service=doveadm
> Oct 15 05:48:50 TeaSet dovecot: auth: Debug: passwd(bin): lookup
> Oct 15 05:48:50 TeaSet dovecot: auth: Debug: master out: USER#0113#011bin#011system_groups_user=bin#011uid=1#011gid=1#011home=/bin
> Oct 15 05:48:50 TeaSet dovecot: master: Error: service(auth-worker): child 16398 killed with signal 11 (core dumps disabled)
Thank you for your help,
Trever
--
"The strength of the Constitution lies entirely in the determination of
each citizen to defend it. Only if every single citizen feels duty bound
to do his share in this defense are the constitutional rights secure."
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20101015/32eb7822/attachment.bin
More information about the dovecot
mailing list