Re: [Exim] SQL and aliases.

Top Pagina
Delete this message
Reply to this message
Auteur: Nico Erfurth
Datum:  
Aan: Eric Renfro
CC: exim-users@exim.org
Onderwerp: Re: [Exim] SQL and aliases.
> I am wondering how versatile exim's aliases from SQL tables is. I'm
> trying to make a dynamic static mailing-list alias, for static
> delivery.
> For example, an employees@domain alias, to send an email to every employee,
> with one simple address to send to.
>
> What I'm wondering is. Can I have multiple rows for such an alias in SQL? Like
> for example:
>
>  domain     |  list      |  email
> ------------+------------+----------------------
> domain.com  | employees  | psi-jack@???
> domain.com  | employees  | user1@???
> domain.com  | employees  | user2@???


This should work, the pgsql lookup will return

psi-jack@???
user1@???
user2@???

if you feed this into the data-option of your redirect-router everything
is ok.

ciao