MTA: Exim

SMTP authentication with Dovecot

by ross at 06:27:27 on February 25, 2012

Install & start Dovecot.

Prepare Dovecot

Edit conf.d/10-auth.conf:

auth_mechanisms = plain login

Edit conf.d/10-master.conf, modify «service auth»:

service auth {
  unix_listener auth-userdb {
  }

  user = root

  unix_listener auth-client {
    mode = 0600
    user = mailnull
  }

Setup Exim

Add after begin authenticators:

dovecot_login:
  driver = dovecot
  public_name = LOGIN
  server_socket = /var/run/dovecot/auth-client
  server_set_id = $auth1

dovecot_plain:
  driver = dovecot
  public_name = PLAIN
  server_socket = /var/run/dovecot/auth-client
  server_set_id = $auth1

Restart daemons:

# service dovecot restart
# service exim restart

 

Comments