mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
setting univentionMailHomeServer attribute to trigger directory listener to create INBOX and create configured folders in mail app
This commit is contained in:
parent
a37c884969
commit
244046528a
@ -772,17 +772,19 @@ function set_univention_defaults()
|
||||
$config['sambaadmin/sambaSID'] = exec('/usr/bin/univention-ldapsearch -x "(objectclass=sambadomain)" sambaSID|sed -n "s/sambaSID: \(.*\)/\1/p"');
|
||||
|
||||
// mailserver, see setup-cli.php --help config
|
||||
if (_ucr_get('mail/cyrus/imap') == 'yes' && ($domains=_ucr_get('mail/hosteddomains')))
|
||||
if (($mailserver = exec('/usr/bin/univention-ldapsearch -x "(univentionAppID=mailserver_*)" univentionAppInstalledOnServer|sed -n "s/univentionAppInstalledOnServer: \(.*\)/\1/p"')) &&
|
||||
_ucr_get('mail/cyrus/imap') == 'yes' && ($domains=_ucr_get('mail/hosteddomains')))
|
||||
{
|
||||
if (!is_array($domains)) $domains = explode("\n", $domains);
|
||||
$domain = array_shift($domains);
|
||||
$config['smtpserver'] = 'localhost,465,,,yes,tls';
|
||||
$config['smtpserver'] = "$mailserver,465,,,yes,tls";
|
||||
$config['smtp'] = 'no,emailadmin_smtp_ldap_univention';
|
||||
$config['mailserver'] = "localhost,993,$domain,email,tls";
|
||||
$config['imap'] = 'root,'._ucr_secret('cyrus').',emailadmin_imap_cyrus';
|
||||
$config['mailserver'] = "$mailserver,993,$domain,email,tls";
|
||||
$config['imap'] = /*'cyrus,'._ucr_secret('cyrus')*/','.',emailadmin_imap_cyrus';
|
||||
$config['folder'] = 'INBOX/Sent,INBOX/Trash,INBOX/Drafts,INBOX/Templates,INBOX/Spam';
|
||||
if (($sieve_port = _ucr_get('mail/cyrus/sieve/port')))
|
||||
{
|
||||
$config['sieve'] = 'localhost,'.$sieve_port.',starttls';
|
||||
$config['sieve'] = "$mailserver,$sieve_port,starttls";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user