* Vincent Danen <[EMAIL PROTECTED]> [2006-11-03 11:34:30 -0700]:

> * Vincent Danen <[EMAIL PROTECTED]> [2006-11-03 11:10:24 -0700]:
> 
> > Ok, this is starting to irritate me.  For one, TMDA was crapping out
> > because I had defined a confirm list, but it didn't exist.  Is it
> > possible for TMDA to go "oh, you defined the file but it doesn't exist,
> > here let me create it for you?"?
> > 
> > Also, while I can run tmda-filter on the commandline now without
> > problem, it still isn't working from exim.  I'm going to paste the
> > relevant configuration directives here:
> 
> Aha!  Slowly getting there... =)
> 
> I added the -c option to tmda-filter to pick the proper configuration
> file, and now I'm getting my debug logging.  This is what I'm seeing:
> 
> Uncaught Python 2.4.2 Exception (Fri Nov  3 11:19:46 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 192, in ?
>     homestat = os.stat(os.path.expanduser('~'))
> OSError: [Errno 2] No such file or directory: ''
> 
> Any ideas on this one?

Hmmm... this shouldn't be happening if os.path.,expanduser really takes
the value of $HOME, because the value of $HOME is set via the
environment keyword (which does work as shown in my previous messgae
with the tmdawrapper test script I wrote).

Is there a way to make python dump the current environment somehow?  So
that I can see what it's seeing?  From the above I can't tell if $HOME
contains anything at all.

Hmm... by the looks of things it doesn't:

Uncaught Python 2.4.2 Exception (Fri Nov  3 12:18:22 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 193, in ?
    homestat = os.stat(os.environ['HOME'])
OSError: [Errno 2] No such file or directory: ''

Not sure why this isn't working, but I solved it by using:

command = /usr/local/bin/tmda-filter -c 
/srv/mail/$domain/$local_part/.tmda/config -e HOME=/srv/mail/$domain/$local_part

in my tmda_pipe transport.  Now everything seems to work fine.  Had to
do some major monkeying with my config and change some permissions, etc.
but I think it's working now.

=)

This one is definitely worthy of big documentation.  The various docs
I've found are helpful, to some extent, but none really show the entire
exim.conf so you get bits and pieces and for a "normal" exim
configuration with system users they might work fine, but here with
trying to use TMDA+virtual users+mailman (and eventually TMDA as a
frontend to mailman), things get more complicated.

But, I think it is all working properly.  Need to populate my whitelist
a bit before throwing it in action completely, but I think I've got it
nailed.

-- 
{FEE30AD4 : 7F6C A60C 06C2 4811 FA1C  A2BC 2EBC 5E32 FEE3 0AD4}
mysql> SELECT * FROM users WHERE clue > 0;
Empty set (0.00sec)

Attachment: pgpVvMZBiregA.pgp
Description: PGP signature

_____________________________________________
tmda-users mailing list (tmda-users@tmda.net)
http://tmda.net/lists/listinfo/tmda-users

Reply via email to