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.
In this script that I run, one of the first lines in the code is to
output the date to a temporary file (for debugging purposes) however
when these time limit problems occur, it's as if the script isn't even
ran because there is just no output in this log file (although I guess
it is possible that the script does actually run but the output buffer
has not written to disk, as it's possible that this is only done when
the script finishes running). The script is very basic and only connects
to a local database which does a fairly simple query, all in all the
script usually only takes a few seconds to run.
Is it possible that if procmail tries to call my script while it's
already running, that it's just hanging there waiting for it to exit?
This sounds like what's happening and would explain it, although I don't
think procmail works this way.
Thanks for any help on this, I've been working on a fix for this for a
while, I'm sure it has something to do with the rule recipe I'm using.
____________________________________________________________
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