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:
> -----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).

OK, making the line /var/mail/<username> (substituting the user's name
for <username>) makes the errors go away.  So now I need to find the
appropriate variable to call to get the user name.  With as many users
as I have, will need to write a Perl script to rip through all the
users /home dirs and change their ~/.tmda/config file.

Do I need the /etc/tmdarc file?

Thanx,

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.