Re: [dspam-users] Quaruntine Delivery

From: Doug Miller <dnm@prentrom.com>
Date: Fri Oct 21 2005 - 10:07:25 EDT

On Thu, 20 Oct 2005 16:55:20 -0600, you wrote:

>Working on the final steps of setting up dspam on Gentoo now, and I'm
>trying to figure out how to configure delivery from quaruntine.
>
>I really don't want to try and use procmail for the delivery, because of
>the complexity of setting it up for virtual domains. (At least, in my
>experience.)
>
>What I'd like to do is run 'qmail-inject' to simple re-inject the
>message back into the local queue after dspam has re-trained it. Could I
>do something like this?
>
>$CONFIG{'DSPAM_ARGS'}="--deliver=innocent --class=innocent ".
> "--source=error --user %CURRENT_USER% --stdout".
> " | qmail-inject";
>
>Will this work?

I think if you do it this way, DSPAM will end up seeing the message
again. I don't think this is a problem but you might want to test that
to make sure.

I ended up rewriting the cgi where it opens a pipe to DSPAM. Instead of
piping to the dspam binary, it sends mail to a non-spam alias where it
gets processed by DSPAM and then is sent to the configured delivery
agent. This ended-up eliminating a lot of permissions issues for my
installation.

e.g. in ProcessFalsePositive:

# open(PIPE, "|$CONFIG{'DSPAM'} $CONFIG{'DSPAM_ARGS'} >$TMPFILE 2>&1") || &error($!);
      open(PIPE, "|/var/qmail/bin/qmail-inject $ENV{'REMOTE_USER'}-ham") || &error($!);

and in Deliver:

# open(PIPE, "|$CONFIG{'DSPAM'} $CONFIG{'DSPAM_ARGS'}") || return $!;
  open(PIPE, "|/var/qmail/bin/qmail-inject $ENV{'REMOTE_USER'}-ham") || return $!;

.qmail-ham then contains:

| /usr/local/bin/dspam --user $USER --deliver=innocent --class=innocent --source=error

Your virtual domains configuration will most likely require some
tweaking to get the above to work.

Doug

-- 
 Doug Miller <dnm@prentrom.com>
 Software Engineer
 Prentke Romich Company
 http://www.prentke-romich.com
Received on Fri Oct 21 10:08:53 2005

This archive was generated by hypermail 2.1.8 : Sat Oct 22 2005 - 00:00:00 EDT