From: Atte Peltomaki (no email)
Date: Thu Jun 02 2005 - 03:45:27 EDT
> > Is it somehow possible to add custom headers to all mails with postfix?
> >
> > By using pipe(8) on mails on their way out from postfix, I could have my
> > homebred script doing this and sending the post onwards, but I don't
> > trust python's email library enough to handle *all* mail correctly.
> >
> > Suggestions, how to go about with this?
>
> Postfix 2.2 can prepend message headers with a PREPEND action in
> smtpd(8) access maps and in cleanup(8) header_checks maps.
>
> http://www.postfix.org/access.5.html
> http://www.postfix.org/header_checks.html
>
> Aother than that, configurable headers are not yet supported.
I'm currently looking into stabbing at alterMIME source to produce
desired headers, as suggested by Tony Earnshaw.
Configurable headers are not yet supported - is there a plan to support
them, and if, when? What kind of support is planned?
At least for my purposes, it is required that content of the header
comes from an external program. I might as well explain the whole
situation; we need to have all incoming mail tagged with a unique
header, and idea was to do TIMESTAMP-RANDOMSUFFIX type header. I can
easily make eg. python script to produce the header, but glueing it to
postfix is wholly other matter. Also, python is quite slow for this so
perhaps I need to do it in C.
--
____________
\ ______// Atte Peltomäki -
\ \\____ IT Engineer - IT Server Team
\ __// F-Secure Corp. PL 24, FIN-00181 Helsinki, Finland
\ \\ Tel: +358 9 2520 0700, direct: +358 9 2520 5423
\ // http://www.F-Secure.com
\/ Integrated Solutions for Enterprise Security
|
|
|