This documentation is for Dovecot v1.x, see wiki2 for v2.x documentation.
Differences between revisions 2 and 6 (spanning 4 versions)
Revision 2 as of 2006-04-25 15:16:14
Size: 1528
Comment:
Revision 6 as of 2006-11-08 11:20:47
Size: 2517
Editor: HeikoRupp
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
 * Users: 2   * Users: 2
Line 10: Line 10:
Line 11: Line 12:
Line 14: Line 14:
To create the dovecot user, use Applications/Utilities/NetInfo Manager and in the users section, duplicate one of the existing users (I chose to copy cyrusimap, but any daemon should be fine). You can also add the user from the commandline like this: NetInfo needs to contain a dovecot user, although it apparently is created automatically by release candidates of Dovecot. To create the dovecot user, use Applications/Utilities/NetInfo Manager and in the users section, duplicate one of the existing users (I chose to copy cyrusimap, but any daemon should be fine). You can also add the user from the commandline like this:
Line 17: Line 17:
sudo niutil -create / /users/dovecot             
sudo niutil -createprop / /users/dovecot uid 300   
sudo niutil -create / /users/dovecot
sudo niutil -createprop / /users/dovecot uid 300
Line 26: Line 26:

Use pam for authentication. Create the file /etc/pam.d/dovecot as follows:
Use pam for authentication. Create the file /etc/pam.d/dovecot as follows (you can copy over the file 'login' in the same directory):
Line 39: Line 38:
Use launchd to start the server at boot time. Create /Library/LaunchDaemons/dovecot.plist as follows:

{{{
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
        "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>org.dovecot</string>
        <key>ProgramArguments</key>
        <array>
                <string>/usr/local/sbin/dovecot</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
</dict>
</plist>
}}}
To start the server without rebooting, {{{sudo launchctl load /Library/LaunchDaemons/dovecot.plist}}}

To fix the access problem to {{{/var/mail}}}, you may need to set {{{mail_extra_groups = mail }}} in {{{dovecot.conf}}}, as described in VarMailDotLock

Small, simple setup.

  • Server: MacBook Pro

  • OS: Tiger 10.4.6
  • RAM: 1024 Mb
  • Users: 2
  • Auth: passwd/pam
  • Maildir size: 1Gb
  • Dovecot version: 1.0 beta7
  • Client Software: Mac Mail

Requires [http://developer.apple.com/tools/xcode/ Xcode] to build from source, Darwin Ports isn't required.

NetInfo needs to contain a dovecot user, although it apparently is created automatically by release candidates of Dovecot. To create the dovecot user, use Applications/Utilities/NetInfo Manager and in the users section, duplicate one of the existing users (I chose to copy cyrusimap, but any daemon should be fine). You can also add the user from the commandline like this:

sudo niutil -create / /users/dovecot
sudo niutil -createprop / /users/dovecot uid 300
sudo niutil -createprop / /users/dovecot name dovecot
sudo niutil -createprop / /users/dovecot passwd '*'
sudo niutil -createprop / /users/dovecot _writers_passwd dovecot
sudo niutil -createprop / /users/dovecot shell /usr/bin/false
sudo niutil -createprop / /users/dovecot expire 0
sudo niutil -createprop / /users/dovecot change 0

Use pam for authentication. Create the file /etc/pam.d/dovecot as follows (you can copy over the file 'login' in the same directory):

# dovecot: auth account password session
auth       required       pam_nologin.so
auth       sufficient     pam_securityserver.so
auth       sufficient     pam_unix.so
auth       required       pam_deny.so
account    required       pam_permit.so
password   required       pam_deny.so
session    required       pam_uwtmp.so

Use launchd to start the server at boot time. Create /Library/LaunchDaemons/dovecot.plist as follows:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
        "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>org.dovecot</string>
        <key>ProgramArguments</key>
        <array>
                <string>/usr/local/sbin/dovecot</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
</dict>
</plist>

To start the server without rebooting, sudo launchctl load /Library/LaunchDaemons/dovecot.plist

To fix the access problem to /var/mail, you may need to set mail_extra_groups = mail  in dovecot.conf, as described in VarMailDotLock

Enabling SSL worked as described and didn't require anything different on OS X.

None: DovecotServerInstallations/MacOSX/10.4.6/2Users (last edited 2009-03-15 22:35:21 by localhost)