Re: [exim] transport_filter for just a redirect?

Top Page
Delete this message
Reply to this message
Author: Marcin Krol
Date:  
To: exim-users
Subject: Re: [exim] transport_filter for just a redirect?
Hello Joey,

Friday, August 10, 2007, 4:15:33 PM, you wrote:

> How would I do this with a pipe?


> Writing the script to modify the message isn't a problem. But I can't
> seem to get the exim side to work.


> This is what I tried:
> ##Router:
> mysql_aliases:
> driver = redirect
> allow_filter
> user = atmail
> data = ${lookup mysql{ MYSQL_ALIASES }}
> pipe_transport = footer_two


> #Transport:
> footer_two:
> driver = pipe
> transport_filter="/usr/local/atmail/pipe.php"
> return_output



> But it doesn't even seem to be runing the script at all.


You have no command = somescript set. transport_filter is ran only for
command that is to be executed.

Do smth like this:

spamcheck:
driver = pipe
command = /usr/local/bin/mailfilter -u ${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}} -d $domain -l \"$local_part\" -s $message_size -a $sender_address -m $message_id -c $rcpt_count -t $received_protocol -e /home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs -p $pipe_addresses
current_directory = "/tmp"
group = mail
home_directory = "/tmp"
log_output
message_prefix =
message_suffix =
return_fail_output
no_return_path_add
user = mail

This pipes a message into a command.


--
Marcin Krol