@@ -229,7 +229,7 @@ function configure_postfix($options = '')
229229 $ regex = "/^maildrop unix.*pipe flags=DRhu user=vmail argv= \\/usr \\/bin \\/maildrop -d " .$ cf ['vmail_username ' ]." \\$\{extension} \\$\{recipient} \\$\{user} \\$\{nexthop} \\$\{sender}/ " ;
230230 $ configfile = $ config_dir .'/master.cf ' ;
231231 if ($ this ->postfix_master ()) {
232- exec ("postconf -M maildrop.unix " , $ out , $ ret );
232+ exec ("postconf -M maildrop.unix &> /dev/null " , $ out , $ ret );
233233 $ change_maildrop_flags = @(preg_match ($ regex , $ out [0 ]) && $ out [0 ] !='' )?false :true ;
234234 } else { //* fallback - postfix < 2.9
235235 $ change_maildrop_flags = @(preg_match ($ regex , $ configfile ))?false :true ;
@@ -367,7 +367,7 @@ public function configure_dovecot()
367367 $ config_dir = $ conf ['postfix ' ]['config_dir ' ];
368368 //* Configure master.cf and add a line for deliver
369369 if ($ this ->postfix_master ()) {
370- exec ("postconf -M dovecot.unix " , $ out , $ ret );
370+ exec ("postconf -M dovecot.unix &> /dev/null " , $ out , $ ret );
371371 $ add_dovecot_service = @($ out [0 ]=='' )?true :false ;
372372 } else { //* fallback - postfix < 2.9
373373 $ content = rf ($ config_dir .'/master.cf ' );
@@ -503,13 +503,13 @@ public function configure_amavis() {
503503
504504 // Adding amavis-services to the master.cf file if the service does not already exists
505505 if ($ this ->postfix_master ()) {
506- exec ("postconf -M amavis.unix " , $ out , $ ret );
506+ exec ("postconf -M amavis.unix &> /dev/null " , $ out , $ ret );
507507 $ add_amavis = @($ out [0 ]=='' )?true :false ;
508508 unset($ out );
509- exec ("postconf -M 127.0.0.1:10025.inet " , $ out , $ ret );
509+ exec ("postconf -M 127.0.0.1:10025.inet &> /dev/null " , $ out , $ ret );
510510 $ add_amavis_10025 = @($ out [0 ]=='' )?true :false ;
511511 unset($ out );
512- exec ("postconf -M 127.0.0.1:10027.inet " , $ out , $ ret );
512+ exec ("postconf -M 127.0.0.1:10027.inet &> /dev/null " , $ out , $ ret );
513513 $ add_amavis_10027 = @($ out [0 ]=='' )?true :false ;
514514 unset($ out );
515515 } else { //* fallback - postfix < 2.9
0 commit comments