Re: New TMDA install

"David Bandel" <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
On 12/19/06, Stephen Warren <[email protected]> wrote:
> David Bandel wrote:
> > On 12/19/06, Stephen Warren <[email protected]> wrote:
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> David Bandel wrote:
> >>>> DELIVERY = "/var/mail/%s" % os.environ.get("USER")
> >>> the above is what was in there yesterday (when I was getting the error
> >>> about /var/mail/None doesn't exist.
> >>>
> >>> Guess I have to study Python now too. :-(
> >> Assuming "the above" means the part I quoted above, that simply means
> >> the the environment variable named USER isn't set. Either change USER to
> >> the correct environment variable name for your environment, or have
> >> whatever system is invoking tmda-rfilter set the USER environment variable.
> >
> > the "system" invoking tmda-rfilter is tmda-filter (invoked by
> > procmail, which is called by sendmail and is passed the uid).
>
> I'd guess you could get procmail to set USER how you want.
>
> Or, some Python code into /etc/tmdarc;-)
>

Resolution!
OK, I took a beating on this one, but what works is:
DELIVER = "/var/mail/" + os.environ.get("LOGNAME")

So I will now remove the DELIVER line from ~/.tmda/config and put the
above into /etc/tmdarc and see how it goes.

Ciao,

David A. Bandel
-- 
Focus on the dream, not the competition.
            - Nemesis Air Racing Team motto
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.