MTA: Exim

SMTP authentication with Dovecot

by ross at 09:10:13 on April 27, 2017

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 {
  }

  group = mail

  unix_listener auth-client {
    mode = 0660
    user = mail
  }

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