Seek tips on setting up OpenBSD IMAP and IRC server
I am looking for some tips on setting up an OpenBSD machine as an IMAP server and possibly as an IRC server. Specifically, I am looking for links to howto documents that experienced users here think are good and also for some idea of how much storage space I would probably require for an IMAP server supporting three users with five or six email accounts total. Pointers to additional considerations I should make would also be welcome.
I have a home network with several machines on it, and recently I purchased an Apple MacBook. I use a wireless connection to the network to connnect with the MacBook. Up to now, I have been reading my email on three separate accounts that I have using thunderbird on my main Linux (slackware -current) desktop. Now that I have the laptop, I would like to be able to read mail from all three accounts on both the desktop and the laptop without running into the "Oh, that email's on the other machine" problem. Right now, my plan for accomplishing this is to set up my OpenBSD machine (currently running 3.8; soon to be running 4.0) as an IMAP server. I figure that way, I can read mail on the desktop or on the laptop, since both would be reading from the same account. As I see it now, the IMAP server would use fetchmail to download email from the separate accounts and then, after spam filtering and virus scanning, sort it into the appropriate mail boxes (either mbox or maildir format) which could be read from either computer without necessarily closing out the mail client on one machine before launching the client on the other machine. Eventually, I would like to migrate my wife's and daughter's email to the IMAP server as well. Based on the initial reading I have done, I am considering dovecot as the IMAP server and squirrelmail as a web interface to use to read my email when I am not at home. But, I am open to suggestions of other applications. The IMAP server will sit behind a Netgear websafe router and outside of the rest of the network, which will be protected by a firewall machine running OpenBSD, IPCOP or Linux (a slimmed-down slackware -current install) on a VIA EPIA-M 800MHz box with 512MB RAM that didn't quite live up to my expectations as a personal video recorder but which will probably make a fine firewall. In the future, I may add an IRC server to the OpenBSD server to allow my daughter and her school friends to chat. Thank you in advance for your advice and assistance. |
I found that dovecot works quite well as an IMAP daemon on OpenBSD. It's in the Ports tree. The config file is copiously documented, so it was no problem configuring it. Oh yeah, I installed it with SASL2 authentication support. SASL actually took quite a bit more time to setup than dovecot did. There some good HOW-TOs out there for SASL. I think I followed one on postfix.org (since that's the MTA that I use).
As for IRC server, OpenBSD has a few in the Ports tree. BTW almost everything in Ports can be installed as a pre-compiled binary package as well. |
Thanks for the quick response.
I've downloaded dovecot, and I'll start going through its configuration file. Your post points up something I hadn't considered though, the secure connection bit. I'll look around for some info on SASL2. |
Quote:
Quote:
|
Quote:
It is clear that I am going to need to do a good bit of reading. There is the question of getting the emails into dovecot in the first place. My original plan was to fetch the mail with fetchmail, but it will probably need to be configured to pass what it fetches to dovecot, unless dovecot has that capability built in. I will also need to figure out how to work the spam filtering and virus scanning in. In the meantime, I've found this site, http://www.pantz.org/os/openbsd/post...-dovecot.shtml, which appears to be pretty useful. And, I have found several magazines from the past few months that cover email set up. |
Quote:
If you just got a tarball, unzipped it and did the usual ./configure && make && make install game you might end up with it installed in a different place than executables and/or libraries are supposed to go, and the config file would be generic and possibly not compatible or ideal for your OS. If some software is in the Ports tree, that means it should compile, install, and run just fine on your system. If it doesn't, you report it to the maintainer (their e-mail address is listed in the directory for that Port) and it should be fixed. If some software is not in the Ports tree, that generally means either it is not popular/useful enough to merit inclusion, or there are serious security or license issues with it that prevent inclusion. Summary: Install with pkg_add when you can, if that doesn't have the right flavors, use Ports and specify your flavors when you build it. If it isn't in Ports, think long and hard about whether you really want to use that software, or if perhaps some other software that is in the Ports tree would work just as well. |
All times are GMT -5. The time now is 12:34 PM. |