File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ public function configure_amavis() {
144144 if (is_file ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' )) copy ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' , $ conf ['postfix ' ]['config_dir ' ].'/master.cf~ ' );
145145 $ content = rf ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' );
146146 // Only add the content if we had not addded it before
147- if (!preg_match ('/^amavis\s+/m ' , $ content )) {
147+ if (!preg_match ('/^amavis\s+unix\s+ /m ' , $ content )) {
148148 unset($ content );
149149 $ content = rfsel ($ conf ['ispconfig_install_dir ' ].'/server/conf-custom/install/master_cf_amavis.master ' , 'tpl/master_cf_amavis.master ' );
150150 af ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' , $ content );
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ public function configure_amavis() {
145145 if (is_file ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' )) copy ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' , $ conf ['postfix ' ]['config_dir ' ].'/master.cf~ ' );
146146 $ content = rf ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' );
147147 // Only add the content if we had not addded it before
148- if (!preg_match ('/^amavis\s+/m ' , $ content )) {
148+ if (!preg_match ('/^amavis\s+unix\s+ /m ' , $ content )) {
149149 unset($ content );
150150 $ content = rfsel ($ conf ['ispconfig_install_dir ' ].'/server/conf-custom/install/master_cf_amavis.master ' , 'tpl/master_cf_amavis.master ' );
151151 af ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' , $ content );
Original file line number Diff line number Diff line change @@ -500,7 +500,7 @@ public function configure_amavis() {
500500 if (is_file ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' )) copy ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' , $ conf ['postfix ' ]['config_dir ' ].'/master.cf~ ' );
501501 $ content = rf ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' );
502502 // Only add the content if we had not addded it before
503- if (!preg_match ('/^amavis\s+/m ' , $ content )) {
503+ if (!preg_match ('/^amavis\s+unix\s+ /m ' , $ content )) {
504504 unset($ content );
505505 $ content = rfsel ($ conf ['ispconfig_install_dir ' ].'/server/conf-custom/install/master_cf_amavis.master ' , 'tpl/master_cf_amavis.master ' );
506506 af ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' , $ content );
Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ public function configure_amavis()
335335 // Append the configuration for amavisd to the master.cf file
336336 $ content = rf ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' );
337337 // Only add the content if we had not addded it before
338- if (!preg_match ('/^amavis\s+/m ' , $ content )) {
338+ if (!preg_match ('/^amavis\s+unix\s+ /m ' , $ content )) {
339339 unset($ content );
340340 $ content = $ this ->get_template_file ('master_cf_amavis ' , true );
341341 af ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' , $ content );
Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ public function configure_amavis() {
534534 if (is_file ($ conf ["postfix " ]["config_dir " ].'/master.cf ' )) copy ($ conf ["postfix " ]["config_dir " ].'/master.cf ' , $ conf ["postfix " ]["config_dir " ].'/master.cf~ ' );
535535 $ content = rf ($ conf ["postfix " ]["config_dir " ].'/master.cf ' );
536536 // Only add the content if we had not addded it before
537- if (!preg_match ('/^amavis\s+/m ' , $ content )) {
537+ if (!preg_match ('/^amavis\s+unix\s+ /m ' , $ content )) {
538538 unset($ content );
539539 $ content = rfsel ($ conf ['ispconfig_install_dir ' ].'/server/conf-custom/install/master_cf_amavis.master ' , 'tpl/master_cf_amavis.master ' );
540540 af ($ conf ['postfix ' ]['config_dir ' ].'/master.cf ' , $ content );
You can’t perform that action at this time.
0 commit comments