After spending ages working on the various setups related to Postfix and Dovecot, I just about have it into a neat tutorial, on how to set it up on Yosemite and be able to manage your own mail server, without having to install Apple’s Server. Which is nice, but has a lot of things the individual user will have no need of.
However, in the case where you may be hosting a number of Virtual Domains, and you need mail services for them, then it’s nice to be able to handle it On Site.
Postfix comes installed on Yosemite. So don’t go installing from macports or downloading sources until you know what you are doing. It could probably use updating, but leave it for now. It’s pretty straight forward, so should update naturally as Yosemite is updated. I hope? If you want the bleeding edge stuff – caveat utility… I haven’t put the download links for Postfix here, because I don’t want you to accidentally go and grab it by mistake.
It’s easy to find out your current version with:
$ postconf -d mail_version
gives you …
mail_version = 2.11.0 at least on my GM3 version of Yosemite. Be aware that updates to Yosemite may well wipe out all your hard work.
Handy Postfix Wikis…
Postfix main.cf configuration
Virtual Mail Server
Dovecot does NOT come installed on Yosemite. And if you want IMAP mailboxes, which most Apple mail clients seem to want by default, then you will need it. Download it here. If you are doing Virtual Mail Boxes for Web Hosting and so on, you will need it.
Stable releases. Try and get the latest one…. or at least a late one. Currently – macports is about 1.7. Way old… don’t use it.
Download v2.2.13 sources. [PGP signature] [changes].
and READ the Wiki for Dovecot.. IMPORTANT. Everything yo need to know about Dovecot is here.
And … In which case you will also need – because the doveconf mail and install won’t install unless you have it.
libiconv – which also does not come ready installed. Look at it here for downloading.
Expand it into it’s own directory in Downloads and do a
sudo make install
….. then go back to Dovecot, and do the same.
sudo make install
Now, you will want to know where everything is right.
$sudo find / -name “*dovecot*” -print
Will list out lots of stuff.
To start them up – you will need LaunchDaemons … I’ll do them later.
enough for now.