[Vmail-discuss] smtp auth exim4

Donovan Craig donovan at snapfrozen.com
Mon, 21 Jul 2003 11:50:01 +1000


Hi Paul,

Thank's for your help so far. I am using MySQL and have that {md5} bit tacked onto the 
start of my passwords in the password_hash field.

This is what I have done so far..

begin authenticators
 cram:
  driver = cram_md5
  public_name = CRAM-MD5
  server_secret = ${lookup mysql{select RIGHT(password_hash, 5) from domain \
                   where domain_name = '$1'}{$value}fail}
  server_set_id = $1

I keep getting incorrect password (535). Any Ideas ?

Thank's again.

Regards,

Donovan

On Sun, 20 Jul 2003 12:03:43 +0100
Paul Makepeace <beasts.org@paulm.com> was rumoured to have said:

> On Sun, Jul 20, 2003 at 02:57:31PM +1000, Donovan Craig wrote:
> > Hi,
> > 
> > Just wondering if anyone has a working config file with SMTP auth working with exim4 ?
> 
> Yep,
> 
> # paulm, 2002-10-11
> # AUTH
> 
> # paulm, 2002-11-16: only advertise auth over TLS;
> # taken directly from manual
> # auth_advertise_hosts = ${if eq{$tls_cipher}{}{}{*}}
> 
> # paulm, 2002-11-16: allow TLS
> tls_certificate = /etc/mail/cert
> tls_privatekey = /etc/mail/cert
> tls_advertise_hosts = *
> 
> begin authenticators
> cram:
>   driver = cram_md5
>   public_name = CRAM-MD5
>   server_secret = ${lookup {$1} cdb {/etc/mail/smtpauth.cdb}{$value}}
>   server_set_id = $1
> 
> plain:
>   driver = plaintext
>   public_name = PLAIN
>   server_condition = ${if eq{$3}{${lookup {$2} cdb {/etc/mail/smtpauth.cdb}{$value}fail}}{yes}{no}}
>   server_set_id = $1
> 
> You might also find this interesting,
> http://www.exim.org/pipermail/exim-users/Week-of-Mon-20021007/044778.html
> "Playing with SMTP AUTH & CRAM-MD5"
> 
> And, /etc/mail/cert.sh
> 
> #!/bin/sh
> openssl req -x509 -newkey rsa:1024 -keyout /etc/mail/cert -out /etc/mail/cert -days 9999 -nodes
> 
> HTH! Cheers,
> Paul
> 
> -- 
> Paul Makepeace ....................................... http://paulm.com/
> 
> "If I pass the buck, will I get the help, then there is sweetness in
>  cellophane."
>    -- http://paulm.com/toys/surrealism/
> 
> _______________________________________________
> vmail-discuss mailing list
> vmail-discuss@lists.beasts.org
> http://lists.beasts.org/mailman/listinfo/vmail-discuss
>