On 17/04/06 14:56, "Brian Rahill" <brian (at mark) rainstormconsulting.com> wrote:
> One other minor thing. We use Openwebmail on the 550 and on BQ. However the
> mbox symlinks don't
> transfer over with CMU. It's because the symlinks created with OWM to
> saved-messages use a path
> like: /home/.sites/70/site4/.users/43/someusername/ etc. and obviously these
> numbers aren't the
> same on the new machine. I'm not sure if it's "fixable" with CMU but it would
> be great if the
> symlinks were something more generic:
> /home/sites/www.example.com/users/someusername/ etc.
>
> Thanks for all the great work!
>
> Brian
Hi Brian
We have been using this script on RaQ550 restores:
fix-spool.sh:
#!/bin/sh
for b in * ; do
if [ "$b" = "*" ] ; then echo "No users here ..." ; break; fi
cd $b
if [ -L mbox ] ; then
echo "Fixing $b mail spool..."
rm mbox
touch mbox
ln -s mail/saved-messages mbox
chown $b mbox
chmod 0600 mbox
fi
cd ..
done
From CLI:
cd /home/sites ; for a in *.*.* ; do echo $a ; cd $a/users ;
/home/fix-spool.sh ; cd /home/sites ; done
--
Rene Molsted