Using NS6.8 as a standalone mail server behind a utm gateway.
User said to me "I thought we were blocking zip files…"
What I think I’ve found is that the utm spam scanner module repackages the emails it deems spam as it marks them and in so doing then amavis cannot see the attachments.
Sep 28 11:44:33 server9b amavis[4412]: (04412-35) ESMTP:[127.0.0.1]:10024 /var/spool/amavisd/tmp/amavis-20160928T085107-04412-wDur0eHs: -> Received: from server9b.domain.com ([127.0.0.1]) by localhost (server9b.domain.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for ; Wed, 28 Sep 2016 11:44:33 -0700 (MST) Sep 28 11:44:33 server9b amavis[4412]: (04412-35) Checking: jE6eCYe6LJ5y [45.251.60.162] -> Sep 28 11:44:33 server9b amavis[4412]: (04412-35) p003 1 Content-Type: multipart/mixed Sep 28 11:44:33 server9b amavis[4412]: (04412-35) p001 1/1 Content-Type: text/plain, size: 167 B, name: Sep 28 11:44:33 server9b amavis[4412]: (04412-35) p002 1/2 Content-Type: message/rfc822, size: 15453 B, name: Sep 28 11:44:33 server9b amavis[4412]: (04412-35) mangling NO: 0 (was: disclaimer), discl_allowed=0, -> Sep 28 11:44:33 server9b queue/smtpd[6001]: connect from localhost[127.0.0.1] Sep 28 11:44:33 server9b queue/smtpd[6001]: 85B5AE400D: client=localhost[127.0.0.1], orig_client=unknown[45.251.60.162] Sep 28 11:44:33 server9b postfix/cleanup[6002]: 85B5AE400D: message-id=<7971527.3121475088273466.JavaMail.root@localhost> Sep 28 11:44:33 server9b postfix/qmgr[2106]: 85B5AE400D: from=, size=17465, nrcpt=1 (queue active) Sep 28 11:44:33 server9b queue/smtpd[6001]: disconnect from localhost[127.0.0.1] Sep 28 11:44:33 server9b amavis[4412]: (04412-35) jE6eCYe6LJ5y FWD from -> , BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 85B5AE400D Sep 28 11:44:33 server9b amavis[4412]: (04412-35) Passed CLEAN {RelayedInbound}, [45.251.60.162]:52099 [45.251.60.162] -> , Message-ID: <7971527.3121475088273466.JavaMail.root@localhost>, mail_id: jE6eCYe6LJ5y, Hits: -, size: 17012, queued_as: 85B5AE400D, 139 ms Sep 28 11:44:33 server9b transfer/smtpd[5994]: proxy-accept: END-OF-MESSAGE: 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 85B5AE400D; from= to= proto=ESMTP helo=<[45.251.61.183]> Sep 28 11:44:33 server9b amavis[4412]: (04412-35) size: 17012, TIMING [total 141 ms] - SMTP greeting: 0.9 (1%)1, SMTP EHLO: 0.5 (0%)1, SMTP pre-MAIL: 1.0 (1%)2, SMTP pre-DATA-flush: 1.3 (1%)3, SMTP DATA: 0.2 (0%)3, check_init: 0.1 (0%)3, digest_hdr: 0.2 (0%)3, digest_body: 0.1 (0%)3, collect_info: 0.9 (1%)4, mime_decode: 5 (4%)7, get-file-type2: 5 (4%)11, decompose_part: 0.6 (0%)12, parts_decode: 0.1 (0%)12, check_header: 0.3 (0%)12, AV-scan-1: 47 (33%)45, decide_mail_destiny: 0.4 (0%)45, notif-quar: 0.0 (0%)45, fwd-connect: 2.7 (2%)47, fwd-xforward: 0.2 (0%)48, fwd-mail-pip: 16 (12%)59, fwd-rcpt-pip: 0.1 (0%)59, fwd-data-chkpnt: 0.0 (0%)59, write-header: 0.3 (0%)60, fwd-data-contents: 0.2 (0%)60, fwd-end-chkpnt: 51 (37%)96, prepare-dsn: 0.4 (0%)97, report: 0.9 (1%)97, main_log_entry: 2.4 (2%)99, SMTP pre-response: 0.1 (0%)99, SMTP response: 1.0 (1%)100, unlink-2-files: 0.1 (0%)100, rundown: 0.4 (0%)100 Sep 28 11:44:33 server9b dovecot: lmtp(6010): Connect from local Sep 28 11:44:33 server9b dovecot: lmtp(6010, user): tIA6JZEP7Fd6FwAAYcTBPg: sieve: msgid=<7971527.3121475088273466.JavaMail.root@localhost>: stored mail into mailbox 'INBOX' Sep 28 11:44:33 server9b delivery/lmtp[6004]: 85B5AE400D: to=, orig_to=, relay=server9b.domain.com[/var/run/dovecot/lmtp], delay=0.14, delays=0.07/0/0.01/0.07, dsn=2.0.0, status=sent (250 2.0.0 tIA6JZEP7Fd6FwAAYcTBPg Saved) Sep 28 11:44:33 server9b dovecot: lmtp(6010): Disconnect from local: Client quit (in reset) Sep 28 11:44:33 server9b postfix/qmgr[2106]: 85B5AE400D: removed Sep 28 11:44:33 server9b transfer/smtpd[5994]: disconnect from unknown[45.251.60.162]