[Vmail-discuss] smtp auth again

Manuel Giorgini Manuel Giorgini <giorgini at interlogica.net>
Wed, 9 Nov 2005 15:28:26 +0100


[2005-11-09 15:15:49] Litzler Mihaly,

LM> Would you so kind to send a working exim4 config example for plain text auth?

IIRC plain auth does not want clear text pw.



However, this is our RCPT acl (exim 4.43)

=====[cut here]========================================
check_recipient:
  accept  recipients =  postmaster@mydomain.tld
  require verify = recipient
  drop    message = Too many unknown users
          condition = ${if >{$rcpt_fail_count}{10}{yes}{no}}
  accept  domains = +local_domains

  accept  hosts = +local_hosts
  accept  hosts = +relay_hosts

  accept  hosts = 0.0.0.0/0
          message = authentication required
          authenticated = *

  deny    message = relay not permitted
=====[cut here]========================================


And these are our authenticators:

=====[cut here]========================================
vmail_plain:
        driver = plaintext
        public_name = PLAIN
        server_prompts = :
        server_condition = ${if and{ {!eq {$2}{}} {!eq {$3}{}} {eq {1}{${lookup mysql{select count(*) from popbox where concat(local_part,'@',domain_name) = '$2' and password_hash=md5('$3')}}}}}{yes}{no}}

vmail_cram:
        driver = cram_md5
        public_name = CRAM-MD5
        server_secret = ${lookup mysql{select clearpw from popbox where concat(local_part,'@',domain_name) = '$1'} {$value}fail }
        server_set_id = $1


vmail_login:
        driver = plaintext
        public_name = LOGIN
        server_prompts = "Username:: : Password::"
        server_condition = ${if eq {1}{${lookup mysql{select count(*) from popbox where concat(local_part,'@',domain_name) = '$1' and password_hash=md5('$2')}}}{yes}{no}}
        server_set_id = $1
=====[cut here]========================================



I can't remember now if there was anything else I had to do but I think you
should have enough to try some new ways. (if I am really forgetting something,
just drop a line and i'll look it up).

It seems these work with outlook, thebat!, thunderbird, and possibly others.

Hope this helps.



Cordialità / Best regards / Gxis la
------------------------------------------------------------------------
Manuel Giorgini <giorgini@interlogica.net>, Programmatore
INTERLOGICA e-business solutions -  http://www.interlogica.net
Via Fusinato, 27 - IT 30171 Mestre VE - Italia - Unione Europea
Tel +39 041 099 30 00 (6 linee r.a.) - Fax +39 041 504 11 72
------------------------------------------------------------------------