What signals a termination for smtpd filters?

I'm using the code at
https://github.com/Beutlin/howto-opensmtpd-filters-and-reports,
Which works great, except for when smtpd gets shutdown. The script continues
to run and 
consumes up to 100% cpu time, while keeping the smtpd parent? process
running.

I've tried adding a SIGTERM handler to the code which didn't work, as well
as I saw 
mentioned that the filter should exit on EOF, so I tried wrapping
parser.dispatch() in
a try/except EOFError and using sys.exit. That didn't work either.

I've read smtpd-filters, and looked at various other filters and I am not
understanding 
what tells the filter to shutdown.

Regards,
-Andrew



Reply via email to