11 Jul
2014
11 Jul
'14
10:59 a.m.
Does dovecot support any form of macros? I would like to share configuration file between several servers. Configs are different only in tiny aspects.
Somethine like:
dovecot-server.conf (different on each server):
%define ID 55 %define SOMETHING SELECT FROM * WHERE something %define MECHANISMS digest-md5
dovecot-main.conf (common, shared config) !include dovecot-server.conf
user_query = ${SOMETHING} AND id=${ID}
auth_mechanisms = plain login ${MECHANISMS}
etc
-- Arkadiusz Miśkiewicz, arekm / maven.pl