installer / postfix server plugin - dovecot lmtp configuration
installer_base.lib.php
if(isset($ini_array['mail']['mailbox_virtual_uidgid_maps']) && $ini_array['mail']['mailbox_virtual_uidgid_maps'] == 'y') {
$virtual_transport = 'lmtp:unix:private/dovecot-lmtp';
$configure_lmtp = true;
}
postfix_server_plugin.inc.php
if( ($configure_lmtp = (is_file('/usr/lib/dovecot/lmtp') || is_file('/usr/libexec/dovecot/lmtp'))) ||
($mail_config["mailbox_virtual_uidgid_maps"] == 'y') )
{
$virtual_transport = 'lmtp:unix:private/dovecot-lmtp';
$dovecot_protocols .= ' lmtp';
}
installer/updater checks if "mailbox_virtual_uidgid_maps" is configured, but postfix_server_plugin.inc.php additionally checks if some files exist. on my gentoo system "/usr/libexec/dovecot/lmtp" always exists. mailbox_virtual_uidgid_maps is set to NO.
when updating ispconfig, postfix is configured with "virtual_transport = dovecot". if i do some mail setting changes in ispconfig backend, its configured to "virtual_transport = lmtp:unix:private/dovecot-lmtp".
does this also affect other systems? should installer also check file existence or should postfix server plugin not check file existence? or change both to this:
if( ($configure_lmtp = (is_file('/usr/lib/dovecot/lmtp') || is_file('/usr/libexec/dovecot/lmtp'))) &&
($mail_config["mailbox_virtual_uidgid_maps"] == 'y') )
&& instead of ||
Edited by Christian