On Wed, 28 Jul 2010 12:08:23 -0400
Devin Ceartas <nacred...@gmail.com> wrote:

> Thanks. The quote is only missing in my sloppy cut/paste -- it is  
> there in the actual conf file
> The script you give might work better, but the one I have seems it  
> should work, I think,
>
From my experience with ksh I would not be sure if it works. Can you call that 
script from the command line and see if it works?
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo "just testing" | /var/mail/virtual/qa.sh
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Maybe you should first switch to user "dspam" (if this is the user under which 
DSPAM runs):
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
su - dspam -c "echo "just testing" | /var/mail/virtual/qa.sh"
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


> as all i'm asking it to do is tell me if it is  
> getting called or not.
> 
If all you want is to know if it is called or not then why that extra loop and 
stuff? Why not just plain and simple:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#!/bin/sh
echo "I was called" >> /var/mail/virtual/quarantine
exit 0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

And then chmod it so that DSPAM can call it:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
chmod 755 /var/mail/virtual/qa.sh/var/mail/virtual/qa.sh
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

If DSPAM can not call it then you should get a log entry in your syslog telling 
so. Do you get anything in your syslog? What do you get?


> -- devin
> 
-- 
Kind Regards from Switzerland,

Stevan Bajić


> 
> On Jul 28, 2010, at 11:44 AM, Stevan Bajić wrote:
> 
> > On Wed, 28 Jul 2010 11:27:41 -0400
> > Devin Ceartas <nacred...@gmail.com> wrote:
> >
> >> Is there info somewhere on writing an alternative quarantine agent
> >>
> > No DSPAM specific info. However... it is the same code you need to  
> > do as if you would code another filter for an MTA or other  
> > applications. I think that kind of documentation can be easy found  
> > on the internet.
> >
> >
> >> and
> >> how to activate it?
> >>
> > Yes. It is in dspam.conf and the option is called "QuarantineAgent".
> >
> >
> >> My attempts thus far have not been successful,
> >> just giving the path to a simple shell script in dspam.conf where it
> >> asks for the agent.
> >>
> >> in dspam.conf I have
> >> QuarantineAgent "/var/mail/virtual/qa.sh
> >>
> > Is there not a quote missing at the end of that line?
> >
> >
> >> qa.sh is:
> >>
> >> #!/bin/ksh
> >>
> >> while read LINE; do
> >>    echo ${LINE} >> /var/mail/virtual/quarantine
> >> done
> >>
> >> exit 0
> >>
> > Would something like this work?
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > #!/bin/sh
> > cat >> /var/mail/virtual/quarantine || { echo "Can not save message  
> > to quarantine";exit 75; }
> > exit 0
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> >
> >
> > -- 
> > 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
> 
> 

------------------------------------------------------------------------------
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