[exim-dev] [Bug 3084] Aliases for DB datasources

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Bugzilla
Datum:  
To: exim-dev
Alte Treads: [exim-dev] [Bug 3084] New: Aliases for datasources
Betreff: [exim-dev] [Bug 3084] Aliases for DB datasources
https://bugs.exim.org/show_bug.cgi?id=3084

--- Comment #5 from Marten Lehmann <lehmann@???> ---
I'm not really happy with the macro version. It's just a workaround, not a
solid or elegant solution.

I'd suggest to align mysql_servers and others with the spamd_address directive
(see
https://www.exim.org/exim-html-current/doc/html/spec_html/ch-content_scanning_at_acl_time.html):
Besides a pure list of hosts (and optional ports), there are options which may
be specified.

This is how a list of spamd services may look like:

spamd_address = 127.0.0.1 783 pri=2 : 10.0.0.55 783 pri=1

This is how the same idea might be applied for aliases in a list of database
sources:

mysql_servers = db.mail.company.com/config/readonly-user/pw alias=config : \
                db.mail.company.com/metrics/readwrite-user/pw alias=metrics


A lookup might use them like this:

${lookup mysql,servers=config {SELECT ...} }
${lookup mysql,servers=metrics {UPDATE ...} }

--
You are receiving this mail because:
You are on the CC list for the bug.

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/