[Dovecot] exim4 dovecot sasl problem
hi!
i'm trying to do smtp authentication using dovecot and exim4 by following this guide http://wiki.dovecot.org/HowTo/EximAndDovecotSASL.
for the exim4 part, i got an
authenticator dovecot: cannot find authenticator driver "dovecot" error after i entered the codes in /etc/exim4/exim4.conf.template and reloaded exim4 with the update-exim4.conf command.
i'm running debian lenny.
here's the authentication section of exim4.conf.template:
begin authenticators
cram_md5:
driver = cram_md5
public_name = CRAM-MD5
client_name = ${extract{1}{:}{${lookup{$ host}nwildlsearch{CONFDIR/passwd.client}{$value}fail}}} client_secret = ${extract{2}{:}{${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$value}fail}}}
PASSWDLINE=${sg{\
${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$value}fail}
}
{\\N[\\^]\\N}
{^^}
}
plain: driver = plaintext public_name = PLAIN
.ifndef AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS
client_send = "<; ${if !eq{$tls_cipher}{}
{^${extract{1}{:}{PASSWDLINE}}
^${sg{PASSWDLINE}{\\N([^:]+:)(.*)\\N}{\\$2}}
}fail}"
.else
client_send = "<; ^${extract{1}{:}{PASSWDLINE}}
^${sg{PASSWDLINE}{\\N([^:]+:)(.*)\\N}{\\$2}}"
.endif
login: driver = plaintext public_name = LOGIN .ifndef AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS
# Return empty string if not non-TLS AND looking up $host in passwd-file
# yields a non-empty string; fail otherwise.
client_send = "<; ${if and{
{!eq{$tls_cipher}{}}\
{!eq{PASSWDLINE}{}}
}
{}fail}
; ${extract{1}{::}{PASSWDLINE}}
; ${sg{PASSWDLINE}{\\N([^:]+:)(.*)\\N}{\\$2}}"
.else
# Return empty string if looking up $host in passwd-file yields a
# non-empty string; fail otherwise.
client_send = "<; ${if !eq{PASSWDLINE}{}
{}fail}
; ${extract{1}{::}{PASSWDLINE}}\
; ${sg{PASSWDLINE}{\\N([^:]+:)(.*)\\N}{\\$2}}" .endif
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
How can I fight insomnia? Discover how on Yahoo! Answers. http://ph.answers.yahoo.com
On Fri, 17 Jul 2009 01:36:32 -0700 (PDT) Tristan Rex Santiago pgtr3s@yahoo.com wrote:
hi!
i'm trying to do smtp authentication using dovecot and exim4 by following this guide http://wiki.dovecot.org/HowTo/EximAndDovecotSASL.
for the exim4 part, i got an
authenticator dovecot: cannot find authenticator driver "dovecot" error after i entered the codes in /etc/exim4/exim4.conf.template and reloaded exim4 with the update-exim4.conf command.
i'm running debian lenny.
run exim -bV , search for string "Authenticators:" and check if "dovecot" is present there. If not, you need to recompile you exim with dovecot-sasl support.
here's the authentication section of exim4.conf.template:
begin authenticators
cram_md5:
driver = cram_md5
public_name = CRAM-MD5
client_name = ${extract{1}{:}{${lookup{$ host}nwildlsearch{CONFDIR/passwd.client}{$value}fail}}} client_secret = ${extract{2}{:}{${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$value}fail}}}
PASSWDLINE=${sg{\
${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$value}fail}
}
{\\N[\\^]\\N}
{^^}
}plain: driver = plaintext public_name = PLAIN
.ifndef AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS client_send = "<; ${if !eq{$tls_cipher}{}
{^${extract{1}{:}{PASSWDLINE}}
^${sg{PASSWDLINE}{\\N([^:]+:)(.*)\\N}{\\$2}}
}fail}".else client_send = "<; ^${extract{1}{:}{PASSWDLINE}}
^${sg{PASSWDLINE}{\\N([^:]+:)(.*)\\N}{\\$2}}" .endiflogin: driver = plaintext public_name = LOGIN .ifndef AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS
# Return empty string if not non-TLS AND looking up $host in passwd-file # yields a non-empty string; fail otherwise. client_send = "<; ${if and{
{!eq{$tls_cipher}{}}\{!eq{PASSWDLINE}{}}
}
{}fail}
; ${extract{1}{::}{PASSWDLINE}}
; ${sg{PASSWDLINE}{\\N([^:]+:)(.*)\\N}{\\$2}}".else # Return empty string if looking up $host in passwd-file yields a # non-empty string; fail otherwise. client_send = "<; ${if !eq{PASSWDLINE}{}
{}fail}
; ${extract{1}{::}{PASSWDLINE}}\; ${sg{PASSWDLINE}{\\N([^:]+:)(.*)\\N}{\\$2}}" .endif
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
How can I fight insomnia? Discover how on Yahoo! Answers. http://ph.answers.yahoo.com
participants (2)
-
Nikita Koshikov
-
Tristan Rex Santiago