PERL : Libconf::Glueconf::Postfix::Main_cf C/PYTHON/RUBY : Postfix/Main_cf
Libconf::Glueconf::Postfix::Main_cf is a template that handles the main.cf files from postfix.
$postfix = new Libconf::Glueconf::Postfix::Main_cf({filename => 'main.cf' }); $postfix->{inet_interfaces} = 'test_host'; $postfix->write_conf();
creates the template
$postfix = new Libconf::Glueconf::Postfix::Main_cf({ .. arguments .. })
the options are the same as in the Libconf::Templates::Generic::KeyValue manpage, look there to have the details.
See <Libconf::Glueconf> for general methods