Spamassassin/ SUSE 10/ Scalix 10.0.1

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

zoobarb

Spamassassin/ SUSE 10/ Scalix 10.0.1

Postby zoobarb » Mon Jun 05, 2006 4:37 pm

OK, I have tried to find this and I have gone through the one example or how-to for this setup. I did not do the setup for SUSE as I have seen multiple posts that state 2 IPs are no longer required.

Everyone posting for spamassassin seem to be using FC4. With SUSE 10.0 I do not have a specific milter package. So, upon completing the setup things look great except.

Jun 5 16:25:49 sanfrancisco sendmail[2634]: k55KPnZa002634: Milter (spamassassin): local socket name /var/run/spamass.sock unsafe
Jun 5 16:25:49 sanfrancisco sendmail[2634]: k55KPnZa002634: Milter (spamassassin): to error state
Jun 5 16:25:51 sanfrancisco sendmail[2634]: k55KPnZa002634: from=<root@sanfrancisco.barbersweb.net>, size=958, class=0, nrcpts=1, msgid=<4484934D.mail20O147WUE@sanfrancisco.barbersweb.net>, proto=ESMTP, daemon=Daemon0, relay=localhost.localdomain [127.0.0.1]
Jun 5 16:25:51 sanfrancisco sendmail[2618]: k55KPngZ002618: to=root, ctladdr=root (0/0), delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=30737, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k55KPnZa002634 Message accepted for delivery)
Jun 5 16:25:52 sanfrancisco sendmail[2661]: k55KPnZa002634: to=<root@sanfrancisco.barbersweb.net>, ctladdr=<root@sanfrancisco.barbersweb.net> (0/0), delay=00:00:01, xdelay=00:00:00, mailer=local, pri=31223, dsn=2.0.0, stat=Sent

This is just a quick snip.... there is no sock file...none what-so-ever.. When I add it to the /etc/sysconfig/spamd file ... there are no more complaints by the system but all mail gets "stuck" ... I see the first line where the remote server connects and then nothing.. the mail is never (I say never, I only gave it about 60 seconds) delivered until I stop spamd....

Any direction or insight is greatly appreciated.

Thanks,
Mike

zoobarb

Postby zoobarb » Tue Jun 06, 2006 11:03 am

The commented line is what I tried with spamd startup in /etc/sysconfig/spamd - no luck
#SPAMD_ARGS="-d -c -L --socketpath=/var/run/spamass.sock"
SPAMD_ARGS="-d -c -L"

I did this...except I used nano...
Make a copy of the current configuration file.
# cp /var/opt/scalix/sys/smtpd.cfg /var/opt/scalix/sys/smtpd.cfg.orig
Open the configuration file with your favorite text editor, in the example we use vi.
# vi /var/opt/scalix/sys/smtpd.cfg
Add this line: SMTPFILTER=TRUE

Then as per the how-to
Backup the sendmail.cf #cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.orig
Edit /etc/mail/sendmail.cf and make the following changes:
Change OperatorChars from: O OperatorChars=.:%@!^/[]+=
To O OperatorChars=.:%@!^/[]+
Uncomment the line: #O InputMailFilters
and change it to: O InputMailFilters=Spamassassin
Immediately below that line, add the following (the font size is smaller to preserve formatting): # Milter options #O Milter.LogLevel O Milter.macros.connect=b, j, _, {daemon_name}, {if_name}, {if_addr} O Milter.macros.helo={tls_version}, {cipher}, {cipher_bits}, {cert_subject}, {cert_issuer} O Milter.macros.envfrom=i, {auth_type}, {auth_authen}, {auth_ssf}, {auth_author}, {mail_mailer}, {mail_host}, {mail_addr} O Milter.macros.envrcpt={rcpt_mailer}, {rcpt_host}, {rcpt_addr}
In the section MAIL FILTER DEFINITIONS, add the following line:
Xspamassassin, S=local:/var/run/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m

Two differences for my setup.. my sendmail.cf is in /etc/ and not in /etc/mail
and when spamd is launched there is NO spamass.sock file created... as per my note above I attempted to pass the parameter about where to create the sock file but it does not work.

The rest of the how-to simply directs someone to ensure the service is set to launch on boot.... spamass-milter is listed, which SUSE 10.0 does not have.

What else should I include here or read?

Many thanks,
Mike

interways1
Posts: 13
Joined: Wed May 24, 2006 11:02 am

Postby interways1 » Tue Jun 06, 2006 12:07 pm

You have to install spamass-milter. See this thread: http://www.scalix.com/community/viewtopic.php?t=2494&highlight=spamassmilter

zoobarb

Stupid Question

Postby zoobarb » Tue Jun 06, 2006 12:29 pm

checking whether strsep is declared... yes
checking whether daemon is declared... yes
checking for mi_stop in -lmilter... no
checking for library containing strlcpy... no
checking for mi_stop in -lmilter... no
configure: error: Cannot find libmilter
sanfrancisco:/tmp/spamass-milter-0.3.1 #


I tried to look for this when installing software via yast...no luck. I hit the milter website and saw nothing about dependancies.... in the support section someone else had the same issue..


Aw shucks... it is part of the sendmail sources .... need to go get those and try again...sorry.

zoobarb

YEAH!

Postby zoobarb » Tue Jun 06, 2006 1:36 pm

Ok, that was a simple fix....

it appears to need to tweaking and a proper script for launching, but it does appear to be working....

Jun 6 13:28:36 sanfrancisco sendmail[21148]: k56HSUXT021148: from=<grbounce-UXP3QQUAAAAzzDVgaMHFZTb1ziyVDVii=mbarber=barbersweb.net@googlegroups.com>, size=6958, class=-60, nrcpts=1, msgid=<1149614709.837075.287420@c74g2000cwc.googlegroups.com>, proto=ESMTP, relay=root@localhost
Jun 6 13:28:38 sanfrancisco sendmail[21150]: k56HSad0021150: from=<grbounce-UXP3QQUAAAAzzDVgaMHFZTb1ziyVDVii=mbarber=barbersweb.net@googlegroups.com>, size=7164, class=-60, nrcpts=1, msgid=<1149614709.837075.287420@c74g2000cwc.googlegroups.com>, proto=ESMTP, daemon=Daemon0, relay=localhost.localdomain [127.0.0.1]
Jun 6 13:28:38 sanfrancisco spamd[21143]: connection from localhost.localdomain [127.0.0.1] at port 24006
Jun 6 13:28:38 sanfrancisco spamd[21143]: info: setuid to root succeeded
Jun 6 13:28:38 sanfrancisco spamd[21143]: Creating default_prefs [/root/.spamassassin/user_prefs]
Jun 6 13:28:38 sanfrancisco spamd[21143]: Created user preferences file: /root/.spamassassin/user_prefs
Jun 6 13:28:38 sanfrancisco spamd[21143]: Still running as root: user not specified with -u, not found, or set to root. Fall back to nobody.
Jun 6 13:28:38 sanfrancisco spamd[21143]: processing message <1149614709.837075.287420@c74g2000cwc.googlegroups.com> for root:65534.
Jun 6 13:28:38 sanfrancisco spamd[21143]: clean message (0.0/5.0) for root:65534 in 0.5 seconds, 7796 bytes.
Jun 6 13:28:38 sanfrancisco spamd[21143]: result: . 0 - scantime=0.5,size=7796,mid=<1149614709.837075.287420@c74g2000cwc.googlegroups.com>,autolearn=failed
Jun 6 13:28:38 sanfrancisco sendmail[21150]: k56HSad0021150: Milter add: header: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed \n\tversion=3.0.4
Jun 6 13:28:38 sanfrancisco sendmail[21150]: k56HSad0021150: Milter add: header: X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on \n\tsanfrancisco.barbersweb.net
Jun 6 13:28:38 sanfrancisco sendmail[21148]: k56HSUXT021148: to=<mbarber@barbersweb.net>, delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=144958, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k56HSad0021150 Message accepted for delivery)
Jun 6 13:28:47 sanfrancisco sendmail[21160]: k56HSad0021150: to=<mbarber@barbersweb.net>, delay=00:00:09, xdelay=00:00:08, mailer=scalix, pri=235164, relay=sanfrancisco, dsn=2.0.0, stat=Sent (Ok)

Thanks for the help! ... should this be updated in the docs - the non-SUSE how-to doesn't mention building spamass-milter and the SUSE specific one mentions it can be downloaded from scalix but I was unable to find it there.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 0 guests