Thanks :)
Adam King IT Systems Administrator Skipton Girls High School 01756 707600 www.sghs.org.uk
----- Original Message ----- From: "Reindl Harald" h.reindl@thelounge.net To: "CentOS mailing list" centos@centos.org, kinga@sghs.org.uk Sent: Monday, 11 August, 2014 5:55:22 PM Subject: Re: [CentOS] Use postfix and spamd on CentOS 6 - looking for a shortest guide
Am 11.08.2014 um 18:43 schrieb Adam King:
Can you explain why you'd use milter over spamassassin? Genuinely interested as we could certainly get better spam filtering...
just becaus eit is the only way where you can *block and reject* spam instead still deliver it with a special subject
http://www.postfix.org/MILTER_README.html
without a milter your only choices are:
* deliver crap * get a backscatter and get blacklisted * drop messages while pretend you accepted them and go to jail
"-r 6" = reject with a score of 6 and bigger spamass-milter -p /run/spamass-milter/spamass-milter.sock -g sa-milt -r 6
----- Original Message ----- From: "Alexander Dalloz" ad+lists@uni-x.org To: "CentOS mailing list" centos@centos.org Sent: Monday, 11 August, 2014 5:01:16 PM Subject: Re: [CentOS] Use postfix and spamd on CentOS 6 - looking for a shortest guide
Am 2014-08-11 13:38, schrieb Alexander Farber:
Hello fellow CentOS-users,
on the net there are lots of Spamassassin related HOWTOs - describing how to create a shell script for Postfix and how to install Spamassassin and start its spamd daemon - step by step. Additionally antivirus setups are described...
But I have a strong feeling, that this is unneeded on CentOS 6 - because there are already preconfigured stock packages for postfix and spamassassin.
So I have installed the both packages and I have configured postfix (it works fine).
Also I have started the spamd (and can see it in "ps uawx") with:
# chkconfig spamassassin on # service spamassassin start
So I'm just missing the connection between postfix and spamd.
Could anybody using these 2 programs on CentOS 6 please share it with me?
[ ... ]
Do yourself a favour and use a milter instead of piping each single mail through spamassassin.
http://pkgs.org/centos-6/epel-x86_64/spamass-milter-0.3.2-3.el6.x86_64.rpm.h...
Then add something like
smtpd_milters = unix:/var/run/spamass-milter/postfix/sock inet:127.0.0.1:8891 non_smtpd_milters = $smtpd_milters milter_default_action = accept
to your Postfix' main.cf and configure the milter flags in /etc/sysconfig/spamass-milter
On Tue, Aug 12, 2014 at 3:27 AM, Adam King kinga@sghs.org.uk wrote:
Thanks :)
Am 11.08.2014 um 18:43 schrieb Adam King:
Can you explain why you'd use milter over spamassassin? Genuinely
interested as we could certainly get better spam filtering...
just becaus eit is the only way where you can *block and reject* spam instead still deliver it with a special subject
http://www.postfix.org/MILTER_README.html
without a milter your only choices are:
- deliver crap
- get a backscatter and get blacklisted
- drop messages while pretend you accepted them and go to jail
"-r 6" = reject with a score of 6 and bigger spamass-milter -p /run/spamass-milter/spamass-milter.sock -g sa-milt -r 6
Another alternative to milters is the postfix policy daemons. The best one to use for block and reject is policyd-weight. found here http://www.policyd-weight.org/
This gives spam a weight based on a number of factors. I setup to do this score <0 accept immediately score <10 greylist then verify sender, then spf, then spamassassin if not spf pass. score >10 reject immediately
dave
Am 12.08.2014 um 00:09 schrieb David Beveridge:
Another alternative to milters is the postfix policy daemons. The best one to use for block and reject is policyd-weight. found here http://www.policyd-weight.org/
This gives spam a weight based on a number of factors. I setup to do this score <0 accept immediately score <10 greylist then verify sender, then spf, then spamassassin if not spf pass. score >10 reject immediately
dave
You should have mentioned that policyd-weight has nothing to do with integrating spamassassin into Postfix. The scores you speak about are not spam scoring points coming from spamassassin.
Alexander
Hello again,
here is my solution on how to use Postfix + Spamassassin on CentOS in 4 steps:
1) yum install spamassassin
2) useradd spam
3) Add the following line to /etc/postfix/header_checks:
/^Subject: [SPAM]/ DISCARD
4) Add the following lines to /etc/postfix/master.cf:
smtp inet n - n - - smtpd -o content_filter=spamassassin spamassassin unix - n n - - pipe user=spam argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
More details:
http://serverfault.com/questions/619537/use-postfix-and-spamassassin-package...
Regards Alex