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

Reply via email to