When I try to configure Dovecot together with Exim, I get an error while restarting Exim:
Exim configuration error in line 63 of /etc/exim/exim.conf: main option "dovecot_login" unknown
What am I doing wrong?
I'm assuming you were following the Debian HOWTO at https://wiki2.dovecot.org/HowTo/EximAndDovecotSASL, as I just did.
nowadays Debian uses exim4, and exim.conf doesn't exist, and would be ignored if it did.
dovecot_login is unknown is because exim4 isn't prepared for it: the keywords
begin authenticators must precede it in the configuration. if you're using the "split" configuration mode, as is typical for more complex installations, this could be accomplished by placing the file, perhaps named 05_dovecot, under /etc/exim4/conf.d/auth, which has the magic incantation in 00_exim4-config_header.
update-exim4.conf will process the files under conf.d/auth/ in lexical order, and it will ignore the pre-existing file "dovecot.conf" in that directory (because it ignores any file with a dot in it) and see 05_dovecot after 00_exim4-config_header.