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 1 through 141 of 141.
-
Batteries
2003-12-01 02:48:54 juanjose [Reply | View]
You mentioned in the beginning of the article that you can get nearly 10 hours from your batteries. Where can I get such cells?
I have a Firewire 400MHz G3 Powerbook. My battery only lasts an hour...
-
Panther = IMAP Broken
2003-10-25 08:19:44 anonymous2 [Reply | View]
Okay, I partially got my IMAP configuration working again by adding that last line to the inetd.conf file. However, whenever I try to authenticate in Mail, it doesn't authenticate properly. The first time that I did it, it also didn't recognize the certificate, but now that seems to be ok. Any ideas on why it wouldn't be authenticating properly? -
Panther = IMAP Broken
2003-10-29 07:12:31 anonymous2 [Reply | View]
See this post for the resolution....
http://discussions.info.apple.com/WebX?128@103.JWHaauufjsH.0@.599b59ed -
Panther = IMAP Broken
2003-10-27 18:34:41 anonymous2 [Reply | View]
Take a look here for a quick fix.
http://discussions.info.apple.com/WebX?128@195.LLVqayHZjFf.7@.599b59ed -
Panther = IMAP Broken
2003-10-27 10:20:54 cian [Reply | View]
I think 10.3 has PAM (Plugable Authenticator Module) so I am going to try compiling like so:
make osx PASSWDTYPE=pam SSLTYPE=unix
--or--
make osx PASSWDTYPE=pmb SSLTYPE=unix
Any advice would be useful -
Panther = IMAP Broken
2003-10-30 21:08:05 anonymous2 [Reply | View]
The latest development tar ball for UW-IMAP includes changes that support MacOS X 10.3 Panther.
Get:
ftp://ftp.cac.washington.edu/mail/imap-2003.DEV.tar.Z
Compile with (OpenSSL must have been installed):
make oxp
(without SSL support: make oxp SSLTYPE=none)
Also, you need "imap" in /etc/pam.d/, so;
cd /etc/pam.d
sudo cp login imap
-
Panther = IMAP Broken
2003-10-31 11:00:39 anonymous2 [Reply | View]
I was the original poster indicating that this was broken. I tried your solution -- worked like a charm. Thanks a ton! -
Panther = IMAP Broken
2003-11-01 06:11:41 anonymous2 [Reply | View]
I hate having to reply to my own message, but it's not working for some reason. In Mail.app, it appears to check it and log in just fine. However, I can't seem to send e-mail to the LDAP server. It could be something entirely unrelated. Checking my LDAP account seems to go off without a hitch. It just doesn't seem to receive it. Oh, and when I send e-mail, it doesn't bounce back -- very weird. -
Panther = IMAP Broken
2003-10-27 07:14:29 sbromlin [Reply | View]
I had the same issue and after half a day of digging finally got to the bottom of it. The clue is in the man page for 'getpwent'. It describes that as of 10.3, the pw_passwd field of 'struct passwd' has changed, and that Panther users by default have their authentication go through DirectoryServices rather than the tradition shadow password. I'm certainly glad that Apple has provided versions of ssh, etc. that work with the new scheme, but it seems as though some work is needed to get UW-IMAP to authenticate properly under Panther. If you are interested in doing a small amount of source code hacking to get the server to work for you (as I did), edit
"src/osdep/unix/ckp_std.c"
and modify the checkpw function so that it no longer uses
the crypt function to verify the password. I leave it up to
you how best to fix the checkpw function for your situation. -
Panther = IMAP Broken
2003-10-27 08:51:11 anonymous2 [Reply | View]
sbromlin do you care to share your new source with us?
It would be a great help.
Thanks -
Panther = IMAP Broken
2003-10-27 15:36:15 anonymous2 [Reply | View]
Well, it is incredibly crufty since I don't have time right now to make it work right, but here goes. The checkpw function in the ckp_std.c source file I referenced tries to run "crypt(pass, pw->pw_passwd)", where pass is the plaintext version of the password supplied by the IMAP client. Since pw->pw_passwd no longer contains the encrypted passwd (it is now simply "********"), I changed the string compare to look like the following:
[ ... && !strcmp("myPassword",pass) ... ]
This works for me because I have only one user account that I want to provide IMAP services for. Note that you have to change "myPassword" to "yourPassword".
It is a stupid, brute-force approach, but it allows me to work with my e-mail in the manner to which I've grown accustomed. ;-) I'm as eager as everyone else for a proper patch to UW-IMAP to work under Panther. Perhaps in a month or so I'll find time to do it myself.
I hope this can help at least a few of you to get back up on your feet. -
Panther = IMAP Broken
2003-10-27 04:29:38 anonymous2 [Reply | View]
Same Problem, I have tried finks binaries too and they don't work either. -
Panther = IMAP Broken
2003-10-26 14:04:02 anonymous2 [Reply | View]
I'm suffering the same problem. I've tried to build imapd with and without SSL. I can telnet successfully to either port 143 or 993 and get an appropriate banner listing the authentiction requirements, but I'm unable to satisfy the password prompts.
I tried creating an entry in /etc/passwd using my hashed password thinking that imapd was parsing that file directly. No success.
-
Panther = Sendmail is Gone
2003-10-16 15:38:35 anonymous2 [Reply | View]
So Sendmail has been dropped from Panther. Any ideas on how to get Postfix set up? -
Panther = Sendmail is Gone
2003-11-13 10:33:51 atoms [Reply | View]
AFAIK the advantage of Postfix over Sendmail is ease of set up and configuration. If you've already mastered the sendmail rigamarole, you might want to consider adding Sendmail to your Panther.
Just get the Sendmail source and compile it yourself. I have not tried to do that on Panther, but I had to do it several times on Jaguar and 10.1 to get a Sendmail with SASL support.
I followed the instructions here:
http://sial.org/sendmail/macosx/smtpauth/
-
"550: Relaying..." from external mail
2003-09-07 19:28:35 anonymous2 [Reply | View]
Okay, so I got this all set up - finally, and it works great, as long as the mail is sent from my network. Meaning that if I send a mail from user1@example.com to user2@example.com it gets there just fine. But if I send a mail from user1@mac.com to user2@example.com, the mail is immediately kicked back to the mac.com account with a "500: Relaying prohibited" error. I have an Airport basestation set up and I opened ports 80, 110, 25, 143, 993 and forward them to the correct machine. Apache routes through correctly. Sendmail seems to work okay as well. Any Ideas? marklove@_NOSPAM_mac.com
-
Common Name
2003-08-03 12:57:17 anonymous2 [Reply | View]
I've found that if the "Common Name" in the SSL Certificate is anything other than the name of the server, Mozilla Mail will give you a warning every time you start it, even though you've initially accepted this certificate for all future.
-
inetd will not register imapd
2003-07-28 23:57:15 anonymous2 [Reply | View]
Everything went smoothly, but inetd will not register imapd.
I am posting what I have done. Can anyone help make this work?
Caveat: I am using 10.1.3, and I do not have the SSL headers.
Here is the problem, in a nutshell. More details given below.
% sudo /usr/sbin/inetd -d
ADD : imap proto=tcp, wait=0, user=root builtin=0 server=/usr/libexec/tcpd
FREE: imap proto=tcp, wait=0, user=root builtin=0 server=/usr/libexec/tcpd
Here is a detailed list of what I did to install IMAP server.
% curl ftp://ftp.cac.washington.edu/imap/imap.tar.Z > imap.tar.Z
% uncompress imap.tar.Z
% tar xf imap.tar
% cd imap-2002d
% make osx SSLTYPE=none
% sudo mkdir -p /usr/local/bin
% sudo cp -p imapd/imapd /usr/local/bin/imapd
% sudo chown root:wheel /usr/local/bin/imapd
% sudo chmod 755 /usr/local/bin/imapd
% ls -ls /usr/local/bin/imapd
2792 -rwxr-xr-x 1 root wheel 1425988 Jul 28 19:07 /usr/local/bin/imapd
% grep imap /etc/services
imap 143/tcp imap2 imap4 #Interim Mail Access Protocol v2
imap 143/udp imap2 imap4 #Interim Mail Access Protocol v2
imap3 220/tcp #Interactive Mail Access Protocol v3
imap3 220/udp #Interactive Mail Access Protocol v3
imap4-ssl 585/tcp #IMAP4+SSL (use of 585 is not recommended,
imap4-ssl 585/udp # use 993 instead)
imaps 993/tcp
% grep imap /etc/inetd.conf
##imap4 stream tcp nowait root /usr/libexec/tcpd /usr/local/libexec/imapd
imap stream tcp nowait root /usr/libexec/tcpd /usr/local/bin/imapd
% ps -ax | grep inetd
239 ?? Ss 0:00.00 inetd
10114 std R+ 0:00.00 grep inetd
% sudo kill -HUP 239
I could not connect, so I killed inetd, and used debug mode.
% ls -ls /usr/sbin/inetd
48 -r-xr-xr-x 1 root wheel 24076 Dec 8 2001 /usr/sbin/inetd
% sudo /usr/sbin/inetd -d
ADD : imap proto=tcp, wait=0, user=root builtin=0 server=/usr/libexec/tcpd
FREE: imap proto=tcp, wait=0, user=root builtin=0 server=/usr/libexec/tcpd
Apparently, imap is not registered. Using netstat -a confirms this.
Another post indcated this happens when it is missing from services,
but as you can see above, imap is a standard service inside Darwin.
Can anyone help me? Thanks!
-
inetd will not register imapd
2003-10-30 19:28:16 anonymous2 [Reply | View]
IMAP is now controlled by xinetd.
You should use /sbin/service command to enable IMAP
cd /etc/xinetd.d
cp login imap
Edit imap and point server = to the location of imap binary,
e.g.,
server = /usr/local/libexec/imapd
then
sudo /sbin/service imap start
-
Passwords
2003-07-17 11:01:36 cmwhitney [Reply | View]
Do we need to be concerned about default passwords that need changing in Apache under Jaguar?
I'm setting up my site, and recall that most hacks are due to admins leaving the default passwords in place. What needs to be done, if anything, to secure Apache under Jaguar?
Thanks!
-
UW IMAPd
2003-06-07 03:07:25 anonymous2 [Reply | View]
Thanks for the article, worked great!!\
I am not sure why the difference but when I uncompressed the file the folder name was
cd imap-2002d/
not
cd imap-2002.RC2/
Hope this helps in anyway
-
serving thru airport
2003-05-28 19:39:34 anonymous2 [Reply | View]
i have set up apache the way i need, but my machine[pismo
G3/400] is on airport. i have installed dyndns client on one of the machines and it is responding with the ip that the base station has. in the base station, i have set up portmapping and assigned public port 5001 for port 548, 80 to a static ip that i fill into the server.
when i log into the server for file sharing from the office i go to 'connect to server', then name.dyndns.org:5001 and the airport station sends my request along to the server and i can get into my sharepoints.
but when from a browser i put in http://name.dyndns.org or http://name.dyndns.org:5001, then the only thing that happens is timeout.
is there any docs or tutorials on the site about serving behind airport?
any help would be great...
thanks...
-
Why some have success and others not?
2003-05-28 01:04:29 anonymous2 [Reply | View]
My comment on this article is not in the form of a question but the form of a request. Some posters say that everything went fine and others say they've had problems. I had problems too and have since turned sendmail off and will tackle it another time. I couldn't get the mail sent via the Mail app either. So my request is that authors of these articles please write for the lowest common denominator like myself who have never touched some off these things. Could you please put some ' be sure to do this and not this.' or ' Make sure not to do it this way or you won't be able to....' comments along with the instructions. Sometimes it would help alot of us out who have problems with it. I've also noticed that not many people get the help with their questions either. I know it is hard to answer all by yourselves but could maybe you put some reference sites in the article of where people can get the answers they need to make it work.
Thank You.
KT , Japan. -
Why some have success and others not?
2003-06-28 06:42:37 anonymous2 [Reply | View]
Maybe, and that is where I fell on my face was the copy and pasting of the long line that was broken in two for websites reasons, it contains namly 3 spaces not 1, after i typed it in manually everything worked like a charm. Still feel icky with this 'darwin'
-
am i missing something
2003-05-23 13:18:58 anonymous2 [Reply | View]
everything is going well until i try to keep the updaters from changing the permissions in sendmail. i get these prompts:
[retrosiam:/etc/httpd] bigred% sudo sh
sh-2.05a#
sh-2.05a# export EDITOR+/usr/bin/pico
sh: export: `EDITOR+/usr/bin/pico': not a valid identifier
sh-2.05a# sh
sh-2.05a# export EDITOR=/usr/bin/pico
sh-2.05a# crontab -e
crontab: no crontab for root - using an empty one
its probably a stupid mistake.
any suggestions
thanks
-
Great article - got it all working fine
2003-05-22 19:38:49 mikeall [Reply | View]
I happened to come across this site and it is excellent. This article imparticular got both the webserver and sendmail and imap working.
Thanks for the great article.
-
using the IMAP server.
2003-05-21 03:56:03 anonymous2 [Reply | View]
I've installed according to the instructions given. But not sure how to proceed from there.
I've a few POP3 accounts which I download to the Mac I installed IMAP. How can I allow myself to access those mails that I got via IMAP when I'm outside or with another computer.
thanks.
-
netgear rp114 facilitates dyndns updates
2003-04-29 22:38:22 anonymous2 [Reply | View]
my router actually has a ddns feature that allows me to enter the login, password, and domain for dyndns; it automatically updates dyndns with whatever ip is assigned to me via my dsl modem. check if your router does the same! using netgear rp114 web safe router.
-
empowering
2003-04-29 17:22:59 anonymous2 [Reply | View]
this article and its companion article on sendmail are truly empowering. my old iMac is sluggish with os x but now makes a fine server :-)
i hope to get similar step by step instructions on other hacks/installs in o'reilly books for os x but with perhaps more background on things such as IMAP and bind and a bigger picture approach -- like how sendmail and imap interact and how pop differs from imap.
-
Fantastic!
2003-03-31 23:55:11 anonymous2 [Reply | View]
Sweet! I went through this article and before I realized I was done I heard the familiar "ding!" from Mail -- The messages I had sent myself with a php script earlier had been queued and sent.
Thank you Mr. Davidson!
-
crontab wont work...
2003-02-11 11:31:06 keithflux [Reply | View]
% sudo sh
% export EDITOR=/usr/bin/pico
% crontab -e
Using the above...from the article it says this does not exist. Am I missing something?
-
Private IP address?
2003-02-10 17:41:01 anonymous2 [Reply | View]
My computer has a private static IP address. It's behind my service provider's firewall. Is there anyway for me to set up the server on my mac when I have a private IP address or does my service provider have to give me a public address? There is a cost involved if I need a public address so I'm wondering if there's a way to avoid this step.
Thanks to anyone who might have an answer.
-
Troubleshooting IMAP
2003-02-08 19:16:26 anonymous2 [Reply | View]
The IMAP server writes error reports to /var/log/mail.log, you might want to do
sudo tail -f /var/log/mail.log
...if you're having IMAP problems. Mine (uw-imapd-ssl-2002.RC10-2 from fink) seems to want to look in "/System/Library/OpenSSL//certs/imapd.pem" for its certificate, for instance.
-
Changes needed for MacOSX Server 10.2.3?
2003-02-06 13:07:49 anonymous2 [Reply | View]
Can anyone comment on how this article would be different if it was written from the perspective of settiing up MacOSX Server? For example, to start up the web service, one uses the Server Settings application rather then checking the 'Personal Web Sharing' box, which does not exist for MacOSX Server. Thank you.
-
disable directory browsing
2003-02-05 07:34:13 jakewilliamson [Reply | View]
hi,
great article, really helped me out. just have one question though...
how do you disable directory browsing in appache?? i've done a load of googles and only come up with one page thats a bit vague...
it seems an 'advised' thing to do - just cant find any info!
be greatfull for any feedback,
cheers,
jake -
disable directory browsing
2003-04-16 17:03:53 jeffulri [Reply | View]
I THINK I understand what you're trying to say. I'm assuming that you don't want non-index.html, etc directories to auto generate a directory listing. If so, the answer is simple. Remove INDEXES from your httpd.cfg file. This IS covered at MacDevCenter. Dig deeper...
-
Error messages on Sendmail start
2003-01-25 02:14:40 anonymous2 [Reply | View]
Followed these instructions, worked perfectly on a G3 Powerbook w/OS X v10.2.3 and a G4 tower w/OS X Server 10.1.5. However, on a iMac G3 600 MHz, OS X 10.2.3, I get an error when I try to start Sendmail:
Starting mail services
554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
and it doesn't start.
I'd be very grateful for any ideas.. post here and/or to one@mailzone.com
Thanks in advance.
-
Error messages on Sendmail start
2003-01-25 02:30:06 anonymous2 [Reply | View]
No sooner had it posted than I found my problem... no idea how, but my sendmail.cf file got cleared... possibly in trying something else earlier. Fortunately had it backed up... copied the backup and it started up like a charm.
Thanks anyway :-S
Scott
-
Recommend e-Commerce software
2003-01-24 08:28:16 keithflux [Reply | View]
Can anyone recommend some e-Commerce software to run on my new Apache Web-Server (thanks to these articles)?
-
Hosting Multiple Domains
2003-01-23 06:40:25 anonymous2 [Reply | View]
I'm starting my business this year and I would much rather host the web sites myself than pay $5-$10 a site.
Thanks
Jim
-
problem
2003-01-23 05:41:28 anonymous2 [Reply | View]
a friend of mine has a problem: when he is connected by a 56k modem, his site on Apache is accessible, but by the cable, it is not. Does anybody have an idea?
-
imapd, it works!
2003-01-21 04:02:48 anonymous2 [Reply | View]
Thanks for the excellent article; my server works and my email sends & receives . Seems my imap thingy was installed correctly after all...
Thanks again from Baard T.
-
imapd, last question, i hope
2003-01-20 14:59:27 anonymous2 [Reply | View]
Hi again!
I tried again using "cd imap-2002b", imap-2002b beeing the name of the folder created in my users/me folder. Something did happen, infact very much did happen after I typed in the "make osx andsoforth" command. The terminal showed a great deal beeing installed. I might have done a stupid thing here? The two last sudo commands, and the configuration commands went ok.
Do you think I did the right thing there at the beginning, typing "cd imap-2002b"? I cant test the result for 48 hours, my domain name is still under processing...
Yes, I know it is stupid to just type things into the terminal. Please dont say I´ve murdered my mac.
Thanks for the article and the quick reply!
-
imap again...
2003-01-20 12:49:15 anonymous2 [Reply | View]
Hi!
I just read this article and started fine. But it seems the imap-building information is a bit outdated. when i write in "cd imap-2002.RC2" i get the previously mentioned "file does not exist"-message. I tried with .RC3 as Duncan suggested as a fix, but that didn´t solve the problem. Has the imap file been updated lately? is there anyone who can help me out one this one? I got this far without any unix experience, it would be excelent to be able to finish the setup...
Thanks from Baard T. -
imap again...
2003-01-20 13:34:16 James Duncan Davidson |
[Reply | View]
There have been lots of updates to IMAPd, and on each rev, they change the last part of the directory name. Just change into the imap directory, whatever it might be on the distribution that you got, and things should work fine.
-
Sendmail startup script -> kernel panics
2003-01-07 15:21:33 anonymous2 [Reply | View]
I'm having a problem getting the changes to the Sendmail startup script to work. When I make the changes to the script and restart Sendmail the chmod changes are not made, and I subsequently often get what I assume is Apple's new interface for kernel panics. -
problem fixed - Sendmail startup script -> kernel panics
2003-01-12 18:38:54 dan1 [Reply | View]
This problem somehow seems to have cleared up since I removed Norton SystemWorks and reinstalled it. According to the panic.log a SystemWorks kernel extension was involved with other kernel panics. I don't know how it was preventing the chmod in the startup script (while not preventing it done otherwise).
-
How do I use sendmail for outgoing mail?
2002-12-27 07:24:47 docwalker [Reply | View]
The instructions for setting up sendmail and imap worked perfectly. I can now receive local mail via Mail.app.
How do I send outgoing mail using my own sendmail server instead of my mac.com's or my ISP's server? I tried to set up the SMTP host info in Mail, but I have been unsuccessful.
Outgoing mail server: localhost
Server port: 25
Use SSL: (tried both Yes and No)
Authentication: Password
Username: (same as for incoming mail)
Password: (same as for incoming mail)
Any suggestions?
Rx
-
Sendmail Problems
2002-12-24 22:22:19 anonymous2 [Reply | View]
I followed these instructions exactly, using OS X 10.2.3, but Sendmail didn't work. The IMAP server is fine though. However, continue on with the following Sendmail article, and hopefully you will have luck, as I did. My problem was fixed by specifying my external, fixed IP address in the /etc/mail/access file. My sendmail runs behind NAT. Good luck.
http://www.macdevcenter.com/pub/a/mac/2002/09/10/sendmail.html
-
can't recieve behind firewall & newaliases does not run
2002-12-19 08:43:33 wowmomnyc [Reply | View]
Hello,
Great article, this is a blast!
My aliases are not working. When I run 'sudo newaliases', there is no feed back and 'aliases.db' is not created. I have installed all the developer tools.
Also, I followed the instructions for working behind a firewall, but I can still not receive messages with the firewall enabled. I have even opened port 993. I normally use Norton Personal Firewall, but I could not figure out how to open port 993. So I removed it and am now using Apple's firewall from the Sharing Preferences panel.
Have a nice holiday,
Barton
-
Remember to chmod
2002-12-12 19:20:28 anonymous2 [Reply | View]
After copying the imapd binary to /usr/local/bin, make sure to do a:
chmod 755 /usr/local/bin/imapd
or else, imapd will not execute when inetd reloads.
-
CGI and ...
2002-12-12 07:30:02 keithflux [Reply | View]
Do I still follow the instructions in the Apache Web-Server series to set up CGI, PHP, ASP etc. or are the already setup in 10.2?
-
RE: IMAP is BUILT in to 10.2
2002-11-27 05:16:49 anonymous2 [Reply | View]
IMAP & Webmail (Squirrelmail) are included with OSX 10.2 SERVER. Not the client.
There are completely different instructions for setting this up with Server, which are included in the help files.
-Mike
-
RE: Squirrelmail and imap from this tutorial
2002-11-27 05:10:55 anonymous2 [Reply | View]
I had a problem where I couldn't find the server. I had to move the imapd to /usr/local/libexe. Maybe I am missing something, but is this right? I can now see the server, but am unable to log in.
I am ready to try your new build command, but I wanted to verify the placement of the imapd. Where should it be located??
Thanks,
-Mike
mladd@mikeladd.com
-
Sendmail Log Error
2002-11-18 11:34:25 anonymous2 [Reply | View]
When using the portion of the article referring to:
% telnet localhost 25
Trying 127.0.0.1...
Connected to dsl092-007-021.sfo1.dsl.speakeasy.net.
Escape character is '^]'.
220 dsl092-007-021.sfo1.dsl.speakeasy.net ESMTP Sendmail 8.12.2/8.12.2; Sat, 10 Aug 2002 00:43:35 -0700 (PDT)
My Mac Terminal returns: for
% telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
Any idea why this might be happening?
Thanks for any assitance you can offer.
Bill
-
Error code 1
2002-11-05 12:26:52 mcni7e [Reply | View]
i can't get imapd compiled ... i have installed Developer tools WITH BSD headers and everything (more then once)...
this is what i get after running
'make osx SSLTYPE=nopwd SSLDIR=/usr SSLCERTS=/etc/sslcerts' ... ('/etc/sslcerts' is non-existing, if so, should it be and what should be in it)
______________________
[...more]
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
*** Error code 1
Stop in /Users/****/imap-2002.RC10/c-client.
*** Error code 1
Stop in /Users/****/imap-2002.RC10/c-client.
*** Error code 1
Stop in /Users/****/imap-2002.RC10.
*** Error code 1
Stop in /Users/****/imap-2002.RC10.
sh-2.05a#
______________________
when i tried to follow advice about installing openssl headers, i get error that this is full, so i can't install them ... even if i have about 60gb free in that disk (boot)
i was tryint to cimpile openssl on my own instead of running .pkg installer, but it returns Error 1
so i am pretty sure something is wrong with the compiler or something related to that
-
Dissable SSL CERT in IMAP
2002-11-04 06:34:51 anonymous2 [Reply | View]
did this tutorial, everything works fine.
now I want to remove the cert and let the mail respond on port 143 without encryption.
how do I do that?
-
Can't send or receive email
2002-10-31 11:51:32 urcindalo [Reply | View]
I use 10.2.1 / imap-2002.RC10
I just followed your two tutorials.
I simply followed the first one without changing permissions to / and /users, and tweaked according to the second one.
However, I can't get nor receive email.
I set up Mail.app this way:
Account Type: IMAP
Email address: myname@mycomputer.ual.es
user: myname
incoming server: mycomputer.ual.es -> has a STATIC IP address
Advanced Tab is as yours in the tutorial.
I simply can't receive mail, although I get no error messages nor rebounds when mailing to myname@mycomputer.ual.es
When I try to send mail using my server, mycomputer.ual.es, I get this error form Mail:
"Outgoing server mycomputer.ual.es couldn't send this message. SMTP server mycomputer.ual.es doesn't allow protocol TLS(SSL) on port 25."
What can I try?
PS: I have /users on a dedicate partition, and /users/myname on another one. The mounting points are set up in /etc/fstab and have worked flowlessly so far (completely transparent to teh system).
-
imaps SSL service unable to load certificate
2002-10-20 15:02:58 tjj [Reply | View]
Thanks for another great article!
I can successfully send mail from terminal.app to my local account, send to external accounts (e.g. mac.com). Also, the mail sent from Mail.app with localhost as smtp get through (using the Lame ISP work around).
But I cannot read my unix mail in /var/mail/username using Mail.app. The /var/log/mail.log reads:
Unable to load certificate from /imapd.pem, host=localhost [127.0.0.1]
SSL error status: error:02001002:system library:fopen:No such file or directory
SSL error status: error:20074002:BIO routines:FILE_CTRL:system lib
SSL error status: error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib
Now, the imapd.pem file is not located at /, but but in /etc/sslcerts as specified when building the server (v. RC6). In the same line building the server, an entry said: SSLDIR=/usr. Does this imply there should be an SSLDIR directory in /usr?
There is no such directory.
ANyone can cast light on this, thank you very much.
Thomas Jon -
imap-2002.RC8 solved my certificate problems-firewall remains a PITA
2002-10-21 04:23:34 tjj [Reply | View]
After trying next to everything, I finally downloaded the latest imap-server, ran the building commands as stated in the article and whaddyaknow, my Unix mailbox in mail.app came to life. So. I'm happy with that, everything works if I'm on a direct line to the internet (p.t. dial-up). But here at my office, behind a corporate firewall I can't get mail out or in. Local mail works a-ok. When trying remote address:
... Connecting to mail.mindspring.com. via relay...
... Deferred: Connection refused by mail.mindspring.com
I tried
define(`confDOMAIN_NAME', `$w.mydomain.com')
and
define(`confDOMAIN_NAME', `mydomain.com').
No go
My access file has entries for various relevant hosts to no avail.
Anyone, any ideas, thank you!
Thomas -
Several entries in SMART_HOST line for roamers
2002-10-22 03:25:06 tjj [Reply | View]
...lead to sending remote mails successfully.
Well, I tried substituting mail.mindspring.com with the corporate mail server's ip and my home ISP's smtp server, separated by a "," (comma). Sendmail tried the one, didn't succeed and then tried the other and poof it got through. However, I still cannot receive mail from outside addressed to my local account....
-
Error creating SSL cert
2002-10-19 19:16:51 anonymous2 [Reply | View]
After I enter the information asked while creating an SSL key, I get the following messages:
/etc/sslcerts/: Is a directory
2783:error:02001015:system library:fopen:Is a directory:bss_file.c:245:fopen('/etc/sslcerts/','w')
2783:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:247:
Anyone know what I'm doing wrong?
-
Rejects password
2002-10-18 20:10:31 anonymous2 [Reply | View]
I entered my login account name and password (triple checked it) in the mail app as login and password, but it never accepts my password. Just to make clear, the password in the mail app should be the same as my login password to OS X, right?
thanks for a great article!!
John Selvia
ivanjs@lyzrd.com (if it will accept my password!)
otherwise
ivanjs@dnaco.net
-
can't connect to imap server
2002-10-14 13:58:02 anonymous2 [Reply | View]
I'm running sendmail on OS X server 10.2.1, i followed the instructions for setting up imapd. I have no problem sending mail, but i absolutely cannot connect to the imap server, when i do connect to the pop server, i never receive any mail. I figure i don't receive mail because i haven't told my registrar to point my domains to my dns yet. Still, i can't explain my inability to even connect to the imap server. I attempt to connect with SSL. Your articles have been immensely helpful. -
can't connect to imap server
2003-03-25 10:48:42 anonymous2 [Reply | View]
How are you sending mail? I followed the instructions to the letter, everything seems to be set up, I receive email, which I read using mail from the Terminal, but how do I send email? When I try to configure the Mail.app, I have no idea what the name of my incoming or outgoing mail server is. How would we know? The article doesn't tell us. Can you give me some idea of what you are using because, being an absolute beginning when it comes to unix, I am completely in the dark.
-
proftpd with mysql
2002-10-13 08:56:58 anonymous2 [Reply | View]
I have installed proftpd with mysql suport. the purpose of doing thie is being able to manange ftp users through php and mysql. for now proftpd only reconizes the users as defined within OSX.
-
imapd not compiling
2002-10-12 22:25:33 anonymous2 [Reply | View]
Duncan,
I've followed your directions as closely as possible and everyhting has worked up until now.
When trying to compile imapd, it seems to compile normally until the end, when the following appears:
echo osx > OSTYPE
touch rebuild
sh -c 'rm -rf rebuild || true'
Building bundled tools...
cd mtest;make
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o mtest.o mtest.c
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mtest mtest.o ../c-client/c-client.a `cat ../c-client/LDFLAGS`
/usr/bin/ld: /usr/lib/libssl.dylib load command 9 unknown cmd field
/usr/bin/ld: /usr/lib/libcrypto.dylib load command 8 unknown cmd field
/usr/bin/ld: /usr/lib/libSystem.dylib load command 9 unknown cmd field
make[2]: *** [mtest] Error 1
make[1]: *** [bundled] Error 2
make: *** [osx] Error 2
I've installed the developer tools and even the SSL headers mentioned in another article. I'm running 10.2 and hope you can help. -
imapd not compiling
2003-05-17 22:09:57 anonymous2 [Reply | View]
I get the exact same problems on 10.2.6. If anyone figures out a fix, let me know.
-areichman@mac.com -
imapd not compiling
2002-11-17 17:39:42 anonymous2 [Reply | View]
I'm getting the exact same errors. I'm using IMAP RC10, and have updated to 10.2.2. I have sendmail running, but can't get IMAP to compile. I'm also writing daily complaints to Apple for making me set up an IMAP server just to get Mail.app to read my account.
Tom Riley
-
Debugging mailserver
2002-10-12 21:18:35 anonymous2 [Reply | View]
After following the article closely and rechecking all of my steps, I cannot get mail to open my new mailbox.
in mail I get the message:
The server error encountered was: Mail was unable to connect to server “dyn-mcb-169-235.dyn.columbia.edu” using SSL on port 993. Verify that this server supports SSL and that your account settings are correct.
also when I attempt to test via telnet as described earlier in the article, the following error is thrown:
[dyn-mcb-169-235:~] feste% telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 dyn-mcb-169-235.dyn.columbia.edu ESMTP Sendmail 8.12.2/8.12.2; Sun, 13 Oct 2002 00:08:58 -0400 (EDT)
if you can help me make sense of this, it would be greatly appreciated
-Jason -
Debugging mailserver
2003-08-26 20:16:16 anonymous2 [Reply | View]
I'm having the same hangup. (mac os x v.10.2.6) Sendmail is running, and I've executed the "chmod g-w / /Users" command, but when I try to telnet "localhost 25" I get this response:
[gfowler:~] gabrielf% telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 gfowler.local ESMTP Sendmail 8.12.9/8.10.2; Tue, 26 Aug 2003 20:06:27 -0700 (PDT)
What's the problem? In my limited understanding, telnet is trying to establish a connection to my own machine through port 25, the default mail port, but can't do it through 'localhost', it tries '127.0.0.1', the IP address it knows itself by, and then connects to 'localhost'. But this response doesn't match the one in the article, so I'm unsure how to proceed.
PLEASE CLUE ME IN!!!!
Thanks.
bishlabadoo@earthlink.net
-
Squirrelmail and imap from this tutorial
2002-10-04 21:01:24 anonymous2 [Reply | View]
I've just managed to get this running - the problem is that the SSLTYPE=nopwd flag disables plain text logins unless you are using SSL.
Download the latest source (I used RC7) and build again using SSLTYPE=unix - it will give you a security warning, but plain text logins aren't too much of a risk if you're just using a local server.
Uncomment the 'imap' line in your inetd.conf file (in addition to the imaps line added in this article), restart inetd and you should have an imap server that allows password logins in both SSL and non-SSL mode. Squirrelmail should be working at this point.
Sam
-
Setup same username at different account...
2002-10-02 16:24:33 anonymous2 [Reply | View]
Excellent guide duncan!
It worked at the first try...
Now I need to get webmail working aswell!
Anyone got that working?
Also, lets say I host 2 domains,
a.com, and b.com, and both those domains should have a "webmaster" account, but they should belong to 2 separate guys.
Right now the user "webmaster" get all the mail from all the hosts on the machine.
-
Squirrelmail and imap from this tutorial
2002-09-25 08:08:38 anonymous2 [Reply | View]
I installed iMap folowing this turorial, adn would like to be able to access my mail via browser when Im out and about.
SquirrelMail, wich seems to be the best, cant connect to the imap server. It says wrong user/password.
I have tried anything I could think of but nothing helps. It might be because SM doesnt use an encrypted connection to the server, but then again I really dont know.
Anybody know how to setup imap to allow squirrelmail to check my email?
thankx
-
PHP/MySQL installation error?
2002-09-23 05:47:38 seacube [Reply | View]
I am looking for help installing PHP on 10.2.
When I run './configure \' as outlined by Christopher Tucker at <http://www.resexcellence.com/php_11-13/>, the last 2 lines reads,
'checking for MySQL support... yes
configure: error: Cannot find header files under /usr/local/mysq-3.23.43' What does this mean?
PHP does not appear to become active. I have tried this installation under Mac OS 10.1.5 and 10.2 with the same results.
So far inquires to Christopher Tucker have not been returned.
TIA
-
e-mail delivery delay
2002-09-23 00:59:24 daesan [Reply | View]
I followed your directions and everything works well except that e-mails sent to my newly set-up e-mail address are delayed up to 1 hour and 30 minutes to be delivered. It's a bit odd because sometimes e-mails get delivered right away, but more often they get delayed. I'm using Jaguar and fixed ip address.
btw, thanks for the great article!
-
10.2.1 no go
2002-09-22 17:18:41 bostonmacosx [Reply | View]
I followed the directions however when I check process viewer after rebooting there is no process running. I can start it manually by running and the it times out after a bit and closes.
Do I need to add this to the netinfo database?
thanks
BostonMACOSX
-
Can't get pass pg.3 hostconfig file different!
2002-09-20 22:52:26 anonymous2 [Reply | View]
This is my hostconfig file after setting both apache and remote login on:
APPLETALK=-NO-
CUPS=-YES-
DNSSERVER=-NO-
IPV6=-YES-
SMBSERVER=-NO-
WEBSERVER=-YES-
AFPSERVER=-NO-
APPLETALK_HOSTNAME=*a really long stream of digits*
SSHSERVER=-YES-
There is no mailserver listed?
-
webserver subdirs
2002-09-20 04:24:16 anonymous2 [Reply | View]
Hi, I have the whole server up and running (web and imap), but have a problem with the webserver.
If I access the root dir (http://www.mydomain.com/) it works fine, but when I try to load a subdir (http://www.mydomain.com/test/ for instance), it starts looking for the local domain robobok.local (where robobok is my computername). Where can i change this into the right name?
Thanks a lot,
Stijn
-
can't get new mail in IMAP account
2002-09-19 09:46:28 anonymous2 [Reply | View]
I set it all up, and all seemed to go right. The IMAP version I installed was imap-2002.RC6. Then I did a test to see if I could receive mail. I sent an email from my mac.com email account to my newly created IMAP email. It was sent fine from mac.com (I didn't get any "returned mail" error saying the mail wan not deliverable) but when I use mail.app to check my IMAP account for new mail, I don't see the message sent from the mac.com account. Or from any of the other email accounts I've since tried.
Can anyone explain why?
Note that I am able to send mail from the IMAP account. Also, I'm using no-ip.com instead of DynDNS.org (if that makes a difference).
-
Apple Laptop Keyboards Unsuitable for Unix Users
2002-09-18 02:21:34 anonymous2 [Reply | View]
Apple laptops are effectively unusable for unix users.
I am a long-time Unix user. That means I need to have the Ctrl key to the left of the A key. This is a genuine need, not merely a want; it is based upon ergonomics. The Ctrl key is heavily used in unix, and it must be easily accessable. It cannot be off in the lower left corner of the keyboard where it is difficult to get at, and where it distorts the position of your left hand such that you can't easily type other keys while holding the Ctrl key down.
Apple desktop keyboards are now all USB. They are all OK. The CapsLock key can be re-mapped into a Ctrl key.
Unfortunately, even in this modern age, all Apple laptops have built-in ADB keyboards. The ADB keyboard is broken-by-design. It is, in general, not possible to remap the CapsLock key into a Ctrl key.
There are some exceptions, but they are horrible kludges. They are
horrible kludges because the original design of the ADB keyboard was a horrible kludge. The correct solution would be for Apple to re-design their laptop motherboards to use built-in USB keyboards. This hasn't happened yet. If you run Linux, use Debian's solution. For Mac OS X users, uControl works. There are no solutions (that I know of) for either NetBSD or OpenBSD. Please note once again that the "solutions" above are in fact kludges, because of the original bad design of the ADB keyboard.
Apple is (currently) ignoring Unix users! This is not merely speculation on my part. In an on-going email exchange I am having with an Apple employee (whom I won't name) in their marketing department, the Apple marketing person directly stated to me that Apple was catering to their historic Mac customers, and is purposely ignoring the Unix market. He also claimed that Apple would soon start paying more attention to the Unix market. I won't hold my breath. Apple has been ignoring Unix users for more than 10 years. I expect that trend to continue. (Also note that my Apple contact indicated that Macs would never ship with a 3-button mouse, even though Apple intended to port almost all X-window software and deliver it either on a CD/DVD or installed directly on each Mac's hard drive. How Unix friendly is a 1-button mouse with X programs that often require 3 buttons?)
Apple has now lost two opportunities to sell me hardware. I really wanted an Apple laptop for their superior battery life, and for the PowerPC with Altivec CPU. (The Altivec is vastly superior to the x86 line for DSP.) Because I can't live with the broken-by-design built-in ADB keyboard in all Apple laptops, Sony and IBM sold me laptops instead. If Apple fixes this problem, they will sell me a PowerBook next year; if they don't, I'll still be running OpenBSD on x86 hardware, and wishing I could use a Mac.
-
Cant point the domain name @ my server
2002-09-13 20:41:10 anonymous2 [Reply | View]
I registered www.apt12201.net
I have a web server at 66.135.162.246
It wont let me direct the dame to the ip adress... it just has a place to enter my DNS server names... but im not running a dns server... and my ISP wont ad me to their list. (they say that is the registers job)
Is their anyway to link my name to my ip adress??
Do i have to run my own dns server?
If so, where is the DNS table, so i can add my name...
Any info at all will be helpfull
Thanks
-
Entourage is complaining
2002-09-12 11:20:57 j4e [Reply | View]
Great article! Getting Mail.app to get mail from my Imap server is very easy. However, i am having trouble getting Entourage to play nice. Every time it checks my Imap account, it caomplains that it is "Unable to establish a secure connection to "(my name is here)". There is a problem with the security sertificate from that server. Use Internet Explorer to install the correct certificate."
any idea what that's about?
On a side note - what happens if somebody trys to send me mail, and my server is down?
Thanks!!
jeffrey
-
multiple imap users
2002-09-10 11:23:41 anonymous2 [Reply | View]
i want to have multiple imap user accounts under the one os x user... I don't need them for anything else but this. do i have to create individual user accounts for each imap account i want? can i minimize disk usage? otherwise the general direction of this article was very helpful, but the last page seemed to lack details on what was going on. i was left thinking, "how do i configure this? how do create a mailbox?" other than that great! -
multiple imap users
2002-09-11 13:54:27 James Duncan Davidson |
[Reply | View]
UW Imap, out of the box, is geared to being a minimal setup solution. Therefore, its view of "one user, one mailbox" is about as good as it gets--at least within the scope of this size of article.
-
Alternatives to Sendmail
2002-09-09 21:03:19 anonymous2 [Reply | View]
People might want to consider alternatives to Sendmail, which many people feel is outdated and difficult.
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 -
Alternatives to Sendmail
2002-09-11 13:56:21 James Duncan Davidson |
[Reply | View]
I was actually a big postfix fan for a while and have used it successfully under OS X for a while. But I've gone back to sendmail because it does what it does really well and has improved quite a bit over the years.
All mail servers have their issues. As far as my motivation for going with Sendmail for this article: well, its all about using what is built in to Mac OS X where possible.
-
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







you can add an entry to root's crontab.
% sudo sh
% export EDITOR=/usr/bin/pico
% crontab -e
after entering first sudo inline i get #25....
when do I enter the second sudo? and whats crontab.
sorry nub.