Scalix 11.4 and Spamassasin

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

Moderator: ScalixSupport

georgew
Posts: 46
Joined: Thu Dec 29, 2005 12:36 pm

Scalix 11.4 and Spamassasin

Postby georgew » Sun Jun 01, 2008 12:31 pm

Has anyone got any details as to what we now need to do to tie Scalix into Spamassasin as the Upgrade to 11.4 appears to have busted inbound Spamassasin integration.

Thanks in advance.

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Mon Jun 02, 2008 10:01 am

As stated in the Release Notes, the smtpd.cfg file got overwritten, and the old one backed up to Osmtpd.cfg. You need to manually move the changes from the old file to the new one. SMTPFILTER is no longer needed, as you can set up SA directly in the relay now. There is an example milter configuration in the smtpd.cfg you can use. Just use the same values as in your sendmail.mc.

TheDude
Posts: 119
Joined: Sat Sep 17, 2005 9:53 pm
Location: Alabama, USA
Contact:

not working

Postby TheDude » Mon Jun 02, 2008 11:50 pm

I did what you said... spamassasin is checking outbound emails but, not inbound, was working fine on 11.3... Somebody please make a suggestion... Thanks...

The Dude

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Tue Jun 03, 2008 3:15 am

Please post your smtpd.cfg here, and point out where you made the changes, please?

TheDude
Posts: 119
Joined: Sat Sep 17, 2005 9:53 pm
Location: Alabama, USA
Contact:

Gave up

Postby TheDude » Tue Jun 03, 2008 5:21 am

Too late, I tried and tried and finally decided since SpamA worked while sending (just not when getting email) I simply needed to bypass Scalix smtp relay, here is a tutorial on how to do it: http://swifttide.com/blog/index.php?blo ... b=1#more36 (I am not the guy who wrote it, but it works, so thanks!)

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

Postby les » Tue Jun 03, 2008 10:29 am

Valerion wrote:As stated in the Release Notes, the smtpd.cfg file got overwritten, and the old one backed up to Osmtpd.cfg. You need to manually move the changes from the old file to the new one. SMTPFILTER is no longer needed, as you can set up SA directly in the relay now. There is an example milter configuration in the smtpd.cfg you can use. Just use the same values as in your sendmail.mc.


SMTPFILTER=TRUE still works fine in smtpd.cfg

TheDude,
Thats all you had to re-enter in your smtpd.cfg and you would have been filtering both ways.
Regards,

Les Stott

jakeFCT

Postby jakeFCT » Mon Jul 14, 2008 7:44 pm

I am having the same trouble (ie Spamassassin is only working for outgoing mail).

I have SMTPFILTER=TRUE set in smtpd.cfg, however this makes no difference. Does anyone have any thoughts what I can try next?

I have also explored using the INPUT_MAIL_FILTER inside of smtpd.cfg, but that gives an error

ERROR SMTP Relay (SMTPD Relay Pr) 07.15.08 09:21:24
[OM.DMON 2151] Unknown token 'INPUT_MAIL_FILTER(`spamassassin',`S' in config file.

TheDude
Posts: 119
Joined: Sat Sep 17, 2005 9:53 pm
Location: Alabama, USA
Contact:

one day someone will help

Postby TheDude » Mon Jul 14, 2008 7:51 pm

I wish I could tell you how to fix this... I pulled an all nighter, then switched to using sendmail for all indbound and outbound as my radical fix, just so I could bring up my server, now weeks later... still having to use sendmail.

Despite Les's rather smug statement, having SMTPFILTER=TRUE did not work for me at all.

Sorry your having the same problem.

PLEASE list a fix, if you do figure it out. Good luck.

Regards,

The Dude

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

Re: one day someone will help

Postby les » Mon Jul 14, 2008 9:49 pm

TheDude wrote:
Despite Les's rather smug statement, having SMTPFILTER=TRUE did not work for me at all.


Sorry, it was not meant to be smug......i don't think it was.

All i was stating was that if SMTPFILTER=TRUE was added back into the smtpd.cfg, which the release notes mentioned, then it would work as it did before.

Certainly for me thats all i've had to do on multiple sites. In effect nothing has changed for the way to get scalix to filter via sendmail using spamassassin/clamav.

The new milter setup in scalix is not yet ready as a replacement for filtering via sendmail. It is only, at the moment, to be used for the commercial Scalix AntiSpam and Scalix ZeroHour AntiVirus.

So the sendmail filter way of doing things.......


in /var/opt/scalix/??/s/sys/smtpd.cfg
SMTPFILTER=TRUE

Note it must appear above all RELAY lines.

then in /etc/mail/sendmail.mc

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

ofcourse your socket locations may be different, depending on which RPM's you use.

I get clamav from rpmforge (DAG) and i use spamass-milter from fedora repositories because it contains a wrapper script and sets up a user, sa-milt, which runs spamass-milter. The DAG rpms for spamass-milter do not do this.

ftp://ftp.univie.ac.at/systems/linux/fe ... 8.i386.rpm

after that...

make -C /etc/mail
service sendmail restart
omoff -d0 smtpd
omon smtpd

ofcourse you need to have clamd and spamassassin running etc etc.

If you need more help with this setup let me know.
Regards,

Les Stott

jakeFCT

Postby jakeFCT » Tue Jul 15, 2008 1:28 am

Thank you both gentlemen.

Sorry TheDude, I will have to agree with Les. It turned out to be a mistake on my behalf.

Instead of:

SMTPFILTER=TRUE

I had:

SMTPMILTER=TRUE

Correcting my mistake returned the server operation back to normal (ie incoming mail went through spamassassin).

One interesting point I found in the forums is that the 11.4 upgrade saves the old smtpd.cfg file as Osmtpd.cfg. It looks like you could replace the 11.4 smtpd.cfg file with the 11.3 smtpd.cfg, without any ill effects. (Please note that I have not tried this, this is only an observation)

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

Postby les » Tue Jul 15, 2008 1:38 am

jakeFCT wrote:
One interesting point I found in the forums is that the 11.4 upgrade saves the old smtpd.cfg file as Osmtpd.cfg. It looks like you could replace the 11.4 smtpd.cfg file with the 11.3 smtpd.cfg, without any ill effects. (Please note that I have not tried this, this is only an observation)


Glad to see you got it sorted ;)

p.s. the Osmtpd.cfg file change was noted in the release notes for 11.4, Valerion mentioned that earlier in this thread.

i wouldn't just copy the old one in place, i'd merge the settings across. Normally all i edit is SMTPFILTER and some RELAY lines, so its a quick cut and paste.

hope its all smooth sailing from here on in for you ;)
Regards,

Les Stott


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 1 guest