El vie, 16-12-2005 a las 10:05 +0100, Jose Javier Sianes Ruiz escribió:
> El jue, 15-12-2005 a las 16:27 -0300, Ing. Fernando Villarreal - Silice
> S.A. escribió:
> > Hi all,
> > 
> >     I have an email as a file identified as spam and i'd like to inject 
> > to smtp server to test how spamassassin is working.
> > 
> > I'd tried spamassassin -D -t < spam.txt but i'd like to test it 
> > simulating a smtp injection, any ideas?
> > 
> > Thanks.
> > 
> > Fernando Villarreal
> >

Sorry, last mail was uncompleted.....

Once you have installed qmail and spamassassin correctly a very simple
way to test it is sending an spam email (sure you have one in your
inbox) using your favourite client (or directly telnet to port 25). For
example, if you are using qmail-scanner to integrate spamassassin with
qmail, active DEBUG mode on qmail-scanner an look at the qmail-queue.log
file. You must see some lines like this:

Fri, 16 Dec 2005 09:20:25 CET:8251: SA:
overwriting /var/qmail/qmailscan/working/new/ares11347212114938251
with /var/qmail/qmailscan/working/new/ares11347212114938251.spamc
Fri, 16 Dec 2005 09:20:25 CET:8251: SA: yup, this smells like SPAM
Fri, 16 Dec 2005 09:20:25 CET:8251: spamassassin: finished scan of dir
"/var/qmail/qmailscan/tmp/ares11347212114938251" in 10.960512 secs


Also, if you have enable log for spamassassin, when email is received
you must see something like this on your spamd daemon log:


Dec 16 09:21:06 ares spamd[2322]: prefork: child states: II
Dec 16 09:21:33 ares spamd[310]: spamd: connection from
localhost.localdomain [127.0.0.1] at port 44874
Dec 16 09:21:33 ares spamd[310]: spamd: processing message <002c01c60219
[EMAIL PROTECTED]> for [EMAIL PROTECTED]:11184
Dec 16 09:21:42 ares spamd[310]: spamd: clean message (-1.2/5.0) for
[EMAIL PROTECTED]:11184 in 9.4 seconds, 1853 bytes.
Dec 16 09:21:43 ares spamd[310]: spamd: result: . -1 -
AWL,BAYES_00,HELO_DYNAMIC_SPLIT_IP
scantime=9.4,size=1853,user=vmail,uid=11184,required_score=5.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=44874,mid=<[EMAIL
 PROTECTED]>,bayes=0,autolearn=no

Reply via email to