On 01/26/2010 05:23 PM, Remo Mattei wrote:
I found this script but I do not think it is correct
#!/bin/sh
VPOPDOMAINS="/home/vpopmail/domains"
if [[ "$2" = "-d" ]]; then
user=`eval echo $3 | cut -f 1 -d "@"`
domain=`eval echo $3 | cut -f 2 -d "@"`
cd $VPOPDOMAINS/"$domain"/"$user"
fi
/usr/local/bin/safecat "$1"/tmp "$1"/new 1>/dev/null
I do not even have safecat on my system (centos 5.4) any suggestions?
Install safecat?
You can find an RPM here
http://freshmeat.net/projects/safecat/
BTW, this has nothing to do with DSPAM. You should try the
qmail/vpopmail lists.
Regards,
Hugo Monteiro.
I used this one
#!/bin/bash
# "Reading" variables.
if [ "$1" == "-d" ]; then
USER=`echo $2 | sed 's/@/ /g' | awk '{print $1}'`
DOMAIN=`echo $2 | sed 's/@/ /g' | awk '{print $2}'`
EXT=$USER HOST=$DOMAIN /home/vpopmail/bin/vdelivermail '' $2
else
USER=`echo $1 | sed 's/@/ /g' | awk '{print $1}'`
DOMAIN=`echo $1 | sed 's/@/ /g' | awk '{print $2}'`
EXT=$USER HOST=$DOMAIN /home/vpopmail/bin/vdelivermail '' $1
fi
Anyone has a better option?
Thanks
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user
--
fct.unl.pt:~# cat .signature
Hugo Monteiro
Email : [email protected]
Telefone : +351 212948300 Ext.15307
Web : http://hmonteiro.net
Divisão de Informática
Faculdade de Ciências e Tecnologia da
Universidade Nova de Lisboa
Quinta da Torre 2829-516 Caparica Portugal
Telefone: +351 212948596 Fax: +351 212948548
www.ci.fct.unl.pt [email protected]
fct.unl.pt:~# _
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user