quarantine to a pipe ?

Andreas Schulze andreas.schulze at datev.de
Fri Dec 9 10:15:25 CET 2011


Am 09.12.2011 09:25 schrieb Andreas Schulze:
> Am 08.12.2011 13:16 schrieb Andreas Schulze:
> > amavisd.conf let me quarantine spam/virus/good/badh Mails as files.
> 
> reading the manual could never be wrong:
> http://www.ijs.si/software/amavisd/amavisd-new-docs.html#quarantine

quarantine to pipe failed.

I put this in amavisd.conf:
$spam_quarantine_method = 'pipe:/usr/bin/opendkim-spam -f -o opendkim-spam.out -v -v -v';
$log_level = 5;

and got that:
Dec  9 09:59:39 test amavis[12353]: (12353) do_notify_and_quarantine: quarantine spam-quarantine
Dec  9 09:59:39 test amavis[12353]: (12353) header: X-Quarantine-ID: <321Ep05c6kHN>\n
Dec  9 09:59:39 test amavis[12353]: (12353) header: X-Envelope-To-Blocked: <spamreceiver at example.org>\n
Dec  9 09:59:39 test amavis[12353]: (12353) header: X-Envelope-To: <spamreceiver at example.org>\n
Dec  9 09:59:39 test amavis[12353]: (12353) header: Received: from unknown by localhost (amavisd-new, unix socket) id 321Ep05c6kHN\n\tfor <spamreceiver at example.org>; Fri,  9 Dec 2011 09:59:39 +0100 (CET)\n
                                            ~~~~~~~~~~~~~~~~  That's the header I do not need in this case
Dec  9 09:59:39 test amavis[12353]: (12353) DO_QUARANTINE, pipe:/usr/bin/opendkim-spam -f -o opendkim-spam.out -v -v -v, <spamreceiver at ergeht.datev.net> -> <spam-quarantine>
Dec  9 09:59:39 test amavis[12353]: (12353) delivering to pipe:/usr/bin/opendkim-spam -f -o opendkim-spam.out -v -v -v, SEND via PIPE: <spamsender at example.net> -> <spam-quarantine>
Dec  9 09:59:39 test amavis[12353]: (12353) mail_via_pipe running command: /usr/bin/opendkim-spam -N NEVER -f -o opendkim-spam.out -v -v -v
                                                                                                  ~~~~~~~~ will be an invalid commandlineswitch and produce the next failure
Dec  9 09:59:39 test amavis[12362]: (12353) open_on_specific_fd: target fd0 closing, to become < &=11
Dec  9 09:59:39 test amavis[12362]: (12353) open_on_specific_fd: target fd0 dup2 from fd11 < &=11
Dec  9 09:59:39 test amavis[12362]: (12353) open_on_specific_fd: source fd11 closed
Dec  9 09:59:39 test amavis[12362]: (12353) open_on_specific_fd: target fd1 closing, to become > /dev/null
Dec  9 09:59:39 test amavis[12362]: (12353) open_on_specific_fd: target fd2 closing, to become > &1
Dec  9 09:59:39 test amavis[12362]: (12353) open_on_specific_fd: target fd2 dup2 from fd1 > &1
Dec  9 09:59:39 test amavis[12362]: (12353) (!)run_command_consumer: child process [12362]: Insecure dependency in exec while running with -T switch at /usr/sbin/amavisd line 3650, <GEN29> line 106.
Dec  9 09:59:39 test amavis[12353]: (12353) run_command_consumer: [12362] /usr/bin/opendkim-spam -N NEVER -f -o opendkim-spam.out -v -v -v >/dev/null 2>&1
Dec  9 09:59:39 test amavis[12353]: (12353) write_header: 0, IO::File=GLOB(0xd575e80)
Dec  9 09:59:39 test amavis[12353]: (12353) (!!)TROUBLE in check_mail: quar+notif FAILED: Can't flush pipe to a mail submission program: Broken pipe at (eval 107) line 136, <GEN29> line 133.

Andreas
-- 
Andreas Schulze
Internetdienste | P252

DATEV eG
90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196
E-Mail info @datev.de | Internet www.datev.de
Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70
Vorstand
Prof. Dieter Kempf (Vorsitzender)
Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender)
Dipl.-Kfm. Michael Leistenschneider
Dipl.-Kfm. Dr. Robert Mayr
Jörg Rabe v. Pappenheim
Dipl.-Vw. Eckhard Schwarzer
Vorsitzender des Aufsichtsrates: Reinhard Verholen


More information about the amavis-users mailing list