Kod:
cd /usr/local/
wget http://unc.dl.sourceforge.net/sourceforge/courier/courier-authlib-0.55.tar.bz2
tar xjvf courier-authlib-0.55.tar.bz2
mv courier-authlib-0.55 courier-authlib
cd /usr/local/courier-authlib
./configure --with-redhat --disable-root-check \
--with-mailuser=courier --with-mailgroup=courier
make && make install && make install-configure Kod:
cd /usr/local
wget http://unc.dl.sourceforge.net/sourceforge/courier/courier-0.49.0.tar.bz2
tar xjvf courier-0.49.0.tar.bz2
mv courier-0.49.0 courier
cd /usr/local/courier
./configure --with-redhat --disable-root-check \
--with-mailuser=courier --with-mailgroup=courier \
--with-db=gdbm
make && make install && make install-configure
echo 'su -c "/usr/lib/courier/share/sqwebmail/cleancache.pl" bin' >> /etc/cron.hourly/courier.cron
touch /usr/local/etc/authlib/userdb
chown daemon /usr/local/etc/authlib/userdb
chgrp daemon /usr/local/etc/authlib/userdb
chmod 600 /usr/local/etc/authlib/userdb
groupadd courier
useradd -c 'Courier Mail Server' -d /dev/null -g courier -s /bin/false courier
ln -s /usr/lib/courier/sbin/webmaild /etc/init.d
echo '/usr/local/sbin/authdaemond' >> /etc/rc.local
echo '/usr/lib/courier/sbin/courier start' >> /etc/rc.local
echo '/usr/lib/courier/sbin/pop3d start' >> /etc/rc.local
echo '/usr/lib/courier/sbin/imapd start' >> /etc/rc.local
/etc/rc.local