FreeBSD + Sqwebmail =================== Shanker Balan http://shankerbalan.com/ Changelog: * Fri May 30 12:37:56 IST 2003 - Initial commit Overview ======== Sqwebmail is a CGI Webmail client for Maildirs which works very well with maildrop provding quota, auto responders, mail filtering and password changing all using a single interface. Though the mail filtering and auto responding is not very intuitive, it is way better than allowing users shell access to change their procmailrc/maildroprc. I am using Sqwebmail with Postfix MTA with maildrop as the LMTP on my FreeBSD -CURRENT server. Courier-IMAP is used for IMAP/POP access. The Setup: - Install sqwebmail - Place the CGI script and the icons in the web server's docRoot - Enable filtering rule - Config runtime defaults - Start the "authdaemon" ### ### Portinstall mail/sqwebmail ### [godzilla] ~# portinstall mail/sqwebmail WITH_ISPELL=yes WITH_HTTPS=yes ### ### HTML DocRoot ### If necessary, move the related files to the Apache DocumentRoot. [godzilla] ~> cd /usr/local/www/cgi-bin/sqwebmail/ [godzilla] /usr/local/www/cgi-bin/sqwebmail> ls -l total 432 -r-sr-xr-x 1 root wheel 433016 May 28 15:20 sqwebmail [godzilla] /usr/local/www/cgi-bin/sqwebmail> HTML Icons ---------- [godzilla] ~> cd /usr/local/www/data/sqwebmail/ [godzilla] /usr/local/www/data/sqwebmail> ls bg.gif folder2.gif graytopright.gif right.gif bluebottomleft.gif folders.gif left.gif right2.gif bluebottomright.gif forward.gif left2.gif save.gif bluetopleft.gif forwardatt.gif logo.gif sep.gif bluetopright.gif fullheaders.gif print.gif signin.gif calendar.gif graybottomleft.gif reply.gif sqwebmail.css cancel.gif graybottomright.gif replyall.gif trash2.gif folder.gif graytopleft.gif replylist.gif uncancel.gif [godzilla] /usr/local/www/data/sqwebmail> ### ### Filtering using "maildirfilterconfig" ### The below config file assumes that the the rules go into ~/.mailfilter and the Maildir directory is ~/Maildir. The filter option in the web interface will get activitaded only if the "maildirfilterconfig" exists. Else, no filtering will be avaialable. [godzilla] ~# cat /usr/local/share/sqwebmail/maildirfilterconfig MAILDIRFILTER=../.mailfilter MAILDIR=./Maildir ### ### Runtime defaults ### - Set the default domain name [godzilla] ~# echo "mydomain.com" > /usr/local/share/sqwebmail/hostname - Prevent changing of the "From:" address [godzilla] ~# touch /usr/local/share/sqwebmail/nochangingfrom - Turn on calendaring [godzilla] ~# echo "local" > /usr/local/share/sqwebmail/calendarmode See the INSTALL file for a complete list of avaiable options. ### ### Start the Sqwebmail authentication daemon ### /usr/local/libexec/sqwebmail/authlib/authdaemon [godzilla] ~# /usr/local/libexec/sqwebmail/authlib/authdaemond start [godzilla] ~# ps ax | grep sqweb 58393 ?? Is 0:04.40 gvim sqwebmail.txt (vim) 58648 p2 S 0:00.01 /usr/local/libexec/sqwebmail/authlib/authdaemond.plai 58649 p2 S 0:00.00 /usr/local/libexec/sqwebmail/authlib/authdaemond.plai 58650 p2 S 0:00.00 /usr/local/libexec/sqwebmail/authlib/authdaemond.plai 58651 p2 S 0:00.00 /usr/local/libexec/sqwebmail/authlib/authdaemond.plai 58652 p2 S 0:00.00 /usr/local/libexec/sqwebmail/authlib/authdaemond.plai 58653 p2 S 0:00.00 /usr/local/libexec/sqwebmail/authlib/authdaemond.plai - Try logging in via the web interface. [godzilla] > links http://mail.mydomain.com/cgi-bin/sqwebmail/sqwebmail For HTTPS: [godzilla] > links https://mail.mydomain.com/cgi-bin/sqwebmail/sqwebmail ### ### NOTES ### - For the filtering, quota and auto responders to work, the MTA must be using maildrop for local delivery. I am not aware of any other mechanism that provides the same set of features. - You may want to create a "mail.mydomain.com" domain redirecting the user to the CGI script. Way batter then asking users to remember very long urls. Also, HTTPS can be enabled if the port is compiled with "WITH_HTTPS=yes". Of course, your Apache server must have SSL enabled for this to work See /usr/ports/mail/sqwebmail/Makefile for other make vars.