Autor: Jonas Meurer Data: Dla: Evgeniy Berdnikov CC: exim-users, Exim-users Temat: Re: [exim] Cram authentication and domain-specific password file
Hi Eugene,
Am 2015-06-29 17:59, schrieb Evgeniy Berdnikov: > On Mon, Jun 29, 2015 at 03:56:12PM +0200, Jonas Meurer wrote:
>> Hello,
>>
>> I'm trying to configure cram_md5 authentication on my Exim4
>> mailserver.
>> The login credentials are stored in a domain-specific textfile with
>> the
>> format 'username:{CRAM-MD5}<MD5-SUM>'. The path to the password file
>> is
>> /etc/vmail/users/<domain>.
>>
>> The problem is, that the credentials need to be looked up in a domain-
>> specific file. Is this possible at all?
>
> What do you mean by "domain"? If a domain part of source mail address
> (contents of MAIL FROM), then this is impossible, because in SMTP
> protocol
> authentication stage preceeds MAIL FROM, so sender's domain is
> unknown.
Nope, I mean the domain part of provided username. If somebody tries to
authenticate as 'user@???', then the password file to lookup the
credentials is '/etc/vmail/users/domain.org'. This is what I try to
achieve. Is this possible at all?