spamassassin doesn't seem to want to scan any emails

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

Moderator: ScalixSupport

TGuY
Posts: 22
Joined: Tue Jan 23, 2007 12:25 pm

spamassassin doesn't seem to want to scan any emails

Postby TGuY » Tue Sep 25, 2007 11:21 pm

I did search first, didn't see anything that would help though, unfortunately.

I followed this wiki to get everything setup. I didn't run into any issues.

I am running Debian 4.0 Etch with Scalix 11.1.0

speed:~# dpkg -l | grep spam
ii spamass-milter 0.3.1-2 milter for filtering mail through spamassass
ii spamassassin 3.1.7-2 Perl-based spam filter using text analysis
ii spamc 3.1.7-2 Client for SpamAssassin spam filtering daemo
speed:~# dpkg -l | grep scalix
ii scalix-mobile 11.1.0.45 Scalix Mobile Web Client
ii scalix-platform 11.1.0.50 Scalix Messaging Services
ii scalix-postgres 11.1.0.45 Scalix scripts for PostgreSQL
ii scalix-res 11.1.0.45 A Remote Execution Service for Scalix Messag
ii scalix-sac 11.1.0.45 The Ubermanager component of the Scalix Admi
ii scalix-server 11.1.0.10849 Scalix-server is an enterprise class messagi
ii scalix-sis 11.1.0.45 Scalix Search and Index Services
ii scalix-swa 11.1.0.51 Scalix Web Access
ii scalix-tomcat 5.5.23-292 Apache Tomcat is the servlet container that
ii scalix-tomcat-connector 11.1.0.45 Module for connecting Tomcat and Apache via
speed:~# dpkg -l | grep sendmail
ii sendmail 8.13.8-3 powerful, efficient, and scalable Mail Trans
ii sendmail-base 8.13.8-3 powerful, efficient, and scalable Mail Trans
ii sendmail-bin 8.13.8-3 powerful, efficient, and scalable Mail Trans
ii sendmail-cf 8.13.8-3 powerful, efficient, and scalable Mail Trans

I added the SMTPFILTER line to /var/opt/scalix/sd/s/sys/smtpd.cfg

# NB Authenticated RELAYs are always allowed
SMTPFILTER=TRUE
RELAY accept 127.0.0.1

I added this line to /etc/mail/sendmail.mc

INPUT_MAIL_FILTER(`spamassassin',`S=local:/var/run/sendmail/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m')d

***** NOTE THE .sock file is actually in /var/run/sendmail not /var/run for me

I edited /etc/default/spamassassin and changed ENABLED=0 to ENABLED=1

I check /var/log/mail.log and I see this

Sep 25 19:48:06 speed spamd[31918]: spamd: server started on port 783/tcp (running version 3.1.7-deb)
Sep 25 19:48:06 speed spamd[31918]: spamd: server pid: 31918
Sep 25 19:48:06 speed spamd[31918]: spamd: server successfully spawned child process, pid 31919
Sep 25 19:48:06 speed spamd[31918]: spamd: server successfully spawned child process, pid 31920
Sep 25 19:48:06 speed spamd[31918]: prefork: child states: II
Sep 25 19:48:19 speed spamass-milter[31946]: spamass-milter 0.3.1 starting

but all my mail looks like this

Sep 25 19:49:39 speed sendmail[32154]: l8Q0nda5032154: from=<drew@externaldomain.com>, size=1419, class=0, nrcpts=1, msgid=<6C96DDE1D4BA7740A2B9437BB7ABBF39062D81@ADMPCG223M.Na.Corp.externaldomain.com>, proto=ESMTP, relay=root@localhost
Sep 25 19:49:39 speed sm-mta[32155]: l8Q0ndJS032155: from=<drew@externaldomain.com>, size=1594, class=0, nrcpts=1, msgid=<6C96DDE1D4BA7740A2B9437BB7ABBF39062D81@ADMPCG223M.Na.Corp.externaldomain.com>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1]
Sep 25 19:49:39 speed sendmail[32154]: l8Q0nda5032154: to=<drew@domain.com>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31419, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l8Q0ndJS032155 Message accepted for delivery)
Sep 25 19:49:39 speed sm-mta[32162]: l8Q0ndJS032155: to=<drew@domain.com>, delay=00:00:00, xdelay=00:00:00, mailer=scalix_mime, pri=121594, relay=speed, dsn=2.0.0, stat=Sent (Ok)
Sep 25 19:54:38 speed sendmail[32652]: l8Q0saPr032652: to=<drew@domain.com>, delay=00:00:02, xdelay=00:00:01, mailer=relay, pri=30647, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l8Q0sbti032655 Message accepted for delivery)

nothing filtered through spamd like the wiki shows.

I did restart all four components:

speed:/etc/spamassassin# /etc/init.d/spamassassin restart
Restarting SpamAssassin Mail Filter Daemon: spamd.
speed:/etc/spamassassin# /etc/init.d/spamass-milter restart
Restarting Sendmail milter plugin for SpamAssassin: /usr/sbin/spamass-milter
speed:/etc/spamassassin# /etc/init.d/sendmail restart
Restarting Transport Agent: sendmail.
speed:/etc/spamassassin# omoff -w -d 0 smtpd
Disabling 1 subsystem(s).
SMTP Relay Stopped
speed:/etc/spamassassin# omon smtpd
Enabling 1 subsystem(s).

TGuY
Posts: 22
Joined: Tue Jan 23, 2007 12:25 pm

Postby TGuY » Thu Sep 27, 2007 11:32 pm

I found this thread:

viewtopic.php?t=6862&highlight=inputmailfilter

I had the same issue, where milter was starting with -i flag and igoring all local mail

this can be found in /etc/default/spamass-milter
Last edited by TGuY on Thu Sep 27, 2007 11:55 pm, edited 2 times in total.

ravelox

Postby ravelox » Thu Sep 27, 2007 11:52 pm

Did you run "make" after you edited sendmail.mc ?

Cheers

Dave

skiddoo

Postby skiddoo » Tue Nov 27, 2007 4:09 am

Hi

I Had exactly the same problem with spamassassin and scalix.

The "-i" in /etc/default/spamass-milter, as TGuY mentioned, did the trick! Thanks!

Just edit /etc/spamass-milter and remove the "-i 127.0.0.1"
OPTIONS="-u nobody -i 127.0.0.1"
becomes
OPTIONS="-u nobody"


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 4 guests

cron