From: Noel Jones (no email)
Date: Thu Jun 02 2005 - 13:14:19 EDT
At 02:45 AM 6/2/2005, Atte Peltomaki wrote:
>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.
You could use a policy service to create the required
header. Python/Perl/C could compute the header needed and return PREPEND
X-LOCAL-UNIQUE-ID: timestamp-foo
Surely that wouldn't take very long, no matter what you code in.
run it from smtpd_data_restrictions so it only gets called once per message.
http://www.postfix.org/SMTPD_POLICY_README.html
-- Noel Jones
|
|
|