On 09/30/2010 03:30 PM, Hugo Monteiro wrote:
On 09/30/2010 02:57 PM, 85339482 wrote:
Thanks for your anwser my question!
Following is my pluging dspam into qmail setup:
DSPAM VERSION 3.9
1. Compiling and Install
sh configure --prefix=/usr/local/dspam --enable-split-configuration --enable-demon \ --enable-external-lookup --enable-debug --with-storage-driver=mysql_drv --enable-syslog \
--enable-long-usernames --with-mysql-includes=/usr/include/mysql \
--with-mysql-libraries=/usr/lib/mysql --enable-virtual-users \
--with-dspam-owner=vpopmail --with-dspam-group=vchkpw \
--with-dspam-home-owner=vpopmail --with-dspam-home-group=vchkpw \
--with-delivery-agent=/usr/local/bin/maildrop \
--enable-domain-scale --enable-warnings=yes \
--with-logfile=dspam.log --with-logdir=/var/log
make
make install
chown -R vpopmail: /usr/local/dspam
2. Create Database for Dspam and import table into it
mysql -e "create database dspam"
mysql -e "grant all on dspam.* to vpopm...@localhost <mailto:vpopm...@localhost> identified by '1984107'"
mysql < mysql_objects-4.1.sql dspam
mysql < virtual_users.sql dspam
3. Plug Dspam into Qmail
     Edit .qmail-default
/usr/local/dspam/bin/dspam --user extmail --deliver=innocent,spam --mode=teft --feature=no,wh --stdout | /usr/local/bin/maildrop mailfilter 4. Using Globale user "extmail" for training by dspam and login dspam web ui
/usr/local/dspam/bin/dspam_tran extmail spam_dir ham_dir
5. create mailfilter
SHELL=/bin/sh
import EXT
import HOST
vhome=`~vpopmail/bin/vuserinfo -d $...@$host <mailto:$...@$host>`
vspam=`~vpopmail/bin/vuserinfo -d $...@$host <mailto:$...@$host>`
`test -d $vhome/Maildir/`
if ( $RETURNCODE != 0 )
{
 echo "Sorry, but the user $...@$host <mailto:$...@$host> does not exist"
 EXITCODE=77
 exit
}
if ( $SIZE < 262144 )
{
 exception {
 xfilter "/usr/bin/spamc -f -u $...@$host <mailto:$...@$host>"
    }
}
if (/^X-Spam-Flag: YES/:h || /^X-DSPAM-Result:.*Spam/)
{
 `test -d $vspam/Maildir/.Junk`
 if ( $RETURNCODE != 0 )
 {
`maildirmake $vspam/Maildir/.Junk;chown -R vpopmail: $vspam/Maildir/.Junk`
 }
 to "$vspam/Maildir/.Junk/."
 EXITCODE=0
}
else
{
 to "$vhome/Maildir/."
}
all done. I think everything is perfect! but quarantine is not work! I see nothing in quarantine tab in dspam web!
need your help!


Please post the contents of your dspam.conf file (minus logins and passwords)


Regards,

Hugo Monteiro.


You should have sent the configuration to the list, removing the logins and passswords in it. Either way, since you're using the mysql driver, and you allow override for spamAction, what is the result of the following query in your dspam database?

select value from dspam_preferences where preference = 'spamAction' and uid = 0;


Regards,

Hugo Monteiro.

--
fct.unl.pt:~# cat .signature

Hugo Monteiro
Email    : hugo.monte...@fct.unl.pt
Telefone : +351 212948300 Ext.15307
Web      : http://hmonteiro.net

Divisão de Informática
Faculdade de Ciências e Tecnologia da
                   Universidade Nova de Lisboa
Quinta da Torre   2829-516 Caparica   Portugal
Telefone: +351 212948596   Fax: +351 212948548
www.fct.unl.pt                ap...@fct.unl.pt

fct.unl.pt:~# _

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to