OS X Server – Dovecot

Here are two links for managing  Dovecot on an OS X Server.

OS X Server – Dovecot
By James Reynolds
October 15, 2014


OS X Lion & Mail Quotas
October 20, 2011


Apple Releases OS X Bash Update 1.0

Apple has released security update OS X Bash Update 1.0.

The  patch is available as three separate downloads for OS X Mavericks 10.9.5, OS X Mountain Lion, and OS X Lion. A  patch for OS X Yosemite Public Beta and Developer Preview releases are not yet available.

The download is very small, around 3.5MB.

More information at OS X Daily: http://osxdaily.com/2014/09/29/os-x-bash-update-1-0-shellshock-patch/


Fix a Failing Open Directory

Applicable to OS X Server 10.7.5.

Fixing a Failing Open Directory

When a server running hangs and the machine is power cycled the Open Directory sometimes fails to restart. System reports (database “cn=authdata” cannot be opened, err 12).

To repair the Open Directory authdata database:

$ sudo launchctl unload /System/Library/LaunchDaemons/org.openldap.slapd.plist
$ sudo db_recover -h /var/db/openldap/authdata/

In Tool mode slapd  outputs:

$ sudo /usr/libexec/slapd -Tt
bdb_db_open: database "dc=nl2,dc=probackup,dc=nl": unclean shutdown detected; attempting recovery.
bdb_db_open: database "dc=nl2,dc=probackup,dc=nl": recovery skipped in read-only mode. Run manual recovery if errors are encountered.
bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
config file testing succeeded

Next, turn Open Directory back on:

$ sudo launchctl load /System/Library/LaunchDaemons/org.openldap.slapd.plist

Finally, issue another restart:

$ sudo reboot

Open Directory is back up and running again.

Fixing Server Alerts when it fails

Applicable to OS X Server 10.7.5.

The Server Alerts logs can get corrupted and when it does Server.app will not be able to load it. CPU usage will increase and use a lot of the available resources. The processing ball  spins forever or sometimes ends with an “Error Reading” alert.

Server Alerts are logged by emond directly to the ASL events database, and are stored in /var/log/eventmonitor . Deleting the log will clear the problem.


sudo rm -rf /var/log/eventmonitor/*

to remove the events ASL database, then quit and re-open Server.app.

A new events database is  recreated after deleting the contents of the eventmonitor folder and opening Server.app again.  Server Alerts  functions normally and logging resumes after clearing  the existing database files.

Mountain Lion Server … changes

Who moved my cheese?

There are a number of changes that may make OS X Server admins work a little harder to make the transition.


  • dhcp
  • ipfilter
  • notification
  • pcast
  • pcastlibrary
  • xgrid
  • xsan

New or Restored

  • ftp
  • san

Here are some links to more information about these changes:

Where Did All My Server Commands Go In Mountain Lion Server?

10.8 Mountain Lion Server: What Changed?

Changes in Mountain Lion Server