HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   ISPC3 Installation/Update Postfix main.cf (http://www.howtoforge.com/forums/showthread.php?t=54703)

Croydon 31st October 2011 11:03

ISPC3 Installation/Update Postfix main.cf
 
Currently the contents of the main.cf config for postfix seems to be hardcoded into the installer_base library and the operating system specific ones.

This means the main.cf is overwritten on each update/install.

Would it be an option either
- to make a config template for the main.cf that can be overridden in the conf-cust dir - and remains the same during update
or
- to add some config option questions into the (expert mode) installer for the postfix conf

To be more specific:
Code:

smtpd_sender_restrictions = check_sender_access mysql:'.$config_dir.'/mysql-virtual_sender.cf
At nearly all servers I use something like
Code:

smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf, reject_invalid_hostname, reject_non_fqdn_hostname, reject_rbl_client zen.spamhaus.org
So I have to keep in mind adding these options every time again when updating ispc.

Mark_NL 31st October 2011 13:30

That's true .. only thing i was bothered by that it removed my RBL's ..

I commited RBL adding via webGUI and retaining them during an update to the svn, should be in the next version.

"reject_invalid_hostname, reject_non_fqdn_hostname, " are 2 options that would not hurt putting them in the main.cf template.

8omas 6th November 2011 23:53

Quote:

Originally Posted by Croydon (Post 266256)
Currently the contents of the main.cf config for postfix seems to be hardcoded into the installer_base library and the operating system specific ones.

This means the main.cf is overwritten on each update/install.

Would it be an option either
- to make a config template for the main.cf that can be overridden in the conf-cust dir - and remains the same during update
or
- to add some config option questions into the (expert mode) installer for the postfix conf

To be more specific:
Code:

smtpd_sender_restrictions = check_sender_access mysql:'.$config_dir.'/mysql-virtual_sender.cf
At nearly all servers I use something like
Code:

smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf, reject_invalid_hostname, reject_non_fqdn_hostname, reject_rbl_client zen.spamhaus.org
So I have to keep in mind adding these options every time again when updating ispc.

Same "problem" here.
It would be very convinient to have a place to put our customizations.


All times are GMT +2. The time now is 01:09.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.