Bluehost.com Web Hosting $6.95

off spamassassin

This is a discussion on off spamassassin within the mailing.postfix.users forums, part of the Mail Servers and Related category; Hi folks, I have a server 2.0.16 running on BSD system. There are 100 users and some of ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-15-2004
Eicke
 
Posts: n/a
Default off spamassassin

Hi folks,

I have a server 2.0.16 running on BSD system.
There are 100 users and some of them are receiving spam.
I decided to install spamassassin.
I folowed the steps below:

1.perl -MCPAN -e 'install Mail::SpamAssassin'"

2. As root, create a file at /usr/local/bin/spamfilter.sh with the following
content:
#!/bin/bash
/usr/local/bin/spamc | /usr/sbin/sendmail -i "$@"
exit $?

3. Run "chmod 755 /usr/local/bin/spamfilter"

4. Create a user called 'spamfilter'. Make it a complete user, with home
directory and shell.

5. Run "chown spamfilter /usr/local/bin/spamfilter"

6. In /etc/postfix/master.cf in the "Services" section, alter the 'smtp'
line as follows (the " -o con..." SHOULD be on the next line: NOTE: there
are two lines that have smtp. Make sure it is the inet line. Usually the
first line.
# --------------------------------------------------------------------------
---------
smtp inet n - n - - smtpd
-o content_filter=spamfilter:
# --------------------------------------------------------------------------
---------

7. In /etc/postfix/master.cf in the "Interfaces to non-Postfix software"
section add:
# --------------------------------------------------------------------------
---------
spamfilter unix - n n - - pipe
flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter.sh -f ${sender} --
${recipient}
# --------------------------------------------------------------------------
---------

Re-started Postfix and run:

/usr/local/bin/spamd -a -c -d

I verified the log and see somethings like that:


Jun 15 14:01:26 b spamd[25938]: connection from localhost [127.0.0.1] at
port 3076
Jun 15 14:01:26 b spamd[25938]: connection from localhost [127.0.0.1] at
port 3076
Jun 15 14:01:26 b spamd[28857]: info: setuid to spamfilter succeeded
Jun 15 14:01:26 b spamd[28857]: info: setuid to spamfilter succeeded
Jun 15 14:01:26 b spamd[28857]: processing message
<20040615170125.F350740E56@ns> for spamfilter:30.
Jun 15 14:01:26 b spamd[28857]: processing message
<20040615170125.F350740E56@ns> for spamfilter:30.
Jun 15 14:01:26 b spamd[28857]: clean message (0.0/5.0) for spamfilter:30 in
0.1 seconds, 4389 bytes.
Jun 15 14:01:26 b spamd[28857]: clean message (0.0/5.0) for spamfilter:30 in
0.1 seconds, 4389 bytes.
Jun 15 14:01:26 bh postfix/pipe[28620]: F350740E56: to=<bcc@>,
relay=spamfilter, delay=1, status=sent (ns)
Jun 15 14:01:26 bh postfix/pipe[28620]: F350740E56: to=<bcc@>,
relay=spamfilter, delay=1, status=sent (ns)

But the users continue receiving spam, Could you help me?
Thanks and regards.
Eicke.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:42 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0