On Mon, 3 Sep 2007, decker wrote:

> Hey all,
> 
> I've been noticing a strange, seemingly random occurrence lately and
> I'm not sure what may have caused it (joy.)
> 
> I'm not looking for what is wrong so much as what kind of thing
> triggers this error. I modified the source a little and rebuilt to give
> an extra piece of info (you'll see below) but it makes no sense to me. 
> 
> In the filters log, I get the following (mixed in with lots of normal
> filtering):
> 
> "[EMAIL PROTECTED]"      "[EMAIL PROTECTED]"  "64.92.164.60"
> "66.70.120.50"  "2007-09-02 22:09:07"   "post-data"     ""      "-5"
> "-1"
> "/var/email/bin/n3t_filter.pl;/tmp/msrv80f1800.5fad2.tmp;[66.70.120.50]:3615;"
> "[EMAIL PROTECTED]"   "[EMAIL PROTECTED]"     "64.92.164.60"
> "63.211.210.203"        "2007-09-03 02:31:42"   "post-data"     ""
> "-5"    "-1"
> "/var/email/bin/n3t_filter.pl;/tmp/msrv80f1800.659c9.tmp;[63.211.210.203]:1516;"
> "[EMAIL PROTECTED]"        "[EMAIL PROTECTED]"
> "64.92.164.60" "64.70.81.118"  "2007-09-03 02:32:07"   "post-data"
> ""      "-5" "-1"
> "/var/email/bin/n3t_filter.pl;/tmp/msrv80f5400.659e5.tmp;[64.70.81.118]:41816;"
> 
> And in the system mail log at the same time I get the following:
> 
> Sep  3 02:31:42 krondor XMail[491]: SMTP filter error (-5): Filter =
> "/var/email/bin/n3t_filter.pl" timeout=-1112671832 Sep  3 02:32:07
> krondor XMail[491]: SMTP filter error (-5): Filter =
> "/var/email/bin/n3t_filter.pl" timeout=-1117936584
> 
> The timeout= is my addition since that seemed to be what the -5 error
> was referring to, it's around line 1825 of SMTPSvr.cpp in 1.24 source
> 
>                 } else {
>                         SysLogMessage(LOG_LEV_ERROR,
>                                       "SMTP filter error (%d): Filter =
> \"%s\" timeout=%d\n", iExecResult, Toks.ppszCmdTokens[0]),
> iFilterTimeout; }
> 
> The filter works about 80% of the time without any problems.
> The system has very low load; it handles maybe 2 emails a minute in an
> average day. I don't see any rhyme or reason to which ones fail, same
> ips/addresses work one minute then fail the next.
> 
> The filter wasn't changed at the time I started noticing this problem.
> I have since rebuild the server (freebsd 5.5) from latest sources and
> rebuilt xmail (and rebooted) and the problem still occurs just as
> before. Anyone got an idea as to what the -5 error means exactly ? It
> appears the perl filter (which has extensive logging enabled) is not
> being executed at all. Apache, crontabs, shell users etc are not having
> any problems execve'ing the perl binary so I doubt it's a problem with
> that, but I'm pretty much out of ideas now, so I'm mailing yall as a
> last resort :)

Error -5 == timeout. But the value that is printed is bogus. Something is 
overwriting its original value, or you pass a wrong -QT parameter to the 
command line.
IIRC though, FreeBSD had some problem when mixing threads+fork+exec time 
ago.


- Davide


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to