EIMS FAQ

Question:

How can I provide Web Mail to my users?


Answer

There is no web-based mail solution in MOSXS as shipped. However...

There are several webmail systems you can easily install to provide this useful feature.

One such package that is easy to use and install is SquirrelMail. It is PHP based, so make sure you have PHP running on your server properly before trying to install.



Quick install guide:


(This assumes you will make a new domain called webmail.domain.com)


- Inside /Library/WebServer make a new folder called WebMail
- Put the SquirrelMail distribution folder inside here and rename it: website
- Move the "data" folder out of the website folder and put it into the WebMail folder.
- Make a new folder in WebMail called 'files'


You should now have 3 folders inside /Library/WebServer/WebMail:
website, data and files.

Set your Apache config to point the Document root of webmail.domain.com to:
/Library/WebServer/WebMail/website

and don't forget to add index.php to the Directory Index directive.

gracefully restart apache

In Terminal, cd to /Library/WebServer/WebMail/website/config
run the perl configure script: perl conf.pl


Make sure you give the data files path and upload/attachments path the full path to those folders:
/Library/WebServer/WebMail/data
/Library/WebServer/WebMail/files


Also, when setting up SquirrelMail against EIMS, make sure you explicitly set the Delimiter (under server settings) to ":".


As a last measure, set either the owner of the WebMail folder and everything enclosed to 'www' (the user that Apache runs as). This makes sure that Apache will have privileges to write to those directories.



chown -R www /Library/WebServer/WebMail
chmod -R 755 /Library/WebServer/WebMail



I also go into the page with the login fields and do 2 things:
- increase the size of the login id field
- Change the label from login ID or whatever it is to: Email Address.
This way, people will not be confused about putting in their whole address and since that is being presented to EIMS, EIMS will certainly know which domain the login is for (% thingy).




---- Sendmail/EIMS config discussion below.

You also want to leave the outgoing mail options to use sendmail. This is because you want your message to dropped into the MTA chain ASAP without possibility of failed connections. SquirrelMail would fail on sending a new message if all of the EIMS SMTP connections are full.

So... sending directly to sendmail on the local box is safer.

First thing you have to do is fix the dreaded permissions problem:

chmod g-w / /etc /etc/mail

In our case we tweak the sendmail config and startup script a bit:

In /etc/mail/sendmail.cf:

Add the name of your EIMS box after the line that says:

# "Smart" relay host (may be null) DS

so that it says:

# "Smart" relay host (may be null) DSmail.youreimsserver.com

This tells sendmail to send ALL mail through the EIMS server. (Set EIMS to accept relay form the SquirrelMail box as well)

You also have to tell sendmail that it's OK to accept ANY piece of mail from the apache process (www), so find the lines that look like:

# this is equivalent to setting class "t" #Ft/etc/mail/trusted-users Troot Tdaemon Tuucp

and add

Twww

to the line after that.


FAQ Home | MacOSXS Home | Page last updated: