Hi,all!
I always some day try to resolve the problem spamc through unix
socket+maildrop, but unsuccessfully, please help resolve the problem!
Installed software: spamassassin 3.2.5,maildrop
2.0.4,courier-imap-4.4.1,2,sendmail 8.14.3, OS FreeBSD 7.1 RELEASE
Users are virtual with homeDirectory /var/vmail/(domain)/(user). All
Right on /vmail have a user 'virtusr'
rc.conf:
spamd_flags="-l -d -c -x -u virtusr
--socketpath=/var/run/spamassassin.sock --socketowner=spamd
--socketgroup=virtusr"
when spamd started:
...spamd: server killed by SIGTERM, shutting down
...spamd[2042]: logger: removing stderr method
...spamd[2044]: netset: cannot include 127.0.0.0/8 as it has already
been included
...spamd[2044]: spamd: server started on UNIX domain socket
/var/run/spamassassin.sock (running version 3.2.5)
...spamd[2044]: spamd: server pid: 2044
...spamd[2044]: spamd: server successfully spawned child process, pid 2045
...spamd[2044]: spamd: server successfully spawned child process, pid 2046
...spamd[2044]: prefork: child states: IS
...spamd[2044]: prefork: child states: II
Socket too successfully create:
srw-rw-rw- 1 spamd virtusr - 0 22 июл 09:27 /var/run/spamassassin.sock=
mialdroprc:
import SENDER
import RECIPIENT
import HOME
import USER
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
SHELL="/bin/sh"
INBOX="Maildir"
DEFAULT="$INBOX"
SPAMFLD="$INBOX/.Junk"
ASPAMFLD="$INBOX/.AssumedSpam"
SENDMAIL="/usr/sbin/sendmail"
logfile "/var/log/maildrop.log"
VERBOSE="9"
`test -f $INBOX/.mailfilter`
if ( $RETURNCODE == 0 )
{
include '$INBOX/.mailfilter'
if ( $QUIT )
REASON="users's filter"
}
`test -d "$SPAMFLD"`
if( $RETURNCODE == 1 )
{
`maildirmake "$SPAMFLD"`
}
`test -d "$ASPAMFLD"`
if( $RETURNCODE == 1 )
{
`maildirmake "$ASPAMFLD"`
}
if ( $SIZE < 512000 )
{
exception {
xfilter "/usr/local/bin/spamc"
# if set this option,also not working
#xfilter "/usr/local/bin/spamc -u virtusr -U
/var/run/spamassassin.sock"
}
}
if ((/^X-Virus-Status:.*INFECTED/))
{
SPAMFILTER=0
log ">>> TAGGED AS *** VIRUS ***"
to "$SPAMFLD"
}
if ((/^X-Spam-Level: *-----.*$/:h) || (/^X-Spam-Flag: YES/:h) ||
(/^X-Spam-Status: Yes/:h))
{
cc "| /usr/local/bin/sa-learn --sync --spam"
log ">>> TAGGED AS *** SPAM ***"
to "$SPAMFLD"
}
if (/^X-Spam-Level: *-.*$/)
{
log ">>> TAGGED AS *** SPAM MAY BE ***"
to "$ASPAMFLD"
}
to "$DEFAULT"
When I have incoming message, nothing about 'spam' is maillog, only
'...spamc[2183]: invalid usage...'
from=<[email protected]>, size=2001, class=0, nrcpts=1,
msgid=<200907212153.n6llrfbm010...@hostmail>, proto=ESMTP, daemon=IPv4,
relay=rekl.fekil.nl [113.67.89.90]
...sendmail[2175]: n6M5kvKV002175: Milter add: header: X-Virus-Scanned:
ClamAV 0.94/9604/Wed Jul 22 04:59:17 2009 on hostmail
...sendmail[2175]: n6M5kvKV002175: Milter add: header: X-Virus-Status:
Clean
...sendmail[2175]: n6M5kvKV002175: Milter delete: header X-Virus-Status:
Clean
...sendmail[2175]: n6M5kvKV002175: Milter add: header: X-Virus-Scanned:
ClamAV 0.94/9604/Wed Jul 22 04:59:17 2009 on hostmail
...sendmail[2175]: n6M5kvKV002175: Milter add: header: X-Virus-Status:
Clean
...sendmail[2175]: n6M5kvKV002175: Milter add: header: X-Greylist:
Delayed for 01:01:59 by milter-greylist-4.2.2 (hostmail);
Wed, 22 Jul 2009 09:47:19 +0400 (MSD)
...authdaemond: Authenticated: sysusername=<null>, sysuserid=862,
sysgroupid=862, homedir=/var/vmail/testdom.ru/usr1,
[email protected], fullname=usr1, maildir=Maildir, quota=<null>,
options=<null>
Jul 22 09:47:19 hostmail spamc[2183]: invalid usage
...sendmail[2177]: n6M5kvKV002175: to=<[email protected]>, delay=00:00:00,
xdelay=00:00:00, mailer=maildrop, pri=32001, relay=testdom.ru,
dsn=2.0.0, stat=Sent
Please help!
Thanks!
--
Petrov Nikolay
ISP ZAO "TK "Convey plus"
Phone: 714-93-00