atom feed9 messages in net.sourceforge.lists.courier-usersRe: [courier-users] greylisting
FromSent OnAttachments
Ricardo KleemannOct 25, 2008 9:22 pm 
Tim LythOct 26, 2008 4:27 am 
Gordon MessmerOct 26, 2008 11:34 am 
Frederik DannemareOct 29, 2008 3:40 am 
Gordon MessmerOct 29, 2008 8:39 am 
Frederik DannemareOct 30, 2008 7:11 am 
Gordon MessmerOct 30, 2008 8:34 am 
Frederik DannemareOct 30, 2008 9:15 am 
Frederik DannemareOct 31, 2008 7:51 am 
Subject:Re: [courier-users] greylisting
From:Frederik Dannemare (fred@dannemare.net)
Date:Oct 29, 2008 3:40:27 am
List:net.sourceforge.lists.courier-users

On Sunday 26 October 2008 13:23, Tim Lyth wrote:

I'm pretty sure that there's a .deb version of pythonfilter available somewhere - I run Debian, but I can't remember how I installed pythonfilter on my server.

I made these short notes when I installed it (a year ago, or so):

# Download and extract courier-pythonfilter # su - frederik wget
http://phantom.dragonsdawn.net/~gordon/courier-pythonfilter/courier-pythonfilter-0.23.tar.gz tar zxf courier-pythonfilter-0.23.tar.gz logout

# Run the setup step as root. # This will place files in /usr/lib/python2.4/site-packages/courier # and /usr/lib/python2.4/site-packages/pythonfilter. Also, a config file, # pythonfilter.conf, is placed in /etc, and pythonfilter itself is placed # in /usr/bin. # python setup.py install

# Create custom config file. # cp /etc/pythonfilter.conf /etc/pythonfilter.conf.orig cat <<EOF >/etc/pythonfilter.conf noduplicates auto_whitelist whitelist_relayclients whitelist_auth whitelist_block greylist EOF

# Do not greylist certain "good" but bad-behaving servers. # whitelist_block must be active for this to be honoured. # wget -O -
'http://cvs.puremagic.com/viewcvs/*checkout*/greylisting/schema/whitelist_ip.txt?rev=1.16'
\ | grep '^[[:digit:]]' | sed -e 's/[[:blank:]].*\|$/\tallow,BLOCK/' \ > /etc/courier/smtpaccess/nogreylisting makesmtpaccess

# A few extra manual steps are also required. # mkdir -p /var/state/pythonfilter chown daemon:daemon /var/state/pythonfilter ln -s /usr/bin/pythonfilter /usr/lib/courier/filters/ filterctl start pythonfilter