[Vmail-discuss] smtp auth exim4
Paul Makepeace
beasts.org at paulm.com
Sun, 20 Jul 2003 12:03:43 +0100
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/