Re: [exim] Configure EXIM4 for SMTP AUTH

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Phil Pennock
Fecha:  
A: Hannibal Ndlovu
Cc: exim-users
Asunto: Re: [exim] Configure EXIM4 for SMTP AUTH
On 2008-10-02 at 09:52 +0200, Hannibal Ndlovu wrote:
> Am running DEBIAN 4, Kernel 2.6.18-6-686,


> My back is to the wall can some one please post a working guide to
> implementing this - Please dont tell me to Google-it of RTFM, i have,
> i kept a copy of the original exim4 config so am running on that right
> now


If your configuration is full of DEBCONF_* lines, or you're editing a
file with dc_whatever='...' lines, then that's Debian-specific
meta-configuration and you need to be asking Debian folks, over at:
http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
as described in:
/usr/share/doc/exim4/README.Debian.gz

Otherwise, read on:

The file /usr/share/doc/exim4/examples/example.conf.gz is the Exim
template configuration provided by the Exim project; in that, the
configuration will automatically do the right thing, if you have
authenticators. After "begin authenticators", you write the
configuration you need. Newer versions of Exim than are bundled with
Debian (AFAIK) provide a couple of template authenticators too, where
you just need to define the exact condition which defines successful
authentication. The comprehensive documentation for Exim is available
online at www.exim.org or is in plain-text on your system at:
/usr/share/doc/exim4/spec.txt.gz

The working guide is:

Read: 33. SMTP authentication
Read: 34. The plaintext authenticator
Read: 11.7. Expansion conditions

Find the "begin authenticators" section of your config, or add it if
it's not there.

Write an authenticator rule which does the lookups you want, probably
based on the examples in chapter 34 which you can cut&paste, then
replacing the server_condition with something suitable; there are two
useful example server_condition rules there, one using a DBM lookup,
one using an LDAP lookup.

Thanks,
-Phil