Re: TMDA and postfix?

Lloyd Zusman <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
Stephen Warren <[email protected]> writes:

> Lloyd Zusman wrote:
>>
>> [ ... ]
>>
>>   | /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.

Thanks.


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

Well, it does indeed help.  I'll check to see if the ~/.forward file can
be indeed found.

And after reading more postfix docs, I think that I have an alternative,
in case ~/.forward cannot be found: I can put a "spawn" or "pipe" recipe
in "master.cf" to run a script that takes ${recipient} as one of its
command-line arguments.  Then, in "main.cf", I can refer to it as
"unix:private/myscript".

In my example, the ${recipient} would be set to "[email protected]".
Inside this script, I could parse it and use its user and domain parts
to locate the appropriate TMDA config file and to generate an
appropriate invocation of tmda-filter.

... or something like that.

So one way or the other, I think that I can make this work.

Once I get it working, I'll post my results here, in case they might be
of general interest.

Thanks again for all your help.


-- 
 Lloyd Zusman
 [email protected]
 God bless you.
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.