Add some params and enhance main.cf template