Re: SF.net SVN: tmda: [2075] trunk/tmda

Bernard Johnson <[email protected]>
Newsgroups gmane.mail.spam.tmda.devel
Message-ID <[email protected]>
Cory Wright wrote:
> On Oct 5, 2006, at 3:56 PM, [email protected] wrote:
>> Log Message:
>> -----------
>> A new command-line option, '-e/--environ' which you can use to add  
>> a VAR=value
>> pair to the environment.  One example use of this is to allow TMDA  
>> to be setup
>> as a Postfix transport. Contributed by Bernard Johnson.
> 
> Excellent.  I recently migrated my mail server completely off of  
> qmail and
> onto Postfix and I spent a lot of time trying to get a transport  
> working for
> TMDA using /usr/bin/env.  This kept failing for whatever reason, so I am
> glad to see that there will be an easy way to grab environment variables
> in TMDA.

Well, you still have to make TMDA understand the necessary environment
variables to process the email (I do this in /etc/tmdarc) but at least
now you can do this:

(/etc/postfix/master.cf)
# tmda
tmda unix  -       n       n       -       -       pipe
    flags=Rqhu user=mailuser argv=/usr/bin/tmda-filter -c /etc/tmdarc -e
SENDER=${sender} -e RECIPIENT=${recipient} -e EXTENSION=${extension} -e
USER=${user}
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.