On 2012-03-06, at 1655, Tom Collins wrote:
> Anyone else using John Simpson's mailhub technique
> (http://qmail.jms1.net/mailhub.shtml) for filtering inbound email?
> I'm triggering a rebuild of the valid recipient list via vpopmail's
> "onchange" feature, with the following script (comments removed for
> brevity):
> #!/bin/sh
> PATH="/usr/bin:/bin"
> logger -t onchange "$*"
> echo onchange "$@" > /tmp/update-qmail &
> But I think I've run into an issue where vpopmail blocks until the
> completion of the write to pipe /tmp/update-qmail.  This is problematic
> when someone is deleting a bunch of users, because they end up waiting for
> one deletion to complete before doing another, and the qmail-updater
> service rebuilds the list of valid recipients repeatedly.
> I added the trailing "&" to the echo command, in an attempt to get it to
> run in the background, but it hasn't helped.
> Has anyone else seen this?  I'd really like to modify the setup so that
> the update script flushes the pipe whenever it can; accepting multiple
> lines of "onchange" data each time.

Sorry for the long reply time, it's been a while since I've had time to read 
mailing lists (including my own.) I'm trying to get caught up on things now.

Did you ever figure anything out with this?

Also, what OS are you using? I seem to remember discovering that different 
kernels handle blocking on named pipes differently. I've been using CentOS 5 
(Linux kernel 2.6.18) for several years and haven't had any issues.

| John M. Simpson  --  KG4ZOW  --  Programmer At Large |
| http://www.jms1.net/                 <j...@jms1.net> |

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


Reply via email to