Re: [exim] Hints needed to run forwarded messages through a …

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: David S. Madole
Fecha:  
A: 'erik-eximlist@cisdata.net', 'exim-users@exim.org'
Asunto: Re: [exim] Hints needed to run forwarded messages through a pipe
> From Erik Schorr on Tuesday, June 26, 2007 10:51 PM
>
> What I'd like to do is send messages with recipients that are
> "forward users" (as picked up by the sql_aliases router shown
> below) through a pipe, so the pipe can check and add some
> headers, and then re-inject into the queue as a new outbound
> message. Procmail will NOT be used for local deliveries
> (there should be no local deliveries on this system, as it's
> only used to forward mail)
>
>    command = "forward_prog -f '$header_from' -r 
> '${local_part}@${domain}' -t '${lookup mysql {SELECT alias 
> FROM email_virtuser WHERE user='$local_part' AND 
> domain='$domain' AND is_alias='Y' AND active='Y'}{$value}}'"


I don't really know the direct answer to your question, but what does forward_prog actually do? You might be able to do the same thing within Exim without calling an external program. Exim can add, remove, and change headers. If it's just rewriting addresses, it can do that too, very easily.

David