Re: [Exim] writing a mysql rewrite rule ???

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Robert Rotman
Dátum:  
Címzett: Margrit.Lottmann
CC: exim-users
Tárgy: Re: [Exim] writing a mysql rewrite rule ???
hi!

i guess you need somthing like:
local_domains = mysql;select domain-name from local_domains where domain='${quote_mysql::$key}'


robert

>
> We are changing our exim Database Lookup from dbm to mysql.
>
> We've already tested mysql lookups in directors/routers and for the
> authorization conditions . Also in the expansion part of rewrite rules
> it now works right (with help from Mr. Hazel ...Thank You...)
>
> But now I have to change the left part (Pattern) of a rewrite rule to look
> for a given domain in a mysql table:
>
> the old pattern part (example):
>
> *@lsearch;TBD/etc/local_domains ....
>
> In the exim book and documentation I can't find an example...
>
> Can I write
>
> *@mysql;local_domains ...
>
> (local_domains the name of the mysql-table....the domain-name is the
> primary key )
>
> ???
>
>
>
> MfG Margrit Lottmann
>
>
>   +-----------------------------------------------------------------------+
>   |                                             phone : +49 391 67  18572 |
>   |                            +49 391 67  12819 |
>   |              Margrit Lottmann                 fax : +49 391 67  11134 |
>   |                                                                       |
>   | Otto-von-Guericke-Universitaet Magdeburg                              |
>   | Universitaetsrechenzentrum, URZ-N                                     |
>   | Universitaetsplatz 2                                                  |
>   | D-39106 Magdeburg,  Germany                                           |
>   |                                                                       |
>   |              Margrit.Lottmann@???                       |
>   +-----------------------------------------------------------------------+

>
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##


--
Inode Telekommunikationsdienstleistungs GmbH - http://www.inode.at/
Robert Rotman
Tel.: 059999 2060 Fax.: 059999 2020
office@???