The challenge of customizing Dovecot

Rob McAninch rob.mcaninch at gmail.com
Thu Mar 23 03:16:36 EET 2017


> On Mar 22, 2017, at 18:25, Robert Moskowitz <rgm at htt-consult.com> wrote:
> 
> 
> 
>> On 03/22/2017 11:36 AM, chaouche yacine wrote:
>> Robert,
>> 
>> What would be the benefit of using sed against making customized files and just copying them ? I'd probably just want to copy a working version of /etc/dovecot/ conf files instead of modifying my existing files with sed scripts (or create new ones with cat).
> 
> new options are left unaltered.  I learned this with postfix, to use postconf instead of trying to replace main.cf.
> 
> I thought about mv old confs then cat new confs, but again, there are other things set up, and I worked at changing what needed customization, rather than wholesale replacement.

Did you consider putting your customization in a local.conf which should be tried at the end? Could put whatever explanation in there you want. On a system like Debian this would more easily allow the default files to be upgraded without intervention.

-- 
Rob


More information about the dovecot mailing list