roehling / postsrsd

Postfix Sender Rewriting Scheme daemon
324 stars 39 forks source link

support reloading content of domains-file #160

Open syrkuit opened 1 year ago

syrkuit commented 1 year ago

PostSRSd should support automatically (i.e. no funny SIGHUP type business please) reloading the content of the domains-file when it has been updated, rather than needing a restart. Obviously, the behaviour will need to be properly documented when running in a chroot jail.

svenseeberg commented 9 months ago

At least this issue answers my question if reloading the service is necessary ;-) Adding this to the documentation would be helpful meanwhile. On larger mail servers the domains can be quite dynamic, therefore watching the file and automatically fetching the updated content would really be nice.

tk7936 commented 5 months ago

Your domain-file works ? Can you share how they look , i posted an issue here I did systemctl restart postsrsd after changes and also restarted postfix

https://github.com/roehling/postsrsd/issues/177

Apreciate any help

roehling commented 5 months ago

At least this issue answers my question if reloading the service is necessary ;-) Adding this to the documentation would be helpful meanwhile. On larger mail servers the domains can be quite dynamic, therefore watching the file and automatically fetching the updated content would really be nice.

I am working on this, however it is not trivial to make it work seamlessly with chroot jails.