SV: TROUBLE in check_mail problem
Peter Sørensen
maspsr at sdu.dk
Thu May 24 09:32:36 CEST 2012
Hi Mark,
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
LOGOUTPUT---------
May 24 09:13:03 MYSERVER amavis[24216]: (24216-01-3) DO_QUARANTINE, pipe:argv=/usr/local/etc/mxgw/scripts/spambox.pl spam-%b ${sender}, <root at MYSERVER> -> spam-quarantine, spam-quarantine
May 24 09:13:03 MYSERVER amavis[24216]: (24216-01-3) SEND via PIPE: <root at MYSERVER> -> <spam-quarantine>,<spam-quarantine>
May 24 09:13:03 MYSERVER amavis[24216]: (24216-01-3) mail_via_pipe running command: /usr/local/etc/mxgw/scripts/spambox.pl spam-%b root at MYSERVER
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) write_header: 0, IO::File=GLOB(0x7855300)
May 24 09:13:03 MYSERVER amavis[24829]: (24216-01-3) open_on_specific_fd: target fd0 closing, to become < &=15
May 24 09:13:03 MYSERVER amavis[24829]: (24216-01-3) open_on_specific_fd: target fd0 dup2 from fd15 < &=15
May 24 09:13:03 MYSERVER amavis[24829]: (24216-01-3) open_on_specific_fd: source fd15 closed
May 24 09:13:03 MYSERVER amavis[24829]: (24216-01-3) open_on_specific_fd: target fd1 closing, to become > /dev/null
May 24 09:13:03 MYSERVER amavis[24829]: (24216-01-3) open_on_specific_fd: target fd2 closing, to become > /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.
May 24 09:13:03 MYSERVER amavis[24216]: (24216-01-3) prolong_timer check done: remaining time = 467 s
May 24 09:13:03 MYSERVER amavis[24216]: (24216-01-3) sending SMTP response: "451 4.5.0 Error in processing, id=24216-01-3, quar+notif FAILED:
Submitting mail text failed: Broken pipe at (eval 114) line 127, <GEN42> line 6301."
END LOGOUTPUT
It seems to be a problem with the filehandles fd1&fd2 (STDOUT/STDERR? ) Not wure what. Can you help ?
Regards
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: 22. maj 2012 19:50
Til: amavis-users at amavis.org
Emne: Re: TROUBLE in check_mail problem
Peter,
> I have just discovered that I have a lot of the following entries in
> my mail.log
>
> TROUBLE in check_mail: quar+notif FAILED: Submitting mail text failed:
> Broken pipe at (eval 114) line 127, <GEN43> line 6487.
>
> I'm running amavisd-new-2.6.4 (20090625) on Ubuntu 10.04, perl 5.10.1
> and postfix as MTA (2.7.0)
Either your quarantining or notifications is configured to feed mail to a pipe to some external program, which gives up receiving a message and closes the connection.
Check your *_quarantine_method and $notify_method settings.
If feeding to an external program through a pipe is intentional, check why such external program gives up (closes or crashes).
Mark
More information about the amavis-users
mailing list