SV: TROUBLE in check_mail problem

Peter Sørensen maspsr at sdu.dk
Thu May 24 12:39:15 CEST 2012


Hi Mark,

It actually does'nt read stdin. It just handle the sender argument because this is 
Supposed to be  SPAM. Could that be the problem not reading stdin ? I can print DEBUGS
To a file without problems.

I will try and set up reading STDIN.


Regards and thanks

Peter
				
		

-----Oprindelig meddelelse-----
Fra: amavis-users-bounces+maspsr=sdu.dk at amavis.org [mailto:amavis-users-bounces+maspsr=sdu.dk at amavis.org] På vegne af Mark Martinec
Sendt: 24. maj 2012 12:17
Til: amavis-users at amavis.org
Emne: Re: TROUBLE in check_mail problem

Peter,

> I am aware of this but I can't find the problem in my script.
> In certain cases I run a script and in below output I've set 
> log_level=5. If run by hand no problem with script

> May 24 09:13:03 MYSERVER amavis[24216]: (24216-01-3)
>   run_command_consumer: [24829]
>   /usr/local/etc/mxgw/scripts/spambox.pl spam-%b root at MYSERVER
>     >/dev/null 2>/dev/null

> May 24 09:13:03 MYSERVER amavis[24216]: (24216-01-3)
>   (!!)TROUBLE in check_mail: quar+notif FAILED:
>   Submitting mail text failed: Broken pipe
>   at (eval 114) line 127, <GEN42> line 6301.

You will need to debug your program, apparently it gives up reading from stdin and closes it, probably on termination or crash. Open some debug file in spambox.pl (or a syslog) and sprinkle some debug printouts in there.

> If run by hand no problem with script

One difference is that when forked from amavisd the UID is that of the amavisd process. Another is that there is no controlling terminal associated with a process. Also the PATH environment variable may not be the same as in an interactive session.

  Mark


More information about the amavis-users mailing list