Листинг /usr/local/exim/configure (скачать)
# ROUTERS CONFIGURATION # | |
mysql_aliases: | |
driver | = redirect |
allow_fail | |
allow_defer | |
# mysql-version | |
# data | = ${lookup mysql{SELECT LCASE(`goto`) FROM `alias` WHERE \ |
# | `address`=LCASE('${quote_mysql:$local_part@$domain}') OR \ |
# | `address`=LCASE('${quote_mysql:@$domain}') AND `active`='1' \ |
# | ORDER BY SUBSTRING_INDEX(`address`,'@',1) DESC LIMIT 1}} |
# sqlite-version | |
data | = ${lookup sqlite,file=/www/db/exim/exim.sqlite \ |
| {SELECT LOWER(`goto`) FROM `alias` WHERE \ |
| `address`=LOWER('${quote_sqlite:$local_part@$domain}') OR \ |
| `address`=LOWER('${quote_sqlite:@$domain}') AND `active`='1'}} |
dovecot_user: | |
driver | = accept |
transport | = dovecot_delivery |
cannot_route_message | = Unknown user |
user | = mailnull |
group | |
# mysql-version | |
# condition | = ${lookup mysql{SELECT LCASE(`goto`) FROM \ |
# | `alias` WHERE \ |
# | `address`=LCASE('${quote_mysql:$local_part@$domain}') OR \ |
# | `address`=LCASE('${quote_mysql:@$domain}') AND `active`='1' \ |
# | ORDER BY SUBSTRING_INDEX(`address`,'@',1) DESC LIMIT 1}{yes}{no}} |
# sqlite-version | |
condition | = ${lookup sqlite,file=/www/db/exim/exim.sqlite \ |
| {SELECT LOWER(`goto`) FROM `alias` WHERE \ |
| `address`=LOWER('${quote_sqlite:$local_part@$domain}') OR \ |
| `address`=LOWER('${quote_sqlite:@$domain}') AND `active`='1'}{yes}{no}} |