macros in config support

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

macros in config support

Arkadiusz Miśkiewicz

Hi.

Is there any support for macros in dovecot configuration - user defined
macros?

For example:

server-config.conf:
%define my_db_name "aaa"
%define my_db_host "db.example.com"
%define my_db_pass "sdfdsfsdfsdf2313"
%define server_id  10
%define something blabla
...

dovecot-sql.conf:
!include server-config.conf

connect = host=%{my_db_host} dbname=%{my_db_name} ....

iterate_query = SELECT ... WHERE os.id_pop3_server=%{server_id}
...


Basically to be able to use own macros anywhere in config files.

--
Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )