Dovecot 2.0 install

| 4 TrackBacks

Ran into some minor hurdles in upgrading to Dovecot 2.0. Definitely need to read the docs on upgrading a bit better next time... But after some work, I have it running here.

Found an undocumented configuration option called service(dns_client), this was logged when it was trying to use the user 'dovecot' instead of the OS X user '_dovecot', which I had already listed in my config for some other services. Simple fix here, I took out the lines specifying 'user = _dovecot' for my listed services, and instead used this line at the top of my config file:

default_internal_user = _dovecot

Second issue that I ran into was the default install looks for a user called dovenull. This user didn't yet exist on my system, so I needed to create it (as opposed to defining a different existing user for this function, which I didn't want to do). My concern is that when Dovecot 2 is rolled into OS X, a new dovenull user will be created, or more likely, _dovenull. So, I can create the user now, and have it later overwritten, and who knows what issues might arise, or I create this user with a different name to avoid the whole issue.

Creating unix level users with OS X is a bit more involved than other systems, but once you read up on the dscl command, you can find some quick examples of this. The trickiest part is picking an appropriate UniqueID for the user.

Here's a handy command for listing all of the used UniqueIDs:
sudo dscl . -list /Users UniqueID | awk '{print $2}' | sort

We'll use a similar command to get a list of all Group IDs that are used:
dscl . -readall /Groups | grep PrimaryGroupID | awk '{print $2}' | sort

It seems best to avoid the range 0-99, and the low 200's are slowly filling up for UserIDs. There's nothing from 100-199, and OS X starts creating new users (the ones used by the Finder) at 501. Why 100-199 was left blank, I don't know, and who knows what other 200 range codes might be used in a future OS update. For the Group IDs, 0-100 were full up, again the break from 101-199, starting again with the low 200's, then starting with the 400's. So, throwing caution to the wind, I'll use 301 for my new user and the group associated with it, created with the following commands:

sudo dscl . -create /Users/_dovenull
sudo dscl . -create /Users/_dovenull UniqueID 301
sudo dscl . -create /Users/_dovenull PrimaryGroupID 301
sudo dscl . -create /Users/_dovenull UserShell /usr/bin/false
sudo dscl . -create /Users/_dovenull RealName "Dovenull"
sudo dscl . -create /Users/_dovenull NFSHomeDirectory /var/empty
sudo dscl . -append /Users/_dovenull RecordName _dovenull

sudo dscl . -create /Groups/_dovenull
sudo dscl . -create /Groups/_dovenull PrimaryGroupID 301
sudo dscl . -append /Groups/_dovenull RecordName dovenull

I set the UserShell above so that the user has no shell access, and set NFSHomeDirectory so that there is no home directory.

Once I had the _dovenull user created, I was successfully able to get dovecot running, so far, no issues.

4 TrackBacks

TrackBack URL:

homepage from homepage on July 22, 2013 9:54 AM

Wright This Way Read More

frankrijk from frankrijk on July 22, 2013 4:33 PM

Wright This Way Read More

Read the Full Report from Read the Full Report on December 14, 2014 10:00 PM

Wright This Way Read More

p1705 from Wholesale football jerseys free shipping on July 17, 2019 11:49 AM

Dovecot 2.0 install - Wright This Way Read More

July 2019

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

About this Entry

This page contains a single entry by Jim published on August 20, 2010 10:00 PM.

Otterbox Defender case for iPhone 4 was the previous entry in this blog.

MovableType 5 installed is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 5.04