Spam and Antivir for GPL Version

5 posts / 0 new
Last post
#1 Wed, 02/27/2008 - 03:02
stephanw

Spam and Antivir for GPL Version

Hi in the "Learn"->"Compare" Section of this page is written for the GPL Version:

Spam and Anti-Virus Filtering "Only server-wide configuration is supported."

But if i install the gpl version with the install script, there is no SPAM and Antivir Support.

Where can i configure that? Is there a Step-by-Step howto?

Best Regards Steve

Fri, 02/29/2008 - 14:05
stephanw

Hello
is anybody out there? ...to answer my question. Thank's!

Mon, 03/03/2008 - 23:41 (Reply to #2)
stephanw

Hi Joe
thank's for the answer. I tried your procmailrc and it doesn't work. With this now, it works:

/etc/procmailrc looks like:
[code:1]
LOGFILE="/var/log/procmail.log"
VERBOSE=off

DROPPRIVS=yes
DEFAULT=$HOME/Maildir/
ORGMAIL=$HOME/Maildir/

:0fw
| /usr/bin/spamassassin

:0
* ^X-Spam-Status: Yes
$HOME/Maildir/.spam/

:0cW
|clamdscan --no-summary --stdout -
CLAMAV_CODE=$?

:0
* CLAMAV_CODE ?? 1
/dev/null
[/code:1]
With this, it will move all SPAM in the users maildir folder spam. Virus Mails are sent to /dev/null.
You need to "touch /var/log/procmail.log" to get the logger of procmail working.

The rest i installed like you wrote. FYI, i use debian etch.

Thank's again and best regards
Steve

Wed, 03/05/2008 - 15:11 (Reply to #3)
Joe
Joe's picture

Hey Steve,

Thanks for the update, and a nice example procmailrc.

--

Check out the forum guidelines!

Mon, 03/03/2008 - 14:42
Joe
Joe's picture

Hey Steve,

It is separate from Virtualmin, and found in the relevant Webmin modules--and not entirely intuitive in the case of AV.

You'll first want to make sure you're using Procmail to deliver mail--you can set that in the Postfix module in Webmin. That's in the Local Delivery page, the field labeled "External command to use instead of mailbox delivery"

For spam, install the SpamAssassin package for your platform, if it isn't already.

Then browse to the Webmin SpamAssassin module, and use the Procmail Spam Delivery page to determine what to do with spam.

Finally, for AV, you'll need to install clamav packages. If you use one of the platforms we support, you can grab them from our repository...if not, you'll need to locate packages for your OS somewhere.

Finally, you'll need to add another rule to the procmailrc to run mail through clamscan or clamdscan. Something like the rules I gave in this thread should do it:

http://www.virtualmin.com/forums/general-discussion/clamav.html

So, technically, I should probably point out that only spam filtering is really configurable in a sane way in Virtualmin GPL. It can all be done within Webmin (except maybe configuring clamdscan--though I've built an initscript package for it, that should work fine, if you're on one of our supported CentOS/RHEL versions), but clam is a bitch to deal with, regardless. procmail can be intimidating, as well.

--

Check out the forum guidelines!

Topic locked