I've been using TMDA happily on several mail servers.  However, I'm setting
one up using Cyrus IMAP for delivery, using an SQL user database and
cyrus-sasl for authentication (against pam.mysql).

Having read the TMDA docs, and Googling the list, I've found that some users
have had success with this.

It seems fairly straightforward to deliver from Postfix to TMDA (by using
tmda-filter as the mailbox command in postfix/main.cf), and then using
cyrus/deliver from TMDA to perform final delivery, perhaps running TMDA as
the cyrus user in order to handle the requirement that cyrus/deliver must be
run as the cyrus user.

The issue becomes with setting up per-user configuration.

Since Cyrus uses a single UID/GID for operation, how can I pass the user
information to TMDA filter?  I.E. in /etc/tmdarc, how do I define the
$DATADIR variable?

It appears (and I'm not a python programmer), that the default setting:

DATADIR = "/usr/home/%s/.tmda/" %os.environ["USER"]

calls for the actual username from the OS (in my case, FreeBSD/5.2.1R)

What I need to get, though, is the username from the SQL database after
Postfix does the canonical lookup on it.

Any suggestions?

If the list requires more information, please ask, and I will provide.  I've
tried not to be too sparse, but don't want to provide overkill as I'm not
sure what info someone needs in this situation.

Mark.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to