Integrating Spamassassin with Scalix

Best practice information from Scalix users relating to integration of Scalix with other products.

Moderator: ScalixSupport

New2Scalix

Integrating Spamassassin with Scalix

Postby New2Scalix » Mon Aug 13, 2007 2:33 pm

Dear Sir/Madam,

I can't find my solution anywhere. I had installed both Scalix and Spamassassin on my machine and it looks that they are working independently.

I followed the Scalix Documentation and when I had inserted SMTPFILTER=TRUE above the line RELAY 127.0.0.1 in the /var/opt/scalix/sys/smtpd.cfg (as every documentation and forums says) and restart the smtp service by omoff -w -d0 smtpd, omon smtpd, the Scalix stopped sending emails. When I comment the SMTPFILTER=TRUE and restart again the smtp service, The Scalix will start again sending emails.

Did someone faced this problem? Can you someone give me a solution for this please?

cheers

New2Scalix

Integrating Spamassassin with Scalix

Postby New2Scalix » Tue Aug 14, 2007 6:56 am

Can you anyone from Scalix members help me out on this please?

jaime.pinto
Scalix Star
Scalix Star
Posts: 709
Joined: Fri Feb 23, 2007 6:50 pm
Location: Toronto - Canada

Postby jaime.pinto » Tue Aug 14, 2007 8:50 am

...t looks that they are working independently.
They are. Spamassassin is *not* integrated into Scalix, but into *sendmail*. Focus on the /etc/mail/sendmail.mc file. This documentation you've been reading is either incorrect or outdated.
Image Jaime
||||||||||||||||||||||||||||||||||||||||

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Tue Aug 14, 2007 10:40 am

jaime.pinto wrote:
...t looks that they are working independently.
They are. Spamassassin is *not* integrated into Scalix, but into *sendmail*. Focus on the /etc/mail/sendmail.mc file. This documentation you've been reading is either incorrect or outdated.


The wiki has this documented and up to date.

Check here....

http://www.scalix.com/wiki/index.php?ti ... amAssassin

there's lot of other useful stuff there also.
Regards,

Les Stott

New2Scalix

Postby New2Scalix » Tue Aug 14, 2007 2:39 pm

Thanks alot for your reply. Sorry for disturbing you again. Hereunder I am pasting what I had added in my sendmail.mc, Can you please tell me what I have wrong in there.

dnl define(`confAUTH_OPTIONS', `A p')dnl
INPUT_MAIL_FILTER(`clmilter', `S=local:/var/run/clamav/clamav-milter.sock, F=, T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `clmilter,spamassassin')dnl
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamassassin/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl


Last three lines...

MAILER(smtp)dnl
MAILER(procmail)dnl
MAILER(scalix)dnl


I had already followed the How/TOs of Spamassassin.

I was reading on the net and I read that I need to add something to the /etc/procmailrc file but I don't have it. Do I need to install procmail to have that file?
Or do I need to change procmail to sendmail in the 2nd line from the end?

The problem is coming when I add SMTPFILTER=TRUE to the smtpd.cfg. Sorry if I am asking a silly question but I am doing it the first time. Thanks

Cheers

New2Scalix

jaime.pinto
Scalix Star
Scalix Star
Posts: 709
Joined: Fri Feb 23, 2007 6:50 pm
Location: Toronto - Canada

Postby jaime.pinto » Tue Aug 14, 2007 4:06 pm

Try commenting any lines with SMTPFILTER in your smtpd.cfg

Then work on the order of definitions in sendmail.mc. Order does matter in there.

define(`confINPUT_MAIL_FILTERS', `clmilter,spamassassin')dnl
INPUT_MAIL_FILTER(`clmilter', `S=local:/var/run/clamav/clamav-milter.sock, F=, T=S:4m;R:4m')dnl
NPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamassassin/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl


Take mine as an example:
...
dnl FEATURE(masquerade_entire_domain)dnl
dnl #
MASQUERADE_DOMAIN(localhost)dnl
MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
dnl
dnl # Setup the sendmail filters; milter
dnl
dnl INPUT_MAIL_FILTER(`filter1', `S=local:/var/run/f1.sock, F=R')
INPUT_MAIL_FILTER(`dk-filter', `S=inet:8891@scalix.somain.com')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
MAILER(scalix)dnl
define(`MILTER', 1)dnl
INPUT_MAIL_FILTER(`milter-amavis', `S=local:/var/lib/amavis/amavisd-milter.sock, F=T, T=S:10m;R:10m;E:10m')dnl
Image Jaime
||||||||||||||||||||||||||||||||||||||||

New2Scalix

Postby New2Scalix » Fri Aug 17, 2007 1:14 pm

Thanks very much for your reply but it did not worked for me in this way neither.
It is still when I comment the SMTPFILTER=TRUE in smtpd.conf, the mail will work and if I uncomment is the mail won't work.

I can't find what is my problem. I have installed a clean installation of spamassassin and configured again but still the same. I have tried to change from procmail to sendmail in the sendmail.mc configuration file but it didn't done anything. I also tried to put them in order as you told me.

If you can help me out on this the better please.

Cheers!

dkelly
Scalix
Scalix
Posts: 593
Joined: Thu Mar 18, 2004 2:03 pm

Postby dkelly » Fri Aug 17, 2007 3:17 pm

What distribution are you using ?

Is sendmail listening on 127.0.0.1 : 25 ?

Cheers

Dave

New2Scalix

Postby New2Scalix » Fri Aug 17, 2007 4:59 pm

Hi Dave

Thanks for your interest. I am using Scalix version 10.0.1.26. I think yes it is listening port 25. I set it from the /var/opt/scalix/sys/smtpd.cfg. I had inserted LISTEN=mydomain.com:25 under the SMTP Relay Configuration. Am I right on this?

Just to let you know, when I remove the line SMTPFILTER=TRUE from the smtpd.cfg, the mail will send and receive emails but they are not scanned by Spamassassin. What do you think that would be the problem?

Thanks

New2Scalix

Postby New2Scalix » Sat Aug 18, 2007 3:03 am

Hi dave,

I have started a clean installation of scalix and reconfigure it from new. I have noticed now that spamassassin is blocking my spam mail while I need it to only tag it. I have configured the local.cf as the following:

# SpamAssassin config file for version 3.x

# How many hits before a message is considered spam.
required_score 5.0

# Change the subject of suspected spam
rewrite_header subject *****SPAM*****

# Encapsulate spam in an attachment (0=no, 1=yes, 2=safe)
report_safe 1

# Enable the Bayes system
use_bayes 1

# Enable Bayes auto-learning
bayes_auto_learn 1

# Enable or disable network checks
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_languages all

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales all

Is this good?

I also tried to comment the line ExtraFlags in the /etc/sysconfig/spamass-milter. Can you please tell how this file should be?

Thanks very much


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 2 guests