On Wed, 28 Jul 2010 23:29:22 +0200
"Edward P. Ross" <epr...@acrocat.com> wrote:

>  OK - I made the changes to dspam.conf and that broke things in a bad way.
> All mail started to bounce, and am assuming a perms issue somewhere:
> 
>     ----- The following addresses had permanent fatal errors -----
>     <epr...@acrocatlabs.com>
>     (reason: 554 5.4.6 Too many hops)
> 
> So I reverted dspam.conf back to:
> 
>     TrustedDeliveryAgent "/usr/local/bin/procmail.dspam"
>     UntrustedDeliveryAgent "/usr/local/bin/procmail.dspam -d %u"
> 
> 
> However, I left the following in sendmail.mc -- and that seems to be working.
>    define('LOCAL_MAILER_PATH', `/usr/bin/dspam')dnl
>    define('LOCAL_MAILER_ARGS', `dspam "--deliver=innocent,spam" --user $u -d 
> %u')dnl
> 
> 

Since you are using procmail you should set the above to:
define(`LOCAL_MAILER_ARGS', `dspam "--deliver=innocent,spam" --user $u -t -Y -a 
$h -d %u')dnl

That "-t" is:
       -t   Make procmail fail softly, i.e., if procmail  cannot  deliver  the
            mail  to  any  of  the  destinations  you  gave, the mail will not
            bounce, but will  return  to  the  mailqueue.   Another  delivery-
            attempt will be made at some time in the future.

That "-Y" is:
       -Y   Assume traditional Berkeley mailbox format,  ignore  any  Content-
            Length: fields.

That "-a $h" is:
       -a argument
            This  will  set  $1  to  be equal to argument.  Each succeeding -a
            argument will set the next number variable ($2, $3, etc).  It  can
            be used to pass meta information along to procmail.  This is typi-
            cally done by passing along the $...@x information from the  
sendmail
            mailer rule.

That "-d %u" is (where %u is the user name DSPAM uses):
       -d recipient ...
            This  turns  on  explicit  delivery  mode, delivery will be to the
            local user recipient.  This, of course, only is possible if  proc-
            mail  has  root privileges (or if procmail is already running with
            the recipient's euid and  egid).   Procmail  will  setuid  to  the
            intended recipients and delivers the mail as if it were invoked by
            the recipient with no arguments (i.e.,  if  no  rcfile  is  found,
            delivery is like ordinary mail).  This option is incompatible with
            -p.

I am pretty sure your problem is laying in procmail. Can you extract just ONE 
message from your quarantine and save it to a file? Lets call that file 
/tmp/mymail.txt. And can you then pipe that file to procmail and see what it 
does?
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
cat /tmp/mymail.txt | /usr/local/bin/procmail.dspam -t -Y -a [recipient 
hostname (sendmail macro $h)] -d [your DSPAM user (DSPAM macro %u)]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

If this is not working then you need to get procmail working and delivering 
that mail to your inbox. As long as this part is not working, you will not be 
able to release messages from the DSPAM quarantine.

-- 
Kind Regards from Switzerland,

Stevan Bajić

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to