On Sat, 2007-03-10 at 20:20 -0800, Dennis Peterson wrote:
> fcgmail wrote:
> 
> > 
> > And also if it's made to work with qmail, how can i make it not to scan 
> > outgoing email?
> > 
> > Any hint will be greatly appreciated!
> 
> If you checked your outgoing mail I wouldn't have to check it when it 
> gets to my server. The only reason I have to check other people's mail 
> at all is because they don't.

Most virus emails don't come from servers but from worm-farms. Even if
all emails did come from servers, it only takes one bad server ...

I'll check my incoming mail regardless, thanks.

Not wanting to scan outgoing mail is a puzzling requirement though.
Unless you're really strapped for performance, why not?
If it is a performance issue then either upgrade your tired old 286 or
you're handling so much mail that you shouldn't have to ask how set it
up. (Sorry, don't mean to sound harsh....)

If you really only want to scan incoming mail one way to do that is with
procmail; just set up a global rule "/etc/procmailrc":

LOGFILE=/tmp/procmail.global.$LOGNAME.`/bin/date +%Y.%m%d`.log
SHELL=/bin/bash
SUBJECT=`formail -xSubject:`

:0fw: virus.lock
|/usr/local/bin/clamscan-procfilter.pl

:0fw
* ^X-CLAMAV
|/usr/bin/formail -i "Subject: [CLAMAV VIRUS ALERT] ${SUBJECT}"


Thomas

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to