TMDA with exim and virtual users

Vincent Danen <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Organization Annvix
Message-ID <[email protected]>
I posted this on IRC yesterday but Jason must be busy so maybe someone
else can help me out:

hi there, i had a question on tmda if someone has a moment
i'm having an issue trying to make tmda play nice with the -S option to tmda-filter
i'm calling it in exim like this:
command = /usr/local/bin/tmda-filter -S /usr/local/bin/tmda-printvuser.sh $local_part $domain
the tmda-printvuser.sh script basically checks to see if the user/domain exist and then prints out the path to the Maildir (ie. /srv/mail/linsec.ca/vdanen/)
i'm using ~/ in the /etc/tmdara and in /srv/mail/linsec.ca/vdanen/.tmda/config
the problem is i get uncaught exceptions:
 Uncaught Python 2.4.2 Exception (Tue Oct 31 12:34:11 2006):
 Traceback (most recent call last):
   File "/usr/local/bin/tmda-filter", line 53, in ?
     execfile(os.path.join(execdir, 'tmda-rfilter'))
   File "/usr/local/bin/tmda-rfilter", line 166, in ?
     from TMDA import Defaults
   File "./TMDA/Defaults.py", line 1587, in ?
 ConfigError: Can't find key file: /srv/mail/.tmda/crypt_key
 Traceback (most recent call last):
   File "/usr/local/bin/tmda-filter", line 67, in ?
     from TMDA.Defaults import LOGFILE_DEBUG
   File "./TMDA/Defaults.py", line 1587, in ?
which makes no sense to me
tmda-filter should be getting $HOME from the output of the script, so it shouldn't be trying to find /srv/mail/.tmda but /srv/mail/$domain/$user/.tmda
everything is being run as the vmail user (who's home is /srv/mail), but the -S output should be overriding that to handle virtual hosts, no?
whenever you get a chance to share some ideas would be great... i haven't used tmda in years and never with exim
thanks in advance... =)


Any ideas?

-- 
{FEE30AD4 : 7F6C A60C 06C2 4811 FA1C  A2BC 2EBC 5E32 FEE3 0AD4}
mysql> SELECT * FROM users WHERE clue > 0;
Empty set (0.00sec)
signature.asc (application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFSPTjLrxeMv7jCtQRAuxeAJ0X5VtcRKp3o1y0m5EvkbuMdKcbuACfTbWx
wog7TIQFVclKg/CJ8KYWVAA=
=8vRp
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.