I have a machine running OpenBSD 4.4 i386 as a Sendmail server. I realize I need to upgrade from 4.4, but before I do, I want to make sure I'm building enough machine.

The machine's been up and running and working fine since... well, since 4.4 was current. Today, I had a reason to cram a few hundred emails down its throat in a short period, and the server slowed, then became unresponsive until I reset it. Resuming the flood of emails had the same result, until I disabled milter-regex.

By "unresponsive", I mean that I could do whatever I wanted in the shell until it did anything with the disk, then the shell would stop responding. "reboot" from the console just hung.

I'm using milter-regex to grab any emails with a subject that starts with SECURE and throw them in quarantine. I then have another process that picks up those mails periodically and submits them to another instance of Sendmail, which then forwards them to another server.

None of the messages in question fell into this category. My milter-regex.conf is:

quarantine "securemail"
header /^Subject$/i ,^SECURE.*,i

I call milter-regex from:

INPUT_MAIL_FILTER(`milter-regex', `S=unix:/var/spool/milter-regex/sock, T=S:30s;R:2m')

Once I commented out the INPUT_MAIL_FILTER line in the .mc and recompiled, the server works just fine. The load goes up, it stops accepting connections. The load drops, it accepts connections again. Disabling milter-regex was the only change I made.

This server is a guest on VMware ESX, but I don't think that's an issue in this case, since it's now working fine.

What am I doing wrong? If the machine just gets slow that's fine, but I didn't expect it to stop responding.

Reply via email to