Fixed a bug in the installer that caused additional lines to be appended to postfix master.cf on every update.
| | |
| | | if(is_file($conf["postfix"]["config_dir"].'/master.cf')) copy($conf["postfix"]["config_dir"].'/master.cf',$conf["postfix"]["config_dir"].'/master.cf~'); |
| | | $content = rf("tpl/master_cf_amavis.master"); |
| | | // Only add the content if we had not addded it before |
| | | if(!stristr("127.0.0.1:10025 inet n - - - - smtpd",$content)) { |
| | | if(!stristr("127.0.0.1:10025",$content)) { |
| | | af($conf["postfix"]["config_dir"].'/master.cf',$content); |
| | | } |
| | | |