Stephen Warren said:
> At present, tmda-ofmipd's support of qmail virtual domains is limited to
>  the minimum required for the two popular vdomain packages - vpopmail 
> (which always uses the same user ID for all users) and vmailmgr (which
> uses a separate user ID for each virtual domain)
> 
I tried several different attempts to get authentication working using 
tmda-ofmipd.  Here's the script which works for my setup.

These comments may or may not contribute to a broader understanding of where 
TMDA-OF... works but I offer them in the spirit of helping out.

I am running tmda-ofmipd/squirrelmail/courier-imap/qmail/ldap authentication to 
support non-system users on multiple domains.

Here's my daemontools tmda-ofmipd run scrip

exec su - vmail -c 'exec /usr/local/tmda/bin/tmda-ofmipd \
           -p 192.168.0.201:8025 -d -f \
           -S /var/qmail/bin/gethomedir.sh \
           -R imap://192.168.0.201' 2>&1

gethomedir.sh looks like this(excuse the xxxxx)

#! /bin/sh
[EMAIL PROTECTED]
ldapsearch -x -b "dc=xxxxx,dc=xxxx" \
           -D "cn=xxxxx,dc=xxxxxx,dc=xxxxx" \
           -h 192.168.0.201 -p 389 \
           -w xxxxxxxx \
            "(&(objectclass=qmailuser)(uid=$UID))"\
            | grep home | awk '{print $2}'

-- 
Joe S.
------------
praxis makes perfect.
        - anon

_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to