Autore: Dan Evans Data: To: Christian Vogel CC: exim Oggetto: Re: [Exim] SMTP AUTH with MySQL, nearly working
----- Original Message -----
From: "Christian Vogel" <chris@???>
Christian,
> $domain is not defined (at least not with anything that makes sense)
> in the authenticator's server_condition.
I guessed as much, but gave it a try anyway, because sometimes things work.
I wasn't in the least surprised when it didn't. It wa also about 5:00 am and
I was running out of ideas and enthusiasm
> You will have to split
> the "username" at "@".
Yes, but I couldn't find out how. When you mentioned "extract" later, it all
fell into place. A quick trip to the book (2 lines) explained all and that
was enough
> And: I really don't like the idea of having
> the user specify part of the SQL statements...
Well, if they give a bogus domain part, they just get bounced until they get
it right. I tried the way you gave, it worked, and I adapted it to go
stright to the table, rather than use the flat file.
Using a flat file isn't really practical - the actual mailboxes are on a
windows machine, and creating a domain/users automatically sets up the
database tables, eventually there will be 2 Exim machines for outgoing SMTP.
I think that having a flat file in 2 machines is just asking for something
to get missed and for the whole lot to end up out of synch.