EnderUNIX Team.


EnderUNIX İpucu

Arkadaşıma gönder , Ana Sayfa

[ antivirüs ]

"Spamassassin ve Maildrop" - Ömer Faruk Şen - (2005-09-06 09:25:03)   [3684]

SpamAssassin’i çağıran maildrop icin mailfilter ayarlama dosyası aşağıdaki şekilde olabilir..



SHELL="/bin/sh"

import EXT

import HOST

#VPOP="| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/domain/user"

VPOP="| /home/vpopmail/bin/vdelivermail '' delete"

VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`

logfile "/var/log/mailfilter.log"



if ( $VHOME eq "" )

{

log "========"

log "ERROR: VHOME isn't set!"

to "$VPOP"

}

else

{

if ( $SIZE < 262144 )

{

exception {

xfilter "/usr/bin/spamc -f $EXT@$HOST"

#xfilter "/usr/bin/spamc -f -u $EXT@$HOST"

}

}



#if ((/^Subject:.*istemedigim-konu*/))

#{

# to /dev/null

#}





if (/^X-Spam-Flag: *YES/)

{

exception {

include $VHOME/Maildir/.mailfilter

}



`test -d $VHOME/Maildir/`

if( $RETURNCODE == 1)

{

`/usr/local/bin/maildirmake -f Spam $VHOME/Maildir`

}

exception {

to "$VHOME/Maildir/"

}

}

exception {

include $VHOME/Maildir/.mailfilter

}

# default delivery

exception {

to "$VHOME/Maildir/"

}

}

Not: Bu ipucu Engin OZTURK tarafindan yazilmis olan http://www.enderunix.org/bulten/2004/06/konu.html adresindeki makaleden alinmistir.

Arkadaşıma gönder , Ana Sayfa