-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On OpenBSD the filters keep running after shutting down smtpd #4
Comments
Actually, OpenSMTPD is supposed to manage its filters. It starts them and should shut them down as well. So this sounds like an OpenSMTPD issue to me. It’s still strange that the filters use up CPU however. Presumably, there is no OpenSMTPD process around to provide them with input any more, reading from stdin should result in a “Broken pipe” error. But it sounds like the |
According to documentation, line = self._stdin.readline()
if line == '':
raise Exception('No more input')
else:
return line.rstrip('\r\n') |
Hi , |
I can reproduce a problem on Linux by running: echo test | dkimverify I fixed it: eedfd53. This isn’t necessarily the problem you are seeing on OpenBSD, I don’t see any other way this code could get into a tight loop however. |
Hi ,
I use your opensmtpd-filters dkimsign and dkimverify on my OpenBSD server , currently version 7.5. and noticed that when I do
"rcctl stop smtpd" both filters don't stop and start using all of the CPU , they go wild.
I tried your code also on my Linux Arch servers and there it works fine.
So it's somekind of OpenBSD issue
I tried to attache signal handlers in your code but nothing worked.
I finally resorted to changing the rc file for smtpd.
and adding a pkill for the user _smtpd. This works
maybe you can find a more gracefull way
Thanks for the great work !
Here is my smtpd rc file:
The text was updated successfully, but these errors were encountered: