[Exim] How to add Headersto local senders?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Lars Schimmer
Dátum:  
Címzett: Exim users list
Tárgy: [Exim] How to add Headersto local senders?
Hi!

Just one quick question:
I want to add one header to every mail from PC with a specific IP.
EG every mail from IP 192.168.0.56 get an extra header X-SA-Do-Not-Run: YES
The header should be used in sa-exim and is removed in the transporter
later.

I tried to set up a run condition in sa-exim, but it didn't expand right:
SAEximRunCond: ${if or {{def:sender_host_address} {!eq
{$sender_host_address}{127.0.0.1}} {!eq
{mask:$sender_host_address/24}{134.1.1.0/24}} {!eq
{$h_X-SA-Do-Not-Run:}{Yes}} } {1}{0}}

SA-Exim is run everytime, even if the sender IS 134.1.1.1.34
Damned, why..
Any ideas?

Cya
Lars
- --
- -----------------------------------------------------------------
Technische Universität Braunschweig, Institut für Computergraphik
Tel.: +49 531 391-2109            E-Mail: schimmer@???
PGP-Key-ID: 0xB87A0E03