[Pymilter] Adding Recipient takes extremely long

Thomas Spycher me at tspycher.com
Wed Mar 21 04:58:46 EDT 2012


Hi Stuart

Thanks for your fast reply. It could be interesting to get some knowledge from milter/postfix insides. How does milter add an recipient to an arriving mail?
Is there a way to manipulate the whole raw header with regexp from milter?

In detail my script is going to replace all recipient addresses (to, cc, bcc) with the same address, but with a uuid4 and a + prefixed. This is due to trace a message trough the whole system and logs, even if it gets requeued.

Thanks for your help

On Mar 20, 2012, at 20:20 , Stuart D Gathman wrote:

> Long ago, Nostradamus foresaw that on 03/20/2012 12:22 PM, Thomas Spycher would write:
>> I'm doing some performance testings for a high security appliance based on postfix, ubuntu and PythonMilter.
>> I've figured out, that adding a recipient takes extremely long.
>> 
>>     def eom(self):
>>         "Called at the end of message."
>>          self.addrcpt( "<mail at domain.tld>")
> As far as I can see, the performance of this is entirely up to the MTA - postfix in your case.  Can you try it with sendmail?  Or is there a script I could try with sendmail?  If sendmail has more reasonable overhead for addrcpt, I would call that a performance bug in postfix.
> _______________________________________________
> Pymilter mailing list
> Pymilter at bmsi.com
> http://www.bmsi.com/mailman/listinfo/pymilter




More information about the Pymilter mailing list