"Ben" wrote Tuesday, November 06, 2007 3:59 AM:
Hello, I just can't seem to work this out. I use Postfix and
every now and again (about 3 or 4 times a day) I get an error:
Nov 6 12:28:23 toowong postfix/pipe[11857]: EC99A1FC823:
to=<import(_at_)mydomain(_dot_)com>, relay=procmail, delay=1000,
status=bounced
(Command time limit exceeded: "/usr/bin/procmail")
I have a rule in procmail like this:
:0: /tmp/email-lock
* ^To:(_dot_)*import(_at_)mydomain(_dot_)com
| /usr/local/sbin/emails.pl
The reason why I specify a lock file is because emails.pl will
connect to a database and get some information and then write
this information to another file.
I don't think you want a lockfile, nonetheless. Try it with
the "w" flag on the recipe, telling procmail to wait until the
recipe is finished.
You might end up wanting to use a global lockfile, then turn
it off after the recipe has run.
LOCKFILE = global.lock
:0
* condition
| /usr/local/sbin/emails.pl
LOCKFILE # unset
But try the w-flag first.
Btw, don't use "mydomain.com" as an example, as that is a real
domain with real customers (by the thousands).
--
dman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail