svarshavchik / courier

Courier Mail Server
http://www.courier-mta.org
72 stars 12 forks source link

Missing some options in esmtpd-ssl.dist #46

Closed ploink closed 1 year ago

ploink commented 1 year ago

I wanted the options ESMTPAUTH and BLACKLISTS in esmtpd-ssl to be different from the esmtpd config file. They were not there by default, so I added them manually. This worked fine until the next update when they disappeared. I suppose the config file is recreated form esmtpd-ssl.dist with every update and any options that are not in the dist disappear. Can they be added?

My use case:

svarshavchik commented 1 year ago

Courier's stock installation script should reset configuration file settings only when they change in the updated version. It's possible that some Linux distribution's installation script does its own thing and replaces the config file each time, nothing much can be done about it.

Still, there is no convenient place to put anything like this right now, so I added a MISC section at the end of esmtpd-ssl.dist that'll defined as an unchangeable configuration section, so going forward it will be safe to put in any custom settings there.

ploink commented 1 year ago

Today I upgraded Fedora 35 to 36 and courier to 1.2.0. I always build/update courier from rpm packages using the included spec file. This did not reproduce the problem so I am unsure what exactly happened. (Not using the MISC section yet)

Anyway I now implemented your solution. Thank you!