All,
Thanks for your time in advance.
I am pulling my hair out and can't figure out what I am doing wrong.
I am trying to configure Sendmail 8.11.3 to work with procmail.
I am on OpenBSD 2.8 and trying to use it as a general purpose
mail filter/frontend to an Internal Exchange box.
This is the line from my sendmail.cf
Mlocal, P=/usr/local/bin/procmail, F=SPhnu9, S=10/30, R=20/40,
T=DNS/RFC822/X-Unix,
A=procmail -Y -m -$h $f $u
***All the correct tabs are in there***
(I tried using the local_procmail option but I am not too hot at
sendmail
rulesets so I figured I would just call it from Mlocal instead.)
This is what /etc/procmailrc has in it:
SHELL=/bin/sh
INCLUDERC=/etc/procmailrcs/rc.evilmailbegone
This is what /etc/procmailrcs/rc.evilmailbegone has in it:
:0
*^Content-type:
(multipart/mixed|application/octet-stream|text/plain|video/mpeg)
{
:0 HB
*^Content-Disposition: (inline;|attachment;)
*filename=".*\.(vbs|wsf|vbe|wsh|hta)"
{
:0 fhbw
|/usr/bin/sed -e
's/\([nN][aA][mM][eE]=".*\....\)"/\1.I.AM.AN.EVIL.VIRUS.DONT.OPEN.txt"/'
:0 c
/var/log/virusmail
}
}
So then I email myself with a phoney.vbs attachment and
mail sends through the box fine but the attachement name is never
re-written.
Procmail gives me this when I run it
dcooley(_at_)postal# procmail -v
procmail v3.15.1 2001/01/08
Copyright (c) 1990-1999, Stephen R. van den Berg <srb(_at_)cuci(_dot_)nl>
Copyright (c) 1999-2001, Philip A. Guenther
<guenther(_at_)sendmail(_dot_)com>
Submit questions/answers to the procmail-related mailinglist by sending
to:
<procmail-users(_at_)procmail(_dot_)org>
And of course, subscription and information requests for this list to:
<procmail-users-request(_at_)procmail(_dot_)org>
Locking strategies: dotlocking, fcntl(), lockf()
Default rcfile: $HOME/.procmailrc
Your system mailbox: /var/mail/dcooley
Can anyone give me a hint as to what I am doing wrong?
Thanks
--Don
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail