@@ -159,9 +159,15 @@ function configure_postfix($options = '')
159159 }
160160 $ configfile = $ config_dir .'/master.cf ' ;
161161 $ content = rf ($ configfile );
162+
163+ $ content = str_replace (' flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} ' ,
164+ ' flags=R user= ' .$ cf ['vmail_username ' ].' argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender} ' ,
165+ $ content );
166+
162167 $ content = str_replace (' flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} ' ,
163168 ' flags=R user= ' .$ cf ['vmail_username ' ].' argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender} ' ,
164169 $ content );
170+
165171 wf ($ configfile , $ content );
166172
167173 //* Writing the Maildrop mailfilter file
@@ -189,7 +195,7 @@ function configure_postfix($options = '')
189195 public function configure_saslauthd () {
190196 global $ conf ;
191197
192- /*
198+
193199 $ configfile = 'sasl_smtpd.conf ' ;
194200 if (is_file ('/etc/sasl2/smtpd.conf ' )) copy ('/etc/sasl2/smtpd.conf ' ,'/etc/sasl2/smtpd.conf~ ' );
195201 if (is_file ('/etc/sasl2/smtpd.conf~ ' )) exec ('chmod 400 ' .'/etc/sasl2/smtpd.conf~ ' );
@@ -199,7 +205,7 @@ public function configure_saslauthd() {
199205 $ content = str_replace ('{mysql_server_database} ' ,$ conf ['mysql ' ]['database ' ],$ content );
200206 $ content = str_replace ('{mysql_server_ip} ' ,$ conf ['mysql ' ]['ip ' ],$ content );
201207 wf ('/etc/sasl2/smtpd.conf ' ,$ content );
202- */
208+
203209
204210 // TODO: Chmod and chown on the config file
205211
0 commit comments