[Exim] FAQ entry: SMTP-auth with courier-authdaemon, the exi…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Sven Geggus
Datum:  
To: exim-users
Alte Treads: [Exim] Possible FAQ entry: SMTP-auth with courier-authdaemon
Betreff: [Exim] FAQ entry: SMTP-auth with courier-authdaemon, the exim 4.14 solution
Hi there,

some time ago I posted a solution for SMTP authentication against
courier-authdaemon.

With exim 4.14 this is now possible to do this in a much more elegant way
using the new strlen Operator.

So this is how the authentikators now look like:

# 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 ${strlen:exim\nlogin\n$1\n$2\n}\nexim\nlogin\n$1\n$2\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 ${strlen:exim\nlogin\n$2\n$3\n}\nexim\nlogin\n$2\n$3\n}}}{FAIL\n} {no}{yes}}
  server_set_id = $2



--
"Even though I once ported Midnight Commander for NT, I now think,
that giving OpenSource support for an OS that is commercial is nonsense"
(Juan Grigera on slashdot.org)
/me is giggls@ircnet, http://sven.gegg.us/ on the Web