[Pymilter] milter multiprocess (or multithread)

Stuart D. Gathman stuart at gathman.org
Tue Dec 10 14:00:54 EST 2019


On Tue, 10 Dec 2019, Stuart D. Gathman wrote:

>> There is not a Milter.Milter stop(self) function to print something when 
>> SIGTERM or other signal happens, and then stop :(
>
> No, but it is wrapped in the low level milter module:
> https://pymilter.org/pymilter/namespacemilter.html

You can also call Milter.stop()

All the low level entry points are included in Milter.

import Milter
  ...
# in some thread, perhaps responding to a magic HELO or management
# socket
milter.stop()
...

-- 
 	      Stuart D. Gathman <stuart at gathman.org>
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.


More information about the Pymilter mailing list