You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Carlo Filippetto <ca...@gmail.com> on 2014/10/15 12:12:37 UTC

Spamassassin doesn't work

Hi all,
I have a new server with CentOS release 6.5
I manually compile:
 - clamav-0.98.4
 - Mail-SpamAssassin-3.4.0.tar.gz
 - milter-greylist-4.4.3.tgz
 - mimedefang-2.75.tar.gz
 - sendmail.8.14.9.tar.gz

The service work fine, but I spamassassin doesn't work!
I don't use it as a demon, it shoul be called from mimedefang:

# mimedefang.pl -features
MIMEDefang version 2.75

HTML::Parser                  : yes
Net::DNS                      : yes
Path:CONFDIR                  : yes (/etc/mail)
Path:QUARANTINEDIR            : yes (/var/spool/MD-Quarantine)
Path:SENDMAIL                 : yes (/usr/sbin/sendmail)
Path:SPOOLDIR                 : yes (/var/spool/MIMEDefang)
SpamAssassin                  : yes
Virus:CLAMAV                  : yes (/usr/bin/clamscan)
Virus:CLAMD                   : yes (/usr/sbin/clamd)


But when I start the service no spam is found...

I tried several ways, but nothing

Anyone can help me?

Thank you

--
Carlo

Re: Spamassassin doesn't work

Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 10/16/2014 8:31 AM, Carlo Filippetto wrote:
>
> 2014-10-16 14:21 GMT+02:00 Kevin A. McGrail <KMcGrail@pccc.com 
> <ma...@pccc.com>>:
>
>     Does your mimedefang filter include a spamassassin check?
>
>
> This should be that mimedefang is included?
>
> # mimedefang.pl <http://mimedefang.pl> -features
> MIMEDefang version 2.75
>
> HTML::Parser                  : yes
> Net::DNS                      : yes
> Path:CONFDIR                  : yes (/etc/mail)
> Path:QUARANTINEDIR            : yes (/var/spool/MD-Quarantine)
> Path:SENDMAIL                 : yes (/usr/sbin/sendmail)
> Path:SPOOLDIR                 : yes (/var/spool/MIMEDefang)
> SpamAssassin                  : yes
> Virus:CLAMAV                  : yes (/usr/bin/clamscan)
> Virus:CLAMD                   : yes (/usr/sbin/clamd)
>
>
You need to look at the mimedefang-filter file and see what logic it does.

The MD filter is extremely flexible and can do anything and nothing.

For example, I believe it ships with an example filter that implements 
spamassassin.

This discussion is much better suited now for the MD list (which I read 
as well).

Regards,
KAM

Re: Spamassassin doesn't work

Posted by Carlo Filippetto <ca...@gmail.com>.
The first time I change the permission with only -r--r--r--. I receive an
error with Spamassassin modules.

*Can't locate Mail/SpamAssassin/DBBasedAddrList.pm*

I change all the permission again with 755 and no error appears, so I think
that SpamAssassin is loaded from MD. But when I start the server no
spamassassin log is loaded, and no mail test are signed as SPAM

:(



2014-10-16 15:04 GMT+02:00 Carlo Filippetto <ca...@gmail.com>:

> I'll going to check
>
> Thank you
>
> 2014-10-16 14:49 GMT+02:00 Kevin A. McGrail <KM...@pccc.com>:
>
>  On 10/16/2014 8:47 AM, Jeremy McSpadden wrote:
>>
>> http://www.mimedefang.org/node/14
>>
>> I don't think that applies as SA is found per his note below.
>>
>> I'm wondering if he has a filter for MD with any logic for a spam test.
>>
>>  Path:SPOOLDIR                 : yes (/var/spool/MIMEDefang)
>> SpamAssassin                  : yes
>>
>> Regards,
>> KAM
>>
>
>

Re: Spamassassin doesn't work

Posted by Carlo Filippetto <ca...@gmail.com>.
I'll going to check

Thank you

2014-10-16 14:49 GMT+02:00 Kevin A. McGrail <KM...@pccc.com>:

>  On 10/16/2014 8:47 AM, Jeremy McSpadden wrote:
>
> http://www.mimedefang.org/node/14
>
> I don't think that applies as SA is found per his note below.
>
> I'm wondering if he has a filter for MD with any logic for a spam test.
>
>  Path:SPOOLDIR                 : yes (/var/spool/MIMEDefang)
> SpamAssassin                  : yes
>
> Regards,
> KAM
>

Re: Spamassassin doesn't work

Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 10/16/2014 8:47 AM, Jeremy McSpadden wrote:
> http://www.mimedefang.org/node/14
I don't think that applies as SA is found per his note below.

I'm wondering if he has a filter for MD with any logic for a spam test.

> Path:SPOOLDIR                 : yes (/var/spool/MIMEDefang)
> SpamAssassin                  : yes
Regards,
KAM

Re: Spamassassin doesn't work

Posted by Jeremy McSpadden <je...@fluxlabs.net>.
http://www.mimedefang.org/node/14

--
Jeremy McSpadden
Flux Labs | http://www.fluxlabs.net<http://www.fluxlabs.net/> | Endless Solutions
Office : 850-250-5590x501<tel:850-250-5590;501> | Cell : 850-890-2543<tel:850-890-2543> | Fax : 850-254-2955<tel:850-254-2955>

On Oct 16, 2014, at 7:32 AM, Carlo Filippetto <ca...@gmail.com>> wrote:


2014-10-16 14:21 GMT+02:00 Kevin A. McGrail <KM...@pccc.com>>:
Does your mimedefang filter include a spamassassin check?

This should be that mimedefang is included?

# mimedefang.pl<http://mimedefang.pl> -features
MIMEDefang version 2.75

HTML::Parser                  : yes
Net::DNS                      : yes
Path:CONFDIR                  : yes (/etc/mail)
Path:QUARANTINEDIR            : yes (/var/spool/MD-Quarantine)
Path:SENDMAIL                 : yes (/usr/sbin/sendmail)
Path:SPOOLDIR                 : yes (/var/spool/MIMEDefang)
SpamAssassin                  : yes
Virus:CLAMAV                  : yes (/usr/bin/clamscan)
Virus:CLAMD                   : yes (/usr/sbin/clamd)



Re: Spamassassin doesn't work

Posted by Carlo Filippetto <ca...@gmail.com>.
2014-10-16 14:21 GMT+02:00 Kevin A. McGrail <KM...@pccc.com>:

> Does your mimedefang filter include a spamassassin check?


This should be that mimedefang is included?

# mimedefang.pl -features
MIMEDefang version 2.75

HTML::Parser                  : yes
Net::DNS                      : yes
Path:CONFDIR                  : yes (/etc/mail)
Path:QUARANTINEDIR            : yes (/var/spool/MD-Quarantine)
Path:SENDMAIL                 : yes (/usr/sbin/sendmail)
Path:SPOOLDIR                 : yes (/var/spool/MIMEDefang)
SpamAssassin                  : yes
Virus:CLAMAV                  : yes (/usr/bin/clamscan)
Virus:CLAMD                   : yes (/usr/sbin/clamd)

Re: Spamassassin doesn't work

Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 10/16/2014 3:49 AM, Carlo Filippetto wrote:
> I restart mimedefang and sendmail but no spamassassin check!
Does your mimedefang filter include a spamassassin check?

Re: Spamassassin doesn't work

Posted by Carlo Filippetto <ca...@gmail.com>.
Not yet
I started here



2014-10-16 10:00 GMT+02:00 Axb <ax...@gmail.com>:

>
> Have you asked on the MIMEDefang list?
>
>
>
> On 10/16/2014 09:49 AM, Carlo Filippetto wrote:
>
>> Dear Martin,
>>
>> this is my sa-update
>>
>> # sa-update -v
>> Update available for channel updates.spamassassin.org: 1613764 -> 1631972
>> http: (curl) GET http://spamassassin.apache.org/updates/MIRRORED.BY,
>> success
>> http: (curl) GET http://sa-update.secnap.net/1631972.tar.gz, success
>> http: (curl) GET http://sa-update.secnap.net/1631972.tar.gz.sha1, success
>> http: (curl) GET http://sa-update.secnap.net/1631972.tar.gz.asc, success
>> Update was available, and was downloaded and installed successfully
>>
>>
>> I restart mimedefang and sendmail but no spamassassin check!
>>
>>
>> [root@mx-mi1 ~]# egrep s9G7bE8j013506 /var/log/maillog
>> Oct 16 09:37:14 mx-mi1 mimedefang.pl[13459]: s9G7bE8j013506:
>> s9G7bE8j013506: CHECK <aaaa@****> CONTINUE (<aaaa@****>) 250 2.1.5 ,
>> relay=58.143.14.74, sender=<no...@vandemaasduinen.nl>
>> Oct 16 09:37:18 mx-mi1 sendmail[13506]: s9G7bE8j013506: from=<
>> no-reply@vandemaasduinen.nl>, size=315503, class=0, nrcpts=1, msgid=<
>> I1N3IJT6.6426198@robtec.com>, bodytype=8BITMIME, proto=ESMTP, daemon=MTA,
>> relay=[58.143.14.74]
>> Oct 16 09:37:18 mx-mi1 sendmail[13506]: s9G7bE8j013506: Milter add:
>> header:
>> X-Scanned-By: MIMEDefang 2.75 on **.**.**.***
>> Oct 16 09:37:18 mx-mi1 sendmail[13509]: s9G7bE8j013506: to=<aaaa@****>,
>> delay=00:00:04, xdelay=00:00:00, mailer=esmtp, pri=435503,
>> relay=mailbox.****.##. [interlal:ip], dsn=2.0.0, stat=Sent (s9G7bIi6013323
>> Message accepted for delivery)
>>
>>
>>
>>
>>
>>
>> 2014-10-15 12:57 GMT+02:00 Martin Gregorie <ma...@gregorie.org>:
>>
>>  On Wed, 2014-10-15 at 12:12 +0200, Carlo Filippetto wrote:
>>>
>>>> Hi all,
>>>> I have a new server with CentOS release 6.5
>>>> I manually compile:
>>>>   - clamav-0.98.4
>>>>   - Mail-SpamAssassin-3.4.0.tar.gz
>>>>   - milter-greylist-4.4.3.tgz
>>>>   - mimedefang-2.75.tar.gz
>>>>   - sendmail.8.14.9.tar.gz
>>>>
>>>> The service work fine, but I spamassassin doesn't work!
>>>>
>>>>  Have you run sa_update on that server? If not, do so: the rule set is
>>> not part of the spamassassin RPM package, so sa_update must be run
>>> before you can use SA.
>>>
>>> Martin
>>>
>>>
>>>
>>>
>>>
>>>
>>
>

Re: Spamassassin doesn't work

Posted by Axb <ax...@gmail.com>.
Have you asked on the MIMEDefang list?


On 10/16/2014 09:49 AM, Carlo Filippetto wrote:
> Dear Martin,
>
> this is my sa-update
>
> # sa-update -v
> Update available for channel updates.spamassassin.org: 1613764 -> 1631972
> http: (curl) GET http://spamassassin.apache.org/updates/MIRRORED.BY, success
> http: (curl) GET http://sa-update.secnap.net/1631972.tar.gz, success
> http: (curl) GET http://sa-update.secnap.net/1631972.tar.gz.sha1, success
> http: (curl) GET http://sa-update.secnap.net/1631972.tar.gz.asc, success
> Update was available, and was downloaded and installed successfully
>
>
> I restart mimedefang and sendmail but no spamassassin check!
>
>
> [root@mx-mi1 ~]# egrep s9G7bE8j013506 /var/log/maillog
> Oct 16 09:37:14 mx-mi1 mimedefang.pl[13459]: s9G7bE8j013506:
> s9G7bE8j013506: CHECK <aaaa@****> CONTINUE (<aaaa@****>) 250 2.1.5 ,
> relay=58.143.14.74, sender=<no...@vandemaasduinen.nl>
> Oct 16 09:37:18 mx-mi1 sendmail[13506]: s9G7bE8j013506: from=<
> no-reply@vandemaasduinen.nl>, size=315503, class=0, nrcpts=1, msgid=<
> I1N3IJT6.6426198@robtec.com>, bodytype=8BITMIME, proto=ESMTP, daemon=MTA,
> relay=[58.143.14.74]
> Oct 16 09:37:18 mx-mi1 sendmail[13506]: s9G7bE8j013506: Milter add: header:
> X-Scanned-By: MIMEDefang 2.75 on **.**.**.***
> Oct 16 09:37:18 mx-mi1 sendmail[13509]: s9G7bE8j013506: to=<aaaa@****>,
> delay=00:00:04, xdelay=00:00:00, mailer=esmtp, pri=435503,
> relay=mailbox.****.##. [interlal:ip], dsn=2.0.0, stat=Sent (s9G7bIi6013323
> Message accepted for delivery)
>
>
>
>
>
>
> 2014-10-15 12:57 GMT+02:00 Martin Gregorie <ma...@gregorie.org>:
>
>> On Wed, 2014-10-15 at 12:12 +0200, Carlo Filippetto wrote:
>>> Hi all,
>>> I have a new server with CentOS release 6.5
>>> I manually compile:
>>>   - clamav-0.98.4
>>>   - Mail-SpamAssassin-3.4.0.tar.gz
>>>   - milter-greylist-4.4.3.tgz
>>>   - mimedefang-2.75.tar.gz
>>>   - sendmail.8.14.9.tar.gz
>>>
>>> The service work fine, but I spamassassin doesn't work!
>>>
>> Have you run sa_update on that server? If not, do so: the rule set is
>> not part of the spamassassin RPM package, so sa_update must be run
>> before you can use SA.
>>
>> Martin
>>
>>
>>
>>
>>
>


Re: Spamassassin doesn't work

Posted by Martin Gregorie <ma...@gregorie.org>.
Please don't send messages directly: the copy sent to the list is
sufficient.


On Thu, 2014-10-16 at 09:49 +0200, Carlo Filippetto wrote:
> Dear Martin,
> 
> this is my sa-update
> 
> # sa-update -v
> Update available for channel updates.spamassassin.org: 1613764 -> 1631972
> http: (curl) GET http://spamassassin.apache.org/updates/MIRRORED.BY, success
> http: (curl) GET http://sa-update.secnap.net/1631972.tar.gz, success
> http: (curl) GET http://sa-update.secnap.net/1631972.tar.gz.sha1, success
> http: (curl) GET http://sa-update.secnap.net/1631972.tar.gz.asc, success
> Update was available, and was downloaded and installed successfully
> 
> 
> I restart mimedefang and sendmail but no spamassassin check!
> 
> 
> [root@mx-mi1 ~]# egrep s9G7bE8j013506 /var/log/maillog
> Oct 16 09:37:14 mx-mi1 mimedefang.pl[13459]: s9G7bE8j013506:
> s9G7bE8j013506: CHECK <aaaa@****> CONTINUE (<aaaa@****>) 250 2.1.5 ,
> relay=58.143.14.74, sender=<no...@vandemaasduinen.nl>
> Oct 16 09:37:18 mx-mi1 sendmail[13506]: s9G7bE8j013506: from=<
> no-reply@vandemaasduinen.nl>, size=315503, class=0, nrcpts=1, msgid=<
> I1N3IJT6.6426198@robtec.com>, bodytype=8BITMIME, proto=ESMTP, daemon=MTA,
> relay=[58.143.14.74]
> Oct 16 09:37:18 mx-mi1 sendmail[13506]: s9G7bE8j013506: Milter add: header:
> X-Scanned-By: MIMEDefang 2.75 on **.**.**.***
> Oct 16 09:37:18 mx-mi1 sendmail[13509]: s9G7bE8j013506: to=<aaaa@****>,
> delay=00:00:04, xdelay=00:00:00, mailer=esmtp, pri=435503,
> relay=mailbox.****.##. [interlal:ip], dsn=2.0.0, stat=Sent (s9G7bIi6013323
> Message accepted for delivery)
> 
> 
> 
> 
> 
> 
> 2014-10-15 12:57 GMT+02:00 Martin Gregorie <ma...@gregorie.org>:
> 
> > On Wed, 2014-10-15 at 12:12 +0200, Carlo Filippetto wrote:
> > > Hi all,
> > > I have a new server with CentOS release 6.5
> > > I manually compile:
> > >  - clamav-0.98.4
> > >  - Mail-SpamAssassin-3.4.0.tar.gz
> > >  - milter-greylist-4.4.3.tgz
> > >  - mimedefang-2.75.tar.gz
> > >  - sendmail.8.14.9.tar.gz
> > >
> > > The service work fine, but I spamassassin doesn't work!
> > >
> > Have you run sa_update on that server? If not, do so: the rule set is
> > not part of the spamassassin RPM package, so sa_update must be run
> > before you can use SA.
> >
> > Martin
> >
> >
> >
> >
> >




Re: Spamassassin doesn't work

Posted by Carlo Filippetto <ca...@gmail.com>.
Dear Martin,

this is my sa-update

# sa-update -v
Update available for channel updates.spamassassin.org: 1613764 -> 1631972
http: (curl) GET http://spamassassin.apache.org/updates/MIRRORED.BY, success
http: (curl) GET http://sa-update.secnap.net/1631972.tar.gz, success
http: (curl) GET http://sa-update.secnap.net/1631972.tar.gz.sha1, success
http: (curl) GET http://sa-update.secnap.net/1631972.tar.gz.asc, success
Update was available, and was downloaded and installed successfully


I restart mimedefang and sendmail but no spamassassin check!


[root@mx-mi1 ~]# egrep s9G7bE8j013506 /var/log/maillog
Oct 16 09:37:14 mx-mi1 mimedefang.pl[13459]: s9G7bE8j013506:
s9G7bE8j013506: CHECK <aaaa@****> CONTINUE (<aaaa@****>) 250 2.1.5 ,
relay=58.143.14.74, sender=<no...@vandemaasduinen.nl>
Oct 16 09:37:18 mx-mi1 sendmail[13506]: s9G7bE8j013506: from=<
no-reply@vandemaasduinen.nl>, size=315503, class=0, nrcpts=1, msgid=<
I1N3IJT6.6426198@robtec.com>, bodytype=8BITMIME, proto=ESMTP, daemon=MTA,
relay=[58.143.14.74]
Oct 16 09:37:18 mx-mi1 sendmail[13506]: s9G7bE8j013506: Milter add: header:
X-Scanned-By: MIMEDefang 2.75 on **.**.**.***
Oct 16 09:37:18 mx-mi1 sendmail[13509]: s9G7bE8j013506: to=<aaaa@****>,
delay=00:00:04, xdelay=00:00:00, mailer=esmtp, pri=435503,
relay=mailbox.****.##. [interlal:ip], dsn=2.0.0, stat=Sent (s9G7bIi6013323
Message accepted for delivery)






2014-10-15 12:57 GMT+02:00 Martin Gregorie <ma...@gregorie.org>:

> On Wed, 2014-10-15 at 12:12 +0200, Carlo Filippetto wrote:
> > Hi all,
> > I have a new server with CentOS release 6.5
> > I manually compile:
> >  - clamav-0.98.4
> >  - Mail-SpamAssassin-3.4.0.tar.gz
> >  - milter-greylist-4.4.3.tgz
> >  - mimedefang-2.75.tar.gz
> >  - sendmail.8.14.9.tar.gz
> >
> > The service work fine, but I spamassassin doesn't work!
> >
> Have you run sa_update on that server? If not, do so: the rule set is
> not part of the spamassassin RPM package, so sa_update must be run
> before you can use SA.
>
> Martin
>
>
>
>
>

Re: Spamassassin doesn't work

Posted by Martin Gregorie <ma...@gregorie.org>.
On Wed, 2014-10-15 at 12:12 +0200, Carlo Filippetto wrote:
> Hi all,
> I have a new server with CentOS release 6.5
> I manually compile:
>  - clamav-0.98.4
>  - Mail-SpamAssassin-3.4.0.tar.gz
>  - milter-greylist-4.4.3.tgz
>  - mimedefang-2.75.tar.gz
>  - sendmail.8.14.9.tar.gz
> 
> The service work fine, but I spamassassin doesn't work!
>
Have you run sa_update on that server? If not, do so: the rule set is
not part of the spamassassin RPM package, so sa_update must be run
before you can use SA.

Martin