Re: [Exim] add/remove header

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Vadim Vygonets
Data:  
Para: exim-users
Asunto: Re: [Exim] add/remove header
Quoth Hans Matzen on Wed, Oct 27, 1999:
> 1. I use two alias files one for local to worldusable
> address mapping and one vice versa.


Beautiful.

> 2. in the rewriting section of the configfile i added something
> like:


So, it's not exactly alias files, but rewriting lookup files.

> 3. because my provider checks for world usable Sender header
> and the other discussed reasons i added the following to the smtp
> transport section:
>
> headers_remove = "sender:from:reply-to"
> headers_add = "From: ${lookup{${lc:${local_part:$header_from:}}}\
>             lsearch{/aliasfile_intern_to_extern} \
>             {$value}fail}\n \
>     Sender:${lookup{${lc:${local_part:$header_from:}}}\      
>             lsearch{/aliasfile_intern_to_extern} \
>             {$value} fail}\n \
>     Reply-to:${lookup{${lc:${local_part:$header_from:}}}\      
>         lsearch{/aliasfike_intern_to_extern} \       
>              {$value} fail}\n"


I think that it's better to use global configuration and rewrite
the appropriate headers with the envelope.

> by the way is it possible to do a reverse lookup
> on aliasfiles ?


No.

> this would save the second file, but if not, it
> doesnt matter one can easily convert one into the other.


Yes. A short awk, sed, or perl script will do it.

Vadik.

-- 
Time is an illusion.  Lunchtime doubly so.
    -- Ford Prefect