Installing WebMail ACS 3.3 |
WebMail is a homegrown solution to allow users to check their mail via a webpage. This install doc is for Linux. Not tested on Solaris.
Here we are going to check and see which of the following items we need to download.
You must have Oracle, Intermedia, ACS 3.3 or higher installed to use WebMail. If you don't have all of these items installed please go back to the beginning of the install docs at http://www.arsdigita.com/doc/install-guide/.
We will check to see if qmail is running.
$ps -ef | grep qmail
qmails 593 1 0 16:36 ? 00:00:00 qmail-send
qmaill 604 593 0 16:36 ? 00:00:00 splogger qmail
root 605 593 0 16:36 ? 00:00:00 qmail-lspawn ./Mailbox
qmailr 606 593 0 16:36 ? 00:00:00 qmail-rspawn
qmailq 607 593 0 16:36 ? 00:00:00 qmail-clean
root 1256 1241 0 18:47 pts/0 00:00:00 grep qmail
$
This output means that qmail is installed and running. If you have problems with your qmail install please consult Appendix B: Trouble Shooting any further help can be found at www.qmail.org.
We will check to see if java is installed.
$ which jar
/usr/local/java/bin/jar
$
You should have output similar to this meaning that you have java installed. And
that you have jar which is the needed utility.
Everything you download here should be stored in the /tmp directory of your machine. This is not required but the rest of the document will reference the files as if they are in the temp directory. To do this correctly you will need access to a user in the dba group and root.
$ su
#cd /var/qmail/control
#vi rcpthosts (on a new line add your domain name)
#exit
$
Note that you should use /home/aol30 instead of /home/nsadmin wherever appropriate hereinafter if you are running AOL Server v3.0
$ su
#cd /var/qmail/users
#vi assign (add a line like this +webmail-:oracle:101:102:/home/nsadmin/qmail/alias:-::)
#exit
$
Now we will decompose the string. +webmail-:oracle:101:102:/home/nsadmin/qmail/alias 1 2 3 4 5
$ su
# su - oracle
$ id
uid=101(oracle) gid=102(oinstall)
$ exit
# exit
$
$ su
# mkdir /home/nsadmin/qmail/alias
# chown -R nsadmin /home/nsadmin/qmail
The location of this directory can be changed by setting the AliasDirectory Parameter in the webmail section of the ACS .ini file for this server. It is ok to share this directory with other virtual servers running on the same machine.
$ su
# cd /var/qmail/control
# vi virtualdomains (add a line like this webmail.arsdigita.com:webmail-wm)
# exit
$
Now we will decompose the string.
webmail.arsdigita.com:webmail-wm
1 2
$ su
# mkdir /home/nsadmin/servers/yourservername/qmail
# /var/qmail/bin/maildirmake /home/nsadmin/servers/yourservername/qmail/queue
# chown -R oracle /home/nsadmin/servers/yourservername/qmail
Set the QueueDirectory parameter in the webmail section of the ACS .ini file for this server to the location of the queue directory.
[ns/server/yourdomainname/acs/webmail]
AliasDirectory=/home/nsadmin/qmail/alias/
; if QueueDirectory is changed, change it in webmail.sql and MessageParsers.sqlj as well
QueueDirectory=/home/nsadmin/servers/yourdomainname/qmail/queue/
Once every minute, Oracle polls the new directory of the maildir queue and picks up any mail that has been delivered. Using the JavaMail library running inside Oracle, it stores and parses the message, and saves off various pieces of information (parsed headers, attachments, etc.; see the data model).
# /var/qmail/bin/qmail-newu
$ telnet localhost 25
If you connect that means you have a mail smtp server running. Now we have to make sure it is qmail and not sendmail. You also need to find out where the qmail smtp server is started. On linux it could be one of two things.
$ ps -ef | grep tcpserver
cspears 19385 19379 0 11:53:01 pts/92 0:00 grep tcpserver
qmaild 25212 1 0 Jun 20 ? 0:02 tcpserver -v -RH -x /var/qmail/etc/smtp.cdb -u 7791 -g 103 -c 200 0 25 qmail-sm
$
(You need to go to /etc/init.d/ and run this)
# /etc/init.d/tcpserver stop
# /etc/init.d/tcpserver start
# vi /etc/inetd.conf
# ps -ef | grep inetd
root 450 1 0 Jun07 ? 00:00:00 inetd
root 15030 14988 0 16:56 pts/6 00:00:00 grep inetd
# kill -HUP 450
That will reset the smtp server with the changes.