Re: [exim] mysql config

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jeremy Harris
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] mysql config
On 14/08/2020 23:49, Dan Egli via Exim-users wrote:
> Let me elaborate a bit, see if I can show it better what I want
>
> 1) exim receives message
> 2) exim queries mysql -> this user@domain exist?
> 3) mysql-> yes. Maildir is /mail/domain/user
> 4) exim delivers mail


Probably most neatly done using a lookup expansion calling
mysql, in a redirect router and using the path retrieved
to cause the use of an appendfile transport. When nonexistent
the routing fails; use this fact during ACL called at SMTP RCPT
time, via a recipient verify, to cause rejection of a messsage.

>
> And smtp auth is needed too, username and password stored in mysql


You'll need to decide what authentication permits, and implement
that. This would be the server side of an Authenticator driver
configuration; it can use a lookup expansion in determining
the authentication result. You'll also need to decide what pattern(s)
of SMTP AUTH you want to support.


You still need to read the docs.
http://exim.org/exim-html-current/doc/html/spec_html/
--
Cheers,
Jeremy