Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setting up Spamassassin system-wide Sendmail e-mail server?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Bosnian[X]
n00b
n00b


Joined: 12 Jul 2002
Posts: 66
Location: Sweden, Malmö

PostPosted: Tue Oct 28, 2003 10:48 am    Post subject: Setting up Spamassassin system-wide Sendmail e-mail server? Reply with quote

Hello,

Im admin for a server at work that runs email server with following software.

Sendmail, Procmail and Qpopper.

All my pop3 accounts are in /var/spool/mail and now my boss wants me to install some kind of spamfilter. Spamassassin was choice nr.1 because i heard just positive stuff about it.

Now to tricky part, i have never installed it before :oops: and have a no clue how to doit.

I want spamassassin to work system-wide for all users. I have installed spamassassin and that's the only thing i did.

How do i proceed now with settin it up spamassassin it works wit PROCMAIL and Sendmail.


I have searched forum but i could't find any help how to setup spamassassin for /var/spool/mail folder with Sendmail and procmail..

Im counting on u.

//damir
Back to top
View user's profile Send private message
Toke
n00b
n00b


Joined: 21 Jun 2003
Posts: 15
Location: Denver, CO

PostPosted: Tue Oct 28, 2003 12:19 pm    Post subject: Reply with quote

I'm not familliar with procmail, I'm using qmail on my server. But here's a link that may help:
http://www.geekly.com/entries/archives/00000155.htm
It doesn't look too difficult.

when you get it running, you may want to take a look at some of these custom rules:
http://www.merchantsoverseas.com/wwwroot/gorilla/sa_rules.htm
I'm definatly catching a lot more spam using these rules as well. You can just copy them to /etc/mail/spamassassin, if you used the default install configuration.
-John
Back to top
View user's profile Send private message
Bosnian[X]
n00b
n00b


Joined: 12 Jul 2002
Posts: 66
Location: Sweden, Malmö

PostPosted: Tue Oct 28, 2003 4:41 pm    Post subject: Reply with quote

Toke: Thanx for a reply but that's not what i need.

I want to install Spamassassin system-wide wich means i don't want the per user settings.

All my accounts are in /var/spool/mail

What do i put in spamassassin conf and /etc/procmailrc file so that spamassassin scans all emails in /var/spool/mail and send spam mail into special folder or just mark the subject line with "SPAM" so that account owner can easily setup their client to filter those spammails.



//damir
Back to top
View user's profile Send private message
Toke
n00b
n00b


Joined: 21 Jun 2003
Posts: 15
Location: Denver, CO

PostPosted: Wed Oct 29, 2003 12:42 pm    Post subject: Reply with quote

To have spamassassin alter the Subject line add this to local.cf
Code:
Rewrite_subject 1

The default is ******SPAM*******
but can be changed with
Code:
subject_tag STRING

There's a lot you can change/configure in that file. Check out http://au.spamassassin.org/doc/Mail_SpamAssassin_Conf.html for a complete list.

I'm not familliar with procmail, but in qmail, I did need to make changes to each mailbox. Since the box has about fifty domains, I wrote a cron script to check for new mailboxes and make the alterations, if needed. Sorry I can't be of more help with that part.
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Wed Oct 29, 2003 1:00 pm    Post subject: Not trying to hi-jack Reply with quote

Toke wrote:
To have spamassassin alter the Subject line add this to local.cf
Code:
Rewrite_subject 1

The default is ******SPAM*******
but can be changed with
Code:
subject_tag STRING

There's a lot you can change/configure in that file. Check out http://au.spamassassin.org/doc/Mail_SpamAssassin_Conf.html for a complete list.

I'm not familliar with procmail, but in qmail, I did need to make changes to each mailbox. Since the box has about fifty domains, I wrote a cron script to check for new mailboxes and make the alterations, if needed. Sorry I can't be of more help with that part.

not trying to hijack here but look at this thread https://forums.gentoo.org/viewtopic.php?t=100671 am trying to get similar results as this member .. anyone offer any suggestions?
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Thu Oct 30, 2003 1:17 pm    Post subject: Reply with quote

if you use sendmail, have a closer look to sendmail's milter interface, its *very* good. I think you can compile spamd/spamc the way that it will use sendmail's milter, if not, have a look at amavis(-ng/new, any of the newer ones), they can talk to milter. (and SA is "just" an perl script, thats easily embeddable by amavis*)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum