Hello,
I have spent a lot of time searching mail archives and google for an issue
I've been having with the attachment backend included with smtp-vilter. I
installed the OpenBSD 3.8 port, as well as the package, and had the same
problem in both. If I missed a relevant thread or some docs, I would be
happy to be directed to them.
The smtp-vilter does not seem to read attachment.conf. Any time I send a
test attachment, regardless of whether it is specified in attachment.conf,
the attachment is removed, and the message "Vaporized an unwelcome
attachment" is inserted. I have also commented out the
content-type=application/octet-stream line, with no effect. The fact that
changes to attachment.conf do not change the behavior, and that the
attachment-notification file is ignored have led me to believe that the
attachment backend is simply implementing its default settings, and that
the octet-stream content-type is being triggered. I found the "vaporized"
message in vilter-attachment.c but any further code examination is really
out of my league.
clamd works perfectly, and I don't see any other indications of problems.
I'd appreciate any insight anyone could offer. conf snippets and such are
included below.
Thanks,
Steve
/etc/smtp-vilter/smtp-vilter.conf
user=_vilter
group=_vilter
chroot=/var/smtp-vilter
tmpfiles=g+r
tmpfiles=setgrp
backend=clamd,attachment
config-file=clamd:/etc/smtp-vilter/clamd.conf
config-file=attachment:/etc/smtp-vilter/attachment.conf
virus-strategy=discard
recipient-notification=/etc/smtp-vilter/recipient-notification
spam-strategy=mark
spam-subject-prefix="* SPAM *"
unwanted-strategy=mark
error-strategy=tempfail
port=unix:/var/run/smtp-vilter.sock
tmpdir=/tmp
pidfile=/var/run/smtp-vilter.pid
log-facility=mail
logfile=/var/log/smtp-vilter.log
option=logvirus
option=logspam
option=logunwanted
option=markall
-----------
/etc/smtp-vilter/attachment.conf
case-sensitive=false
unwanted-filename=.*\.asd
unwanted-filename=.*\.bat
unwanted-filename=.*\.chm
unwanted-filename=.*\.cmd
unwanted-filename=.*\.com
unwanted-filename=.*\.cpl
unwanted-filename=.*\.dll
unwanted-filename=.*\.exe
unwanted-filename=.*\.hlp
unwanted-filename=.*\.hta
unwanted-filename=.*\.lnk
unwanted-filename=.*\.ocx
unwanted-filename=.*\.pif
unwanted-filename=.*\.rar
unwanted-filename=.*\.reg
unwanted-filename=.*\.scr
unwanted-filename=.*\.shb
unwanted-filename=.*\.shm
unwanted-filename=.*\.shs
unwanted-filename=.*\.vbe
unwanted-filename=.*\.vbs
unwanted-filename=.*\.vxd
#unwanted-content-type=application/octet-stream
#unwanted-content-type=image/.*
attachment-notification=/etc/smtp-vilter/attachment-notification
-----------
Snip from maillog for 6MB file named jopke.wmv
Feb 15 11:23:12 mke-smtp-01 sm-mta[15924]: k1FHL8ao015924: Milter add:
header: X-SMTP-Vilter-Version: 1.1.9
Feb 15 17:23:21 mke-smtp-01 smtp-vilter[21034]: message contains no virus
Feb 15 11:23:21 mke-smtp-01 sm-mta[15924]: k1FHL8ao015924: Milter add:
header: X-SMTP-Vilter-Virus-Backend: clamd
Feb 15 11:23:21 mke-smtp-01 sm-mta[15924]: k1FHL8ao015924: Milter add:
header: X-SMTP-Vilter-Status: clean
Feb 15 11:23:21 mke-smtp-01 sm-mta[15924]: k1FHL8ao015924: Milter add:
header: X-SMTP-Vilter-clamd-Virus-Status: clean
Feb 15 17:23:21 mke-smtp-01 smtp-vilter[21034]: message contains no
unwanted content
Feb 15 11:23:21 mke-smtp-01 sm-mta[15924]: k1FHL8ao015924: Milter add:
header: X-SMTP-Vilter-Unwanted-Backend: attachment
Feb 15 11:23:21 mke-smtp-01 sm-mta[15924]: k1FHL8ao015924: Milter add:
header: X-SMTP-Vilter-attachment-Unwanted-Status: cleaned
Feb 15 17:23:21 mke-smtp-01 smtp-vilter[21034]: replace message body
Feb 15 11:23:21 mke-smtp-01 sm-mta[15924]: k1FHL8ao015924: Milter message:
body replaced