ISPC3 Installation/Update Postfix main.cf

Discussion in 'Developers' Forum' started by Croydon, Oct 31, 2011.

  1. Croydon

    Croydon Member Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    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.
     
  2. Mark_NL

    Mark_NL New Member

    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.
     
  3. 8omas

    8omas New Member HowtoForge Supporter

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

Share This Page