[Exim] Possible FAQ entry: SMTP-auth with courier-authdaemon

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Sven Geggus
Data:  
Para: exim-users
Temas novos: [Exim] FAQ entry: SMTP-auth with courier-authdaemon, the exim 4.14 solution
Asunto: [Exim] Possible FAQ entry: SMTP-auth with courier-authdaemon
Hi there,

I think that this is something which should probably be added to the FAQ,
since many People are using Courier IMAP in conjunction with the Exim-Mailer
to set up a complete email server solution.

Usually they don't want to use other Passwords for SMTP-auth than with
POP3/IMAP. Thus exim needs to use the Courier authdaemon for SMTP-auth.

This is the Solution for PLAIN and LOGIN authenticators which works for me
(Credits go to Brian Candler for pointing me to the right direction).

Probably a more elegant way to solve this Problem would be the use of
embedded perl, which would allow to remove the \n hack.

# This Authenticator is used by M$OE
# user "mail" needs to be able to access
# /var/run/courier/authdaemon/socket
login:
driver = plaintext
    public_name = LOGIN
    server_prompts = Username:: : Password::
    server_condition = \
    ${if eq {${readsocket{/var/run/courier/authdaemon/socket}{AUTH 76\n${length_76:exim\nlogin\n$1\n$2\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n}}}}{FAIL\n} {no}{yes}}
    server_set_id = $1


# This Authenticator is used by Netscape/Mozilla
# user "mail" needs to be able to access
# /var/run/courier/authdaemon/socket
plain:
  driver = plaintext
  public_name = PLAIN
  server_condition = \
    ${if eq {${readsocket{/var/run/courier/authdaemon/socket}{AUTH 76\n${length_76:exim\nlogin\n$2\n$3\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n}}}}{FAIL\n} {no}{yes}}
  server_set_id = $2


--
"In the land of the brave and the free, we defend our freedom
with the GNU GPL" (Richard M. Stallman on www.gnu.org)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web