There is Always Someone: The Friend with Apple Mail Server Issues
A while a go a friend asked me if I would help him set up his office with an Open Directory system, and integrate everything through his Xserve. Â It sounded like a simple enough task, as I have done this numerous times in the classroom and for our lab at work. Â Boy was I wrong.Â The setup took several hours longer than I would have expected. Â He already had the infrastructure, so it should have been simple to set up the server and bind all the clients to the new Directory and establish Kerberos authentication. Â The problem ended up being the need to run virtual machines, each of which tried to run remotely on the server instead of locally on the machine (because they were saved in the network home folder). Â So, I moved all the virtual machines to the local machines, which fixed that issue. Â Next, preferences within the home folders would get lost all the time. Â That it turned out was because the network home folders were taking up too much space, so I moved everyone's iTunes libraries to the local machine to free up space. Â I also had trouble with some internal networking running really slow on occasion (I suspect it's a problem with the switch, but he can't replace it), so in order to deal with the flaky network and network home folders, I created mobile accounts on every machine. Â If the network goes down, they can authenticate locally and still get what work can be done in an unplugged world. Â Finally, the mail issue. Â His office was using Zimbra mail, which was a neat setup, but his version couldn't be Kerberized. Â That, and he wanted to migrate to Apple's Mail and Calendar server. Â So, I set up the mail server, and set up a script utilizing imapsync to transfer the mail from one server to another. Â Why? Â Because I couldn't find any documentation on how to move one Postfix database to another while making sure the content was safe and secure. Â Anyway, after many attempts (I don't mind pointing out at this point that imapsync is perhaps one of the most poorly documented open source project I've seen), success was made. Â Now all I needed to do was redirect the DNS from the router to the new server, and everything should be hunky-dory, right?The router was using an OpenBSD OS that was extremely limiting. Â It took for ever to get the blasted thing to migrate to the right IP's, and then it didn't support alias addressing in the DNS. Â There's probably a way to hack the DNS file manually, but I ran into another problem that was really bugging me: Â Starting the Mail service in Server Admin didn't actually start Postfix. Â That's right, it was running all the features of mail without the actual SMTP client to manage it. Â This blew my mind. Â A quick search and help from a friend that was Linux savvy indicated that this is a rare bug that happens, and all you have to do is run Postfix manually. Â Seems simple enough, but then you need to set it up to start when the system starts. Â Again, not too difficult, and easy to set up by adding it to the rc.local file (you can also write a launchd .plist file to handle it, but that's more complicated than the rc.local step, and I wanted to get this done as soon as possible).So now Postfix was working, but no one could send or receive mail. Â Huge problem, since that's the point of the mail service. Â So, again with the help of my friend, we managed to edit both the main.cf and the master.cf to the right specifications, all of which managed to get Mail working. Â Now, I would like to point out that never in my time as an Instructor have I seen these services fail this badly and completely. Â Part of the problem was the strain on his internal network and some bad ports in his router. Â Part of the problem was random issues that should never have existed, and yet do because life is never perfect. Â And finally, because I have been touting Apple as such as simple solution for a UNIX-based network, it just had to be a problem.Â Has anyone else out there had a similar problem where they have gone into a job with the knowledge that your solution would work, regardless of the platform, and seen it go horribly wrong? Â I'm just grateful my friend who asked this of me was so understanding and patient.