LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   slackware: sendmail, clamAV, MIMEDefang, spamassassin (http://www.linuxquestions.org/questions/linux-newbie-8/slackware-sendmail-clamav-mimedefang-spamassassin-422902/)

aubrey-calm2 03-08-2006 02:52 PM

slackware: sendmail, clamAV, MIMEDefang, spamassassin
 
I'm using slackware 10.2 (2.4.31 kernel)
sendmail (the default version that comes pre-installed on slackware 10.2)
clamAV-0.88
spamassassin-3.1.0
MIMEDefang-2.56

My problem is that when I add the line to /usr/share/sendmail/cf/cf/sendmail-slackware-tls-sasl.mc file:

INPUT_MAIL_FILTER(`mimedefang',`S=unix:/var/spool/MIMEDefang/mimedefang.sock,F=T,T=S:5s;R:5s;E:5m')dnl

I cannot get mail. It gets to the server, and is sitting somewhere. If I remove that line, and rebuild the sendmail .cf file, then the mail will get delivered. I really don't know anything about this stuff. Any help will be greatly appreciated.

-Aubrey

JimBass 03-08-2006 07:24 PM

If this is your first *nix mail server, I suggest you follow the install instructions at http://qmailrocks.org.

The install makes qmail the core of the mail server, and adds spamassassin and clamAV. It doesn't have Mimedefang, but if you look at the qmailrocks forums, or the qmail wiki you will find how to add modules to the installs.

They do have instructions for slack on the site, linked right off the main page.

Peace,
JimBass

aubrey-calm2 03-09-2006 10:10 AM

Thanks for the link. Since I have already gone through the process of learning sendmail, and have everything configured for my many users (aliases, forwarding, holiday... etc) I will stay with sendmail.

Really, the only reason I'm trying to get mimedefang working, is to use spamassassin. Everything except spamassassin is working correctly. I have clamAV working with the sendmail MILTER. This is done when clamd is started, it opens a socket to for use with the sendmail MILTER. Is there a way to do the same thing with spamassassin, or do you have to use mimedefang?

Or is there another program that will filter spam out?

JimBass 03-09-2006 07:29 PM

I have spamassassin working on several servers, and I never installed mimedefang. I don't see it listed as a dependency for spamassassin, and running the makefile.pl that comes with spamassassin doesn't look for or ask about mimedefang.

If you could please post the output that claims you need mimedefang for spamassassin, I can help you more, but I'm hitting a wall as I don't see it as a dependency. It does sound like it would be a useful tool against spam, but spamassassin (I think) has another way to do a similiar thing.

Peace,
JimBass

aubrey-calm2 03-10-2006 12:44 AM

I don't really have any documentation on it. A friend of mine uses it, and said that it's easier. If I don't need to use it, then I don't want to. It is giving me a head-ache really.

How do you make spamassassin work with sendmail? Is it through the MILTER? What socket do you use? Where is the config file that decides all of this? You are probably the man I have been looking for, for the past 3 weeks. If you have this working please do let me know how to config it along with the sendmail.mc file.

As of now, I have clamAV working using the MILTER. In order to start it, I use the following...
/usr/local/sbin/clamav-milter -l -o -q /var/milter/clmilter.sock

And my sendmail.mc file has the following...
MAIL_FILTER(`clmilter',`S=local:/var/milter/clmilter.sock, F=, T=S:4m;R:4m')dnl

I guess what I'm trying to find out is, how do the two (spamassassin & sendmail)work together?

Thank-you for your help,
Aubrey


All times are GMT -5. The time now is 02:23 AM.