I'm using workaround - replace /usr/sbin/sa-learn script with my own, which call spamc:
----- /usr/bin/sa-learn ----- #!/bin/bash
SPAMD_SERVER="192.168.0.100"
TYPE=''
if [ "$1" == "--ham" ] then TYPE="ham" elif [ "$1" == "--spam" ] then TYPE="spam" else exit 0 fi
/usr/bin/spamc -L $TYPE -d $SPAMD_SERVER -s 256000000
exit $?
I'm using workaround - replace /usr/sbin/sa-learn script with my own, which call spamc:
----- /usr/bin/sa-learn -----
#!/bin/bash
SPAMD_SERVER= "192.168. 0.100"
TYPE=''
if [ "$1" == "--ham" ]
then
TYPE="ham"
elif [ "$1" == "--spam" ]
then
TYPE="spam"
else
exit 0
fi
/usr/bin/spamc -L $TYPE -d $SPAMD_SERVER -s 256000000
exit $?