SqWebMail 3.6.2 on OSXS 10.3 (Panther)

curl -O http://easynews.dl.sourceforge.net/sourceforge/courier/sqwebmail-3.6.2.tar.bz2
bunzip2 sqwebmail-3.6.2.tar.bz2
tar -xvf sqwebmail-3.6.2.tar
cd sqwebmail-3.6.2
./configure \
--prefix=/usr/share/sqwebmail \
--enable-imageurl=/sqwebmail_images \
--enable-imagedir=/usr/share/sqwebmail/images/ \
--enable-cgibindir=/Library/WebServer/CGI-Executables \
--enable-mimetypes \
--with-authmysql \
--without-ipv6 \
--disable-changepass \
--with-cachedir=/var/run/sqwebmail \
--with-cacheowner=courier
make configure-check
make
make check
umask 022
make install-strip 
make install-configure

SqWebMail is looking for sendmail in /bin instead of /sbin so you have to create a link:

rm /usr/bin/sendmail
ln -s /usr/exim/bin/exim-4.43-1 /usr/bin/sendmail

Apache server needs to have an alias to SqWebMail's images:

open -e /private/etc/httpd/httpd.conf

add the following line to wherever the aliases are:

Alias /sqwebmail_images/ "/usr/share/sqwebmail/images/"

sudo apachectl graceful restart

To access the package point your browser to:

http://your.com/cgi-bin/sqwebmail

You MUST add a periodic cron job to run the cleancache.pl script in order to delete stale cache records from the cache directory. (/usr/share/sqwebmail/cleancache.pl)

Starting and stopping manually:

/usr/share/sqwebmail/libexec/sqwebmail/sqwebmaild start
/usr/share/sqwebmail/libexec/authlib/authdaemond start
/usr/share/sqwebmail/libexec/authlib/authdaemond stop
/usr/share/sqwebmail/libexec/sqwebmail/sqwebmaild stop