DSPAM установил по http://www.lissyara.su/?id=1301
отослал себе тестовое письмо с другого ящика
пробую тест вида
Код: Выделить всё
/usr/local/bin/dspam --debug --deliver=innocent --user
local_part@domain.com -- %u < spam.txt
Код: Выделить всё
Resent-Date: Tue, 17 Feb 2009 08:28:44 +0300
X-Spam: Not detected
X-Mras: Ok
X-DSPAM-Result: Innocent
X-DSPAM-Processed: Tue Feb 17 07:29:23 2009
X-DSPAM-Confidence: 0.9899
X-DSPAM-Probability: 0.0000
X-DSPAM-Signature: 1,499a4b33132071509912369
X-DSPAM-Factors: 27,
Resent-Date*Feb, 0.01000,
*Tue+Feb, 0.01000,
Received*savio, 0.01000,
Received*Tue, 0.01000,
Received*Tue, 0.01000,
X-Spam*detected, 0.01000,
*mail.ru+Tue, 0.01000,
Received*ESMTP, 0.01000,
Message-ID*mail.ru>, 0.01000,
Received*<savio+mydomen.com>, 0.01000,
Resent-from*msavio, 0.01000,
X-Spam*Not, 0.01000,
Received*mydomen.com, 0.01000,
Received*mydomen.com, 0.01000,
X-Priority*3+(Normal), 0.01000,
Resent-Message-Id*mail+ru, 0.01000,
Received*(envelope+from, 0.01000,
Resent-from*msavio+mail.ru, 0.01000,
Resent-Message-Id*ru, 0.01000,
Received*psmtp, 0.01000,
Resent-Message-Id*00.msavio, 0.01000,
*From, 0.01000,
X-Priority*(Normal), 0.01000,
Resent-from*mail.ru, 0.01000,
*msavio, 0.01000,
Date*17+Feb, 0.01000,
Received*with, 0.01000
X-EsetId: E38FB42BF9BA7769FC89B47CF6E935
test
!DSPAM:1,499a4b33132071509912369!
Код: Выделить всё
Resent-Date: Tue, 17 Feb 2009 08:38:28 +0300
X-Spam: Not detected
X-Mras: Ok
X-EsetId: E38FB42BF9BA7769FC89B47CF6E935
test
прикручивал так. в /etc/mail/mydomen.com.mc добавлял
Код: Выделить всё
define(`LOCAL_MAILER_PATH', `/usr/local/bin/dspam')dnl
define(`LOCAL_MAILER_ARGS', `dspam "--deliver=innocent" --user $u -d %u')dnl
файл имеет вид
Код: Выделить всё
divert(-1)
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30.2.3 2007/04/23 22:30:09 gshapiro Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)
FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
define(`LOCAL_MAILER_PATH', `/usr/local/bin/dspam')dnl
define(`LOCAL_MAILER_ARGS', `dspam "--deliver=innocent" --user $u -d %u')dnl
define(`confCW_FILE', `-o /etc/mail/local-host-names')
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(dspam)
MAILER(smtp)