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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |