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.
--
Eugene Berdnikov