-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 11/12/13 04:25, Tom Hendrikx wrote:
> Hi
> 
> Just a small note that filing a bug in gentoo bugzilla will just
> come back here, since I wrote the gentoo ebuild, with some help
> from Stevan. It might be interesting if some gentoo mysql folks
> should jump in.
> 
> I'm not really good with the automake/m4 stuff though, so I
> already tried to put the voodoo I have. Maybe somebody else has
> some more ideas?
> 
> Are other distros providing a working mysql 5.5 + dspam 3.10?


I note for the record that I have dev-db/mysql-5.5.33 and
mail-filter/dspam-3.10.2-r1 working fine together with
mail-mta/postfix-2.10.2.  It did take some tweaking of file
permissions on dspam, but I don't at this point remember what specific
changes I had to make.  I use dspam in re-injection mode via a filter:


smtp      inet  n       -       n       -       -       smtpd
        -o content_filter=dspam:

dspam           unix    -       n       n       -       -       pipe
        flags=Rhq user=dspam argv=/usr/bin/dspamfilter -f ${sender} --
${recipient}



#!/bin/bash
USER=`echo $4 | cut -d@ -f1`
HOST=`echo $4 | cut -d@ -f2`

if [ -f /etc/dspam/nodspam ] ; then
{
    # Passthrough because Dspam deactivated
    echo "Passthrough at `date`: dspam turned off" >>
/var/log/dspamfilter.log
    /usr/lib/sendmail -i "$@"
}
elif [ -n "`echo $4 | grep
'\(nejob\|-\(bounces\|request\|admin\)\?\)\@caerllewys.net'`" ] ; then
{
    # pass MailMan traffic through
    echo "Passthrough at `date`: Mailman traffic for $4" >>
/var/log/dspamfilter.log
    /usr/lib/sendmail -i "$@"
}
elif [ -n "`echo $HOST | grep caerllewys.net`" ] ; then
{
    # Process all other external mail through dspam
    echo "Mail for $4 processed by dspam at `date`" >>
/var/log/dspamfilter.log
    id >> /var/log/dspamfilter.log
    /usr/bin/dspam --deliver=innocent --stdout --user $USER |
/usr/lib/sendmail -i "$@"
}
else
{
    # Passthrough local mail
    echo "Passthrough at `date`: local delivery" >>
/var/log/dspamfilter.log
    id >> /var/log/dspamfilter.log
    /usr/lib/sendmail -i "$@"
    USER=$4
}
fi;

exit $?



- -- 
  Phil Stracchino
  Babylon Communications
  ph...@caerllewys.net
  p...@co.ordinate.org
  Landline: 603.293.8485
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlKCWC4ACgkQ0DfOju+hMkn4sQCgxO0nNQX8V6LToZUpF8OSSXJh
otoAoIVwXCrqcudcHJh4v5/vp52iZtYH
=0oaJ
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to