On 03/10/15 17:47, Remo Mattei wrote:
> Hello all
> 
> Not sure if anyone has any suggestions on how to have postfix dspam
> integration and also if anyone has implemented this on centos 7. I
> was looking at postfix admin as well any other suggestions will be
> great.  I am running some older version of Linux with qmail.

I'm doing dspam with postfix by configuring it to use dspam as a content
filter.
In /etc/postfix/master.cf:

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}


And /usr/bin/dspamfilter can be as little as:


#!/bin/bash
USER=$(echo $4 | cut -d@ -f1)
/usr/bin/dspam --deliver=innocent --stdout --user $USER |
/usr/lib/sendmail -i "$@"


This isn't the only way to do it.  But it's a simple way and it works
well.  You may need to fiddle a little with groups and permissions.


-- 
  Phil Stracchino
  Babylon Communications
  [email protected]
  [email protected]
  Landline: 603.293.8485

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to