I've recently upgraded FreeBSD 7.0 box to amavisd-new 2.6.4 and amavisd-milter 1.4.0. I get sometimes the following output in maillog:
(!)run_command_consumer: child process [52557]: Insecure dependency in open while running with -T switch at /usr/local/sbin/amavisd line 2994. (!!)TROUBLE in check_mail: quar+notif FAILED: sending mail header2: Broken pipe at /usr/local/sbin/amavisd line 6548. When I started amavisd in debug mode I found that the problem is with sending mail to virus admin: Admin notifications to <virusal...@aaa.cz>; sender: <r...@achilles.aaa.cz> fish_out_ip_from_received: 192.168.1.2 lookup_ip_acl (publicnetworks): key="192.168.1.2" matches "!192.168.0.0/16", result=0 fish_out_ip_from_received: 127.0.0.1 lookup_ip_acl (publicnetworks): key="127.0.0.1" matches "!127.0.0.0/8", result=0 fish_out_ip_from_received: 127.0.0.1 lookup_ip_acl (publicnetworks): key="127.0.0.1" matches "!127.0.0.0/8", result=0 parse_ip_address_from_received: 127.0.0.1 first_received_from: 192.168.1.2 proxying for unknown SquirrelMail authenticated user patejdlm header: From: "Content-filter at achilles.aaa.cz" <virusal...@aaa.cz>\n build_mime_entity From: "Content-filter at achilles.aaa.cz" <virusal...@aaa.cz> header: Date: Sat, 6 Feb 2010 22:32:00 +0100 (CET)\n build_mime_entity Date: Sat, 6 Feb 2010 22:32:00 +0100 (CET) header: Subject: VIRUS (Worm.Bagle.H-zippwd-1) in mail FROM LOCAL [127.0.0.1]\n <r...@achilles.aaa.cz>\n build_mime_entity Subject: VIRUS (Worm.Bagle.H-zippwd-1) in mail FROM LOCAL [127.0.0.1]\n <r...@achilles.aaa.cz> header: To: <virusal...@aaa.cz>\n build_mime_entity To: <virusal...@aaa.cz> header: Message-ID: <vax4fjblhqh...@achilles.aaa.cz>\n build_mime_entity Message-ID: <vax4fjblhqh...@achilles.aaa.cz> build_mime_entity: attaching original header section dkim: candidate originators: 2822.From:<virusal...@aaa.cz>, 2821.mail_from:<virusal...@aaa.cz> lookup => undef, "virusal...@aaa.cz", no lookup tables dkim: not signing, no applicable private key for domains aaa.cz, s=, From: <virusal...@aaa.cz> SEND via PIPE: <virusal...@aaa.cz> -> <virusal...@aaa.cz> mail_via_pipe running command: /usr/sbin/sendmail -Ac -i -odd -f virusal...@aaa.cz -- virusal...@aaa.cz run_command_consumer: [52557] /usr/sbin/sendmail -Ac -i -odd -f virusal...@aaa.cz -- virusal...@aaa.cz >/dev/null 2>/dev/null write_header: 1, IO::File=GLOB(0x4e98648) (!)run_command_consumer: child process [52557]: Insecure dependency in open while running with -T switch at /usr/local/sbin/amavisd line 2994. (!!)TROUBLE in check_mail: quar+notif FAILED: sending mail header2: Broken pipe at /usr/local/sbin/amavisd line 6548. AM.PDP: deletion of /var/spool/amavis/tmp/afo16LVtbC052550 is client's responsibility mail checking ended: version_server=2\nsetreply=451 4.5.0 Error%20in%20processing,%20id=52517,%20quar+notif%20FAILED:%20sending%20mail%20header2:%20Broken%20pipe%20at%20/usr/local/sbin/amavisd%20line%206548.\nreturn_value=tempfail\nexit_code=75 TIMING [total 5510 ms] - got data: 0 (0%)0, check_init: 9 (0%)0, digest_hdr: 8 (0%)0, digest_body_dkim: 10 (0%)0, gen_mail_id: 3 (0%)1, mkdir parts: 6 (0%)1, mime_decode: 344 (6%)7, get-file-type6: 1215 (22%)29, decompose_part: 30 (1%)29, decompose_part: 14 (0%)30, get-file-type0: 1 (0%)30, parts_decode: 0 (0%)30, check_header: 21 (0%)30, AV-scan-1: 3379 (61%)91, read_snmp_variables: 4 (0%)92, best_try_originator: 17 (0%)92, update_cache: 6 (0%)92, decide_mail_destiny: 10 (0%)92, notif-quar: 42 (1%)93, stat-mbx: 42 (1%)94, open-mbx: 91 (2%)95, write-header: 10 (0%)95, save-to-local-mailbox: 117 (2%)98, rundown: 131 (2%)100 Relevant part from amavisd.conf: $mydomain = 'aaa.cz'; $policy_bank{'ORIGINATING'} = { originating => 1, virus_admin_maps => ["virusale...@$mydomain"], spam_admin_maps => ["spam.poli...@$mydomain"], warnbadhsender => 1, bypass_banned_checks_maps => [1], terminate_dsn_on_notify_success => 0, }; $newvirus_admin = "virusale...@$mydomain"; $notify_method = 'pipe:flags=q argv=/usr/sbin/sendmail -Ac -i -odd -f ${sender} -- ${recipient}'; $forward_method = undef; /usr/sbin/sendmail is the symbolic link to /usr/sbin/mailwrapper as usual in FreeBSD. I would appreciate any suggestions. Thanks P. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/