[Exim] mysql lookups

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Margrit.Lottmann
Dátum:  
Címzett: exim-users
Tárgy: [Exim] mysql lookups
We want to change our Database for email addresses from dbm to mysql.

The query in the demanded director works right.

Also we are already using mysql lookups for sender authorization...also
ok...

Now we would like change some rewrite rules from dbm-search to mysql...
but it dosn't work...

Here is 1. the old dbm rewrite rule and 2. the mysql (draft) rule, which
dosn't work

following error message:
2001-08-15 10:23:12 Exim configuration error
unknown rewrite flag character (m) in line 386

???

1. dbm rule

*@mail.bildung-lsa.de ${lookup{${lc:$1@$domain}}dbm{DBM/etc/synonyms}\
{$value}fail} Fftq

2. mysql rule

*@mail.bildung-lsa.de ${lookup mysql{select main_addr from synonyms where \
syn_addr='${quote_mysql:$local_part@$domain}'}{$value}fail} Fftq

???

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@???                       |

+-----------------------------------------------------------------------+