Our server has various services with it's own config file. Nginx, Dovecot, Postfix...
All these config files are located in their own /etc/{service} directory.
I'm trying to move these files to a central location and add a symlink.
Something like:
/etc/postfix/main.cf <- /root/server-config/postfix/main.cf
The above works for most services (Nginx, PHP, ..). However, some services related to e-mail give permission denied errors. I've tried many different options like giving more permission to both the symlink and the source file, giving max permission (777), run as Root, add dovecot/postfix to root group..
All options I tried didn't make any difference. Our main goal is to have all config files in a git repository and push them to GitHub so we have them in version control.
What can I do to make the above work.
If you have an alternative that don't work with git or symlinks, please add those as a comment instead.