|
321 | 321 | if($conf['services']['mail']) { |
322 | 322 |
|
323 | 323 | //** Configure postfix |
324 | | - if($inst->reconfigure_app('Postfix', $reconfigure_services_answer)) { |
| 324 | + if($inst->reconfigure_app('Postfix and IMAP/POP3', $reconfigure_services_answer)) { |
325 | 325 | swriteln('Configuring Postfix'); |
326 | 326 | $inst->configure_postfix('dont-create-certs'); |
| 327 | + |
| 328 | + if($conf['dovecot']['installed'] == true) { |
| 329 | + //* Configure dovecot |
| 330 | + swriteln('Configuring Dovecot'); |
| 331 | + $inst->configure_dovecot(); |
| 332 | + } elseif ($conf['courier']['installed'] == true) { |
| 333 | + //** Configure saslauthd |
| 334 | + swriteln('Configuring SASL'); |
| 335 | + $inst->configure_saslauthd(); |
| 336 | + |
| 337 | + //** Configure PAM |
| 338 | + swriteln('Configuring PAM'); |
| 339 | + $inst->configure_pam(); |
| 340 | + |
| 341 | + //* Configure courier |
| 342 | + swriteln('Configuring Courier'); |
| 343 | + $inst->configure_courier(); |
| 344 | + } |
| 345 | + |
327 | 346 | } |
328 | 347 |
|
329 | 348 | //** Configure mailman |
|
332 | 351 | $inst->configure_mailman('update'); |
333 | 352 | } |
334 | 353 |
|
335 | | - if($conf['dovecot']['installed'] == true && $inst->reconfigure_app('Dovecot', $reconfigure_services_answer)) { |
336 | | - //* Configure dovecot |
337 | | - swriteln('Configuring Dovecot'); |
338 | | - $inst->configure_dovecot(); |
339 | | - } elseif ($conf['courier']['installed'] == true && $inst->reconfigure_app('Courier', $reconfigure_services_answer)) { |
340 | | - //** Configure saslauthd |
341 | | - swriteln('Configuring SASL'); |
342 | | - $inst->configure_saslauthd(); |
343 | | - |
344 | | - //** Configure PAM |
345 | | - swriteln('Configuring PAM'); |
346 | | - $inst->configure_pam(); |
347 | | - |
348 | | - //* Configure courier |
349 | | - swriteln('Configuring Courier'); |
350 | | - $inst->configure_courier(); |
351 | | - } |
352 | | - |
353 | 354 | //** Configure Spamasassin |
354 | 355 | if($inst->reconfigure_app('Spamassassin', $reconfigure_services_answer)) { |
355 | 356 | swriteln('Configuring Spamassassin'); |
|
0 commit comments