Setting up a Site Server with Jaguar
Pages: 1, 2, 3, 4
Last Stop: Setting up IMAPd
The last thing we need to do to have a fully-functional site server is to set up a POP and IMAP server so that we can get our mail. Unfortunately, software for these mail servers doesn't ship by default on Mac OS X. Fortunately, it's easy to get, compile, and set up. We're going to use the University of Washington IMAP server. It's been widely tested, is stable, and is easy to use. It also works well with OpenSSL, which is installed as part of Mac OS X.
This integration with OpenSSL is very important, because you have to have a password to log in to your IMAP server, and you do not want others to be able to see this password while it is in transmission. To make sure that your passwords stay secure, I'm going to give you instructions on how to build the IMAP server to use OpenSSL only. This configuration will be compatible with any mail client that understands SSL -- this includes Mail.app and Entourage.
Setting up the Developer Tools
But, before we can build the IMAP server, we need to have the developer tools installed with the optional BSD SDK on the system. If you haven't already installed the developer tools, or neglected to install the BSD SDK, grab the Developer Tools CD that came with Mac OS X, insert it into your computer, and double click on the Developer.mpkg file in the window that appears. Proceed through the installation wizard until just after you have selected the disk to install onto. When you see the announcement "Click Install to perform a basic installation of this software package," clike the Customize button instead. Make sure that the BSD SDK checkbox is clicked, and then click "Install."
The installer will chug on for a while. Do something else while it works, as it is not a quick install. Grab some coffee. Or water.
Download and Build the IMAP Server
Next, we need to download and build the IMAP server. This is a relatively straightforward process when you know exactly what to type. All you need to do is follow this script and you will have a built and functional SSL-enabled IMAP server ready to be set up. As you type most of these commands in, output on what is happening will scroll by, but as long as you don't make a mistake, everything should be fine.
% curl ftp://ftp.cac.washington.edu/imap/imap.tar.Z > imap.tar.Z
% uncompress imap.tar.Z
% tar xf imap.tar
% cd imap-2002.RC2/
% make osx SSLTYPE=nopwd SSLDIR=/usr SSLCERTS=/etc/sslcerts
% sudo mkdir -p /usr/local/bin
% sudo cp imapd/imapd /usr/local/bin/imapd
There. That wasn't so bad, was it? You now have a fully-functional IMAP server just waiting to be used.
Configure the IMAP Server
There are two things we need to do to configure the IMAP server. The first is to set up the SSL certificate that will be used by the server. The second is to enable the server to handle requests.
To install a self-signed certificate (perfectly adequate for our needs), use the following commands. You will be asked a few questions as part of the process of making this certificate. The answers I used are highlighted in bold.
% sudo mkdir -p /etc/sslcerts
% sudo openssl req -new -x509 -nodes -out /etc/sslcerts/imapd.pem -keyout /etc/sslcerts/imapd.pem -days 3650
Using configuration from /System/Library/OpenSSL/openssl.cnf
Generating a 1024 bit RSA private key
...................................................++++++
...........................++++++
writing new private key to '/etc/sslcerts/imapd.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:California
Locality Name (eg, city) []:San Francisco
Organization Name (eg, company) [Internet Widgits Pty Ltd]:x180
Organizational Unit Name (eg, section) []:Home Mail
Common Name (eg, YOUR name) []:James Duncan Davidson
Email Address []:duncan@x180.net
The last thing we need to do is configure Mac OS X to start up the IMAP server when it sees requests to the IMAP over SSL port (port 993). To do this, we need to edit the /etc/inetd.conf file.
% sudo pico /etc/inetd.conf
Add the following line to the very end of the file:
imaps stream tcp nowait root /usr/libexec/tcpd /usr/local/bin/imapd
Now, we just need to restart the inetd deamon:
% ps -ax | grep inetd
323 ?? Ss 0:00.01 inetd
4798 std R+ 0:00.00 grep inetd
% sudo kill -HUP 323
Congratulations. You're done. Now it's time to set up your mail client to use it. Besides setting up your mail client to use the host, username, and password for your mail account, you'll want to make sure that you enable the SSL option. This is shown in the following configuration panel from Mail.app.
|
|
Also, notice that I've setup an IMAP path prefix. This is the directory in my home directory on the server in which my IMAP mailboxes will be kept. If you don't specify this, then your home directory will be used, and you'll see them show up in your Mail application.
Conclusion
We've just set up everything needed to have a full-fledged site server on the Internet with Mac OS X. There are many other things that can be tweaked, configured, and added to this foundation. You can find instructions for many of these here on the O'Reilly Network. Another great resource to use is Stepwise.
There's one last important thing to say before we're done. Now that you have a server up and running, you'll want to make sure that it doesn't automatically go to sleep on you. Just go into the System Preferences, click on Energy Saver, and make the appropriate selections.
|
Related Resources: "Learning the Mac OS X Terminal" -- Chris Stone, contributor to Mac OS X: The Missing Manual, shows you how to get comfortable using the Terminal application in Mac OS X. His hands-on tutorials will have you punching out command lines in no time at all. "Homemade Dot-Mac with OS X" -- So you don't want to pony up the $99 annual fee for .Mac? No problem if you've switched to Mac OS X, because everything is built-in for you to set up your own .Mac suite of services. Alan Graham shows you how. "Apache Web Serving with Mac OS X" -- There's a powerful Apache Web server built in to every Mac OS X computer. Kevin Hemenway shows you how to start serving Web pages within minutes, then gives you the tools for advanced techniques that seasoned system administrators use every day. Apache: The Definitive Guide -- Written and reviewed by key members of the Apache group, this book is the only complete guide on the market that describes how to obtain, set up, and secure the Apache software. Apache Pocket Reference -- Provides a summary of Apache command-line options, configuration directives, and modules, and covers Apache support utilities. sendmail, 2nd Edition -- covers |
James Duncan Davidson is a freelance author, software developer, and consultant focusing on Mac OS X, Java, XML, and open source technologies. He currently resides in San Francisco, California.
Return to the Mac DevCenter.
You must be logged in to the O'Reilly Network to post a talkback.
Showing messages 101 through 141 of 141.
Previous Page
-
Security
2002-09-09 20:59:33 anonymous2 [Reply | View]
Mr. Davidson,
I feel it was a serious omission for you to tell people how to open their machines up to the world without telling them the set up a firewall.
And, since Jaguar makes firewalls so easy, people no longer have an excuse like being too lazy to download BrickHouse (http://personalpages.tds.net/~brian_hill/brickhouse.html).
-Carole
-
Question regarding Apache and DynDNS
2002-09-09 16:08:21 anonymous2 [Reply | View]
I run a server off of Apache and a custom DynDNS domain. My problem is when users leave off the trailing "/" off the end of a directory name it spits out my rendezvous computer name as part of the address replacing my DynDNS address. Actually it it spits out the first rendezvous name I set for my system. I changed this to my domain name in hopes of having it return that. No luck. It still uses the older rendezvous name. I tried editing my apache conf file to return the proper server name and a few other things but nothing works. Any suggestions?
-
Trouble compiling imap
2002-09-08 16:11:59 bin2 [Reply | View]
I wrote earlier about my problems with compiling imap. I'm using Jaguar of course, and the trouble seems to be that there are no OpenSSL headers?!
This is the error I get:
osdep.c:137: header file 'x509.h' not found
osdep.c:138: header file 'ssl.h' not found
osdep.c:140: header file 'pem.h' not found
osdep.c:141: header file 'buffer.h' not found
osdep.c:142: header file 'bio.h' not found
osdep.c:143: header file 'crypto.h' not found
osdep.c:144: header file 'rand.h' not found
osdep.c:155: undefined type, found `SSL_CTX'
osdep.c:156: undefined type, found `SSL'
osdep.c:168: undefined type, found `X509_STORE_CTX'
osdep.c:172: undefined type, found `RSA'
osdep.c:172: undefined type, found `SSL'
osdep.c:318: undefined type, found `BIO'
osdep.c:319: undefined type, found `X509'
osdep.c:337: illegal expression, found `)'
osdep.c:337: illegal expression, found `)'
osdep.c:374: undefined type, found `X509_STORE_CTX'
osdep.c:770: undefined type, found `RSA'
osdep.c:770: undefined type, found `SSL'
osdep.c:773: undefined type, found `RSA'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make[3]: *** [osdep.o] Error 1
make[2]: *** [osx] Error 2
make[1]: *** [OSTYPE] Error 2
make: *** [osx] Error 2
I can successfully compile imap without SSL but I don't really want to.
If this could be resolved together with a tutorial on how to make sendmail actually SEND mail I would be very happy!
/John -
But I DID install the BSD headers
2002-09-12 14:08:00 bin2 [Reply | View]
The strange thing is that I DID install the BSD headers. I checked it thoroughly. I've even installed the dev tools TWICE on TWO machines. I don't get it. They just wont get installed.
The link to the downloadable headers worked though, so I'll settle for that. -
Make sure to install the BSD Development headers!
2002-09-11 13:58:43 James Duncan Davidson |
[Reply | View]
You need to be careful about installing the BSD development headers when installing the development tools. Since you didn't, you are seeing the error you see here. Go back and reinstall the dev tools and you'll be fine. -
Trouble compiling imap -> download openssl headers
2002-09-09 15:26:57 anonymous2 [Reply | View]
I had the very same problem. The OpenSSL headers do not seem to be installed on jagwire by default. Download them @ openssl.org or packaged for you at http://www.serverlogistics.com/downloads-jag.php
/David
-
Doesn't Work
2002-09-07 14:09:12 maclaxguy [Reply | View]
I followed your article, yet something is not working right. When opening Mail.app, I get this message:
The server error encountered was: Mail was unable to connect to server “maclaxguy.homeunix.net” using SSL on port 993. Verify that this server supports SSL and that your account settings are correct.
I've taken down my firewall, so that should not be an issue. I portscanned my machine, and it's comming up with port 993 imaps being open. I have telnetted to `localhost imaps`, and get:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
and then nothing else.
I had POP3 running, but have turned that off. I don't know what has happened. Of note, the build of imap was at RC5 when I compiled it.
Thanks,
Ben Foster
maclaxguy@cox.net
-
No openssl headers, cant send mail
2002-09-06 15:03:44 bin2 [Reply | View]
Ok. So I had to compile Imapd without SSL-support since the headers needed were not on my system. Don't know why. Checked both my computers, and they aren't on any of them. Installed Dev Tools on both with the BSD-kit. Tried d/ling OpenSSL and installing but it just complained.
Anyway, Imap seems to be working, though without SSL-support.
When I try to send mail through my new setup to my own account, sendmail doesn't want to. It claims I typed the wrong password? But I am typing the correct pass to my account so whats going on here? Also, Sendmail seems to only accept cleartext connections. No SSL-support there either.
Anyone care to help?
/John -
STARTTLS and sendmail
2002-09-06 21:16:39 ianwsmith [Reply | View]
I'm in somewhat of the same boat as you are. I have everything working as per the article, including IMAP with SSL. Works great. However, I would like to be able to use the Mac as the outgoing mail server when accessing from remote locations. The setup currently is defaulted to block relaying, which is a Good Thing. However, the simple relaying tools are no good for roaming users, as they depend on list of rulesets based on domain names, host names, and IP addresses and such that are used to determine whether relaying is allowed, and all of those things will be dynamic for users who wish to access the mail server from multiple locations. Enter STARTTLS, which is available in the version of sendmail in the Jaguar install, 8.12.2. Using STARTTLS enables you to use SSL to communicate with the server, and to relay only mail from authenticated senders. Unfortunately, I am not in even the smallest way savvy enough with Sendmail to know how this beast needs to be set up. There's a README over at www.sendmail.org for the 8.12.6 release, but it's some pretty tough going. I intend to slog through as best I can, and will hopefully be able to report back favorable results, with instructions. Otherwise, I'm waiting for the sendmail guru whom I just _know_ must be lurking on this thread to lend a hand, or for Duncan's Sendmail on OSX article that he alluded to. (Duncan - if you're still reading, any chance that'll be coming out real *soon*? :-)
-Ian
-
Sending mail
2002-09-05 18:45:19 4profit [Reply | View]
I appologize if this is slightly off topic. I'm looking to send mail from a web-site I wrote / host ala wired's 'tell a friend about this article'.
I've read the php.net manual on mail() but am wondering about 1) sendmail configuration and 2) how to specify the 'Mail Configuration Directives'.
Thanks!
kdavis@uvic.ca
-
IMAP SSL refusing connections
2002-09-02 16:50:10 mbarr [Reply | View]
I'm attempting to add IMAP SSL on port 993, and it's refusing to run. I've compiled uw-imap, and that's working fine under port 143 (imap or imap4). I recompiled the SSL version, but it won't give a response. In order to test, I've set inetd to use the known good version of imapd, under 993. I've also delved into xinetd, and gotten IMAP working fine, but run into the same *exact* problem under port 993. ipfw (firewall) was off, and shouldn't be affecting anything. I also disabled the inetd lines, when i switched to the xinetd. Anyone have any ideas on what might be causing the problem-?
I'm getting :
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
netcat (nc) just quits when attemptign to use either imaps or 993. (So the services lookup seems to be just fine :-)
I used identical lines under inetd, and identical files under xinetd. I copied the ftp file, with the correct path modification, and the removal of the args. They point to the same binary, so if one works, the other should...
Open to suggestions...
BTW- xinetd is not a bad option, and also shows up in 10.2 under the ps -ax|grep inetd..
Thanks for wonderful article- I've actually been doing most of this for while.. but still always helpful!
-
two domain names?
2002-09-01 23:51:20 qryss [Reply | View]
Hi folks,
I have two domain names, both of which point to the same box.
This works fine for web - both URLs resolve to the same page - and the first one I set up works fine for mail.
The second domain name, however, will not work with email: I am getting the 'open relay' error you would get if local-host-names did not contain the domain entry - which it does.
Any clues? TIA.
Chris
-
10.2 as server via win2000
2002-09-01 17:56:22 cyberonyx [Reply | View]
I would like to use the apache web server in 10.2 to serve some pages etc and run Sendmail to handle email and so on....but my situation is somewhat different. I live in outback Australia, and use a 2way satelite to get on the net. its drivers are for windows2000 only. (I am definately an idiot re: win2000 networking)
I MUST use the satelites assigned fixed ip setup on the Windows machine to establish the internet connection, and then a networked mac gets access to that internet connection via ethernet. (works very well for mac browsing, and mail retrieval)....but I was hoping somebody might be knowledgable enough on both platforms to help me get windows to "tunnel"??? so that the mac is the computer that can "serve" any incoming requests to the fixed ip (not the win2000 machine)...
Is this even possible? How do you setup the pc? I dont know who to ask. maybe somebody could point me in the right direction?
cheers. -
10.2 as server via win2000
2002-09-02 13:58:51 ianwsmith [Reply | View]
If you go to start/Settings/Network and Dial-Up Connections/(your satelite connection) and go to properties, select the sharing tab. I assume that you are already sharing this connection to allow your mac to access the web, etc. click on settings, and in the next pane select te servers tab. here you will find a list of well known services such as ftp, smtp, etc. (although strangely no http) with checkboxes by them. clicking the checkbox activates the port forwarding. you need to specify the IP address of your Mac for every service that you want to forward. to add http for your web server, click the add button, give the service a name, give it a port, and specify the IP of the Mac. that should get te port forwarding working on the Win2k box, any requests made to your public IP on that port will be automatically forwarded to the inside IP that you specified.
-
nslookup doesn't work?
2002-09-01 11:15:47 sbills [Reply | View]
I tried nslookup on mac os x 10.2 and all it get when I use it is this:
nslookup www.apple.com
*** Can't find server name for address 192.168.254.254: Non-existent host/domain
*** Default servers are not available
Any reason why I'm getting that response?
When I run this on Linux 7.3, [ PIII box ] it's fine.
Note: dig and host works on Mac OS X 10.2.
thanks -
nslookup doesn't work?
2003-05-02 13:19:32 anonymous2 [Reply | View]
nslookup didn't work for me either but host and dig did. what i did to fix this is in system preferences-network i set the domain name servers of my isp explicitly even though i was networked via a router like you appear to be. i found isp's dns servers by running host dns.mindspring.com. nslookup will work fine once you have set your dns servers there. you can always contact your isp for the the server ip addresses though mine never responded. -
nslookup doesn't work?
2002-09-02 07:44:38 ianwsmith [Reply | View]
I would be suspicious of the IP address that your box thinks is its default name server. 192.168.254.254 is a non-public address. Unless your ISP has a name server that is only reachable from inside it's own network (or unless you have your own nameserver set up with that IP) that migt be a configuration error. you might want to check with your ISP and make sure that that address is valid (or just go to anoter box and see if the nameserver IP is the same or different).
just my (parenthetical) $.02
-Ian
-
Follow-Up IMAP (questions)
2002-08-31 11:45:49 russh [Reply | View]
Outstanding article. A couple of questions:
If I am configuring mail.app to use the new account, do I use "localhost" as the incoming mail server? Should it be "mail.mydomain.com"? Is one better than another?
What if I want to access the server from another box, say from a computer at work? Should I then use "mail.mydomain.com" as the incoming server? If so, does the config described in the article allow for that, or do I need more setup and information?
Thanks to anyone who can advise, and good job, Duncan!
--
russh -
Follow-Up IMAP (questions)
2002-08-31 12:50:41 russh [Reply | View]
okay, I figured out I can connect remotely using just "mydomain.com" as the incoming server.
So why do most ISP's use "mail.mydomain.com" -- would it be a good idea to set it up like that somehow? I feel so naked and exposed without the "mail" in front of the "mydomain.com".
If it matters, I am using dyndns.org for custom domain name service. Do I need to set something up through them?
-
chmod g-w ... vs. appropriate sendmail setting
2002-08-31 09:57:50 fuerst [Reply | View]
Why are you not editing /etc/mail/sendmail.cf and enabling/adding the line
O DontBlameSendmail=GroupWritableDirPathSafe
to it? Looks a little bit cleaner than running chmod via crontab...
Bernhard -
Simple Answer: Security
2002-08-31 11:06:04 James Duncan Davidson |
[Reply | View]
I did it this way as it is the most secure way to run Sendmail. However, there many issues to consider when running Sendmail on your machine. These will be covered in an upcoming article.
In that article, I'll talk about the DontBlameSendmail properrty and how best to set it-along with a lot of other configuration knobs that you can tweak in Sendmail.
-
Localhost only
2002-08-29 20:29:02 mark_osx [Reply | View]
I understand most of this, but I am not a Unix guy. What I want is to just have sendmail working so that I can test my PHP email scripts right on my desktop. Anyone know what I have to do differen't to get it to work this way or any other articles that might help? -
Localhost only
2002-08-30 18:02:59 James Duncan Davidson |
[Reply | View]
For that, you need to modify the sendmail.cf file so that Sendmail won't complain about group writable directories. The article that talks about how to do this in detail is almost ready to be published.
The short crash course that you need is to make sure that Sendmail is set up to DontBlameSendmail. The quickest way to do this is make sure that the line
#O DontBlameSendmail=safe
in your /etc/mail/sendmail.cf file is changed to:
O DontBlameSendmail=GroupWritableDirPathSafe
In the upcoming article, I'll show how to do this without actually hacking the sendmail.cf file directly, but this should get you out of the gate without having to cut and past the whole article here. :) -
PHP imap_open() trouble
2002-09-06 04:37:40 cowboy_x [Reply | View]
I think I'm bumping into the same problem he is. When I run this function...
imap_open( "{127.0.0.1:993}INBOX",$username,$password );
The browser just goes into an eternal seek... I'm pretty sure that I have the parameters correct, as feeding bogus numbers into the statement will error out. Altering the sendmail.cf file as suggested above didn't do anything.
Unforunately, I don't know where to go for help on this... I don't think it's a PHP problem (I'm positive that my build includes the libraries necessary for IMAP connections), and I doubt many of the people in the PHP forums would know much about IMAP on OS X.2 anyway...
-
IMAP is BUILT in to 10.2
2002-08-26 07:56:35 poshpaws [Reply | View]
IMAPD is in 10.2 and 10.1.x
but it's not were inetd.conf expects it
the inetd entry for imapd points to /usr/local/libexec/imapd this should be /usr/libexec/imapd
change this restart inetd , and you have a working imap server
-
No imapd in Jaguar by default
2002-08-26 11:31:37 James Duncan Davidson |
[Reply | View]
I've checked on three different machines, all of which are clean installs of Jaguar (at various times over the last week). There's no imapd in the /usr/libexec/imapd folder from the factory. Yes, the /etc/inetd.conf file is configured to use /usr/local/libexec/imapd but that doesn't mean anything. Also note that at the top of the inetd.conf file is a note that items with double hashes are not yet implmeneted in the OS. I couldn't tell you if this is an Apple comment, or one that came along for the rid
If I could have used a built in imap, I would have.
As it is, I'm curious as to how you have a working imapd by simply changing your inetd.conf file. Are you sure you've got a clean install that hasn't had things installed by other people or toolsets?
-
What happened at the end?
2002-08-25 18:27:15 mladd [Reply | View]
Ok, Everything was great until the last page. What is the host, username and password that you mention at the very end?
What is my inbound and outbound mail server supposed to be?
I completely have no idea how to set up my mail.app.
Everything in the article was great up to this point. Could someone please provide a little more help?
Thanks,
Mike -
What happened at the end?
2002-08-25 21:28:37 James Duncan Davidson |
[Reply | View]
You should configure your mail client to look for an IMAP mail server, use the hostname of your server, your username and password on the system, and--like the article says--make sure that you have SSL enabled.
As far as your outbound mail server goes, you should use the mail server already provided by your ISP so that you don't have to mess with the relay settings of your mail server.
In an upcoming article about configuring Sendmail, I'll talk more about how Sendmail on your server can be configured to deal with relaying.
-
IMAP Fix
2002-08-25 13:14:36 dwldzm9 [Reply | View]
Excellent article, one small omission:
The make process seems to have changed since RC2 (at least for me in 10.2), the imapd folder now gets built inside the imap-2002.RC3 folder and contains the prog. Because of this, you need to use a copy command (I used ditto, but whatever will work) to copy the contents of the imapd folder to the directory that you will run it from. the article uses /usr/local/bin/, I just used the existing /usr/libexec/ folder, and it now runs fine.
Thanks duncan! -
Errata: IMAP Instructions
2002-08-25 15:14:14 James Duncan Davidson |
[Reply | View]
Yep, IMAP updated between the time I wrote this article last week and it coming out on Saturday. Heh. :) The editorial changes should be coming soon, but until then, here's the Imap build process.
% curl ftp://ftp.cac.washington.edu/imap/imap.tar.Z > imap.tar.Z
% uncompress imap.tar.Z
% tar xf imap.tar
% cd imap-2002.RC3/
% make osx SSLTYPE=nopwd SSLDIR=/usr SSLCERTS=/etc/sslcerts
% sudo mkdir -p /usr/local/bin
% sudo cp imapd/imapd /usr/local/bin/imapd
-
IMAP Server Error
2002-08-24 22:37:18 jabevan [Reply | View]
I've been following your article, and it's been excellent, but I've run into a snag downloading and building the IMAP Server. I receive a "No such file or directory" error after entering the following command:
% cd imap-2002.RC2/
Any suggestions?
Thank you, and I look forward to the sendmail article that's in the works! -
IMAP Server Error
2002-08-24 22:49:47 jabevan [Reply | View]
The directory ended up being listed as imap-2002.RC3....
Now, I'm stuck on the following command ("No such file or directory"):
mkdir -p /usr/local/bin
??? -
IMAP Server Error
2002-08-24 23:21:53 James Duncan Davidson |
[Reply | View]
Hrm. They updated the IMAP server in the last day or so... I just out the directions last Thursday.
You try to stay current. :)
There's a typo there. I'll have the edits made. You just need to execute the
sudo mkdir -p /usr/local/bin
line. Ignore the line without the sudo.
-
accessing e-mail via http
2002-08-24 22:01:18 harywilke [Reply | View]
thank you for the very helpful tutorial. In my path toward internet independance i would like to take this one step farther. In school in the 90's i used telnet and pine to access my email account. At work i am behind a firewall that doesnot allow telnet. So i would like to be able to access mail that is sent to my computer via a browser, much like i do now with my yahoo account. If i could do this it would eliminate one more cost and allow me to forget about running out of space and the annoying attachment size limit. Being very new to apache and web serving i am wondering how dificult this is. As you can imagine a search on google for "email html apache" was less than helpfull. I would imagine that this has been done before many times over. Are there any projects out there that people have been working on that would do this?
Thanks again. O'Reilly has been wonderful in getting a unix eye view of OSX
-hary wilke -
accessing e-mail via http
2002-08-27 11:32:46 rgraham [Reply | View]
Given the author's background I'm surprised he didn't mention using Tomcat. =) If you download Sun's Java Mail jar in the sample code there is a simple little servlet that allows you to retrieve your mail via a browser (the ability to send mail could easily be added). So get Tomcat running --there is a howto article elsewhere on this site for doing just that-- drop in a .war file and you're all set.
PS - David I enjoyed hearing you speak at the Denver Java User's Group meeting a couple weeks back. -
accessing e-mail via http
2002-08-24 23:50:33 James Duncan Davidson |
[Reply | View]
There are several PHP and Perl based webmail programs. Try a google search on "webmail imap" or "webmail php" and you'll do a bit better. Here are a couple that popped up when I searched:
http://www.horde.org/imp/
http://www.squirrelmail.org/
I haven't yet done an exhaustive look at the various options so I don't have a recommendation yet. I'll try to have one soon. :) -
accessing e-mail via http
2002-08-25 19:05:49 harywilke [Reply | View]
Thanks Duncan. again very helpful.
both squirrel and imp seem to be strong contenders right now. i went to sourceforge.net and was a bit overwhelmed by the number of webmail clients. I want to make sure that any email client i setup is smart enough to use OSX's address book. no point in duplicating this info unecessarily. i imagine that I will still be using mail.app when i'm on my home computer. I look forward to your recomendation as i think it would round out the other side of this setup nicely.
-hary wilke







Postfix is a popular alternative.
See "Installing Postfix and UW IMAP on MacOS X Server" (http://www.afp548.com/Articles/mail/postfix-solo.html) for more information.
-carole
Carole_Mah@brown.edu