Re: TMDA and postfix?

Stephen Warren <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lloyd Zusman wrote:
> Stephen Warren <[email protected]> writes:
> I'm just now setting up postfix, and therefore, I haven't set up any
> special LDA.  Later on, I'll see if the standard LDA indeed runs the
> .forward file from that directory.  If so, I can put something like this
> into this file (one long line):
> 
>   | /path/to/tmda-filter --environ=VHOME=/var/vmail/virtdomain.com/user \
>                          --vhome-script=/path/to/some-script
> 
> where where "user" and "virtdomain.com" are different for each email
> account, and where "some-script" simply does an "echo $VHOME".
> 
> ... or some such thing.
> 
> Does that seem right?

That makes perfect sense to me.

> However, if it turns out that the postfix LDA uses the HOME environment
> variable or getpwuid() to locate the .forward file, then I'm out of
> luck.  If that turns out to be the case, what other options do I have?
> 
> Thank you very much for all your help.

Honestly, I've never used postfix virtual users, so I'm not 100% sure
how postfix knows where virtual user home directories are. All I know
off the top of my head is that I remember seeing something in main.cf
that could be uncommented for virtual user support - not much help!

That said, you're obviously telling postfix where to deliver the mail
for each virtual user, since each has a separate maildir. One would
*assume* that postfix would also do something sensible and look for
.forward etc. in a similar place, but I'm just guessing now!

Hope this helps, although probably not:-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF4wvnhk3bo0lNTrURAlUGAJ0eJWXkaBFbcy7ymAz9NNd/lRIqVwCg/D1H
CABCva1P6/Cwqo3kjfIon2k=
=WKr9
-----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.