[exim] filter _outgoung_ mail

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Sheshka, Alexey
Datum:  
To: exim-users
Betreff: [exim] filter _outgoung_ mail
Hello!

I'm writting _outgoing_ filter for exim, that adds special note at the
end of message. There is no problem with it, just python script talking
stdin/stdout.
Big problem is re-injecting message back to exim, since there is not
variable like $remote_recipient
I tried this transport:

adinjouttransport:
driver = pipe
transport_filter = /etc/pulsar/mail-sig-filter.py
command = /usr/sbin/exim4 -oMr spam-scanned -t
user = Debian-exim
group = Debian-exim
return_path_add = false
log_output = true
return_fail_output = true

but in this case exim scans mail headers (becouse of -t swith) and sends
(n+1) copies of email where n=cc count.
Any suggestions?

--
С уважением,
Шешко Алексей
----------------------------------------------------------------------------