#!/bin/sh # # ilohamail.cgi automatic installer for ilola-mail # # iloha mial is multilingual webmail capable of using both POP3 and IMAP # # Put this script in a protected directory and chmod 700, # then access it onece: http://yourdomain.com/protected_dir/ilohamail.cgi # ilohaMail will be ready in: http://yourdomain.com/iloha/ # (Use the user/pass for email shown in OPS->package->pop/imap to login.) echo -e "Content-type: text/html\n\n
"
exec 2>&1
#http://download.ilohamail.org/files/IlohaMail-0.8.14-rc3.tar.gz
VER=0.8.14-rc3
ILMAIL=IlohaMail
cd ${DOCUMENT_ROOT%/*}
wget -nd http://download.ilohamail.org/files/$ILMAIL-$VER.tar.gz
tar -xzf $ILMAIL-$VER.tar.gz
cd $ILMAIL-$VER
pwd
mkdir users
mkdir sessions
mkdir uploads
mkdir cache
chmod 700 users
chmod 700 sessions
chmod 700 uploads
chmod 700 cache
ln -s ${DOCUMENT_ROOT%/*}/$ILMAIL-$VER/IlohaMail/source $DOCUMENT_ROOT/iloha
echo 'all done'
echo "Log in SquirrelMail at http://$HTTP_HOST/iloha/"