[exim] Set connection macro at AUTH time

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Robert Blayzor
Datum:  
To: Exim Users
Betreff: [exim] Set connection macro at AUTH time
Consider the following:

PLAIN:
  driver                     = plaintext
  server_set_id              = Q_AUTHPLAIN
  server_prompts             = :
  server_condition           = ${if !eq{Q_AUTHPLAIN}{}{true}{false}}



Where Q_AUTHPLAIN is just a macro for some SQL that returns either an empty string on failure or the users email address if pass.

Is there any way possible to return any other data/fields that can be passed and perhaps set a connection macro at this point? ie: Would it be possible to add multiple server_conditions/calls and return another field back from the database?

Trying to find a way to possibly return other user variables back to be used later in the mail connection but would rather not make another query into the database if it can be avoided.

TIA

--
Robert
inoc.net!rblayzor
http://inoc.net/