Skip to content

Commit d941029

Browse files
author
Till Brehm
committed
Merge branch 'centos8_dovecot_lmtp' into 'develop'
Centos8 dovecot paths See merge request ispconfig/ispconfig3!1258
2 parents 0970332 + bb4fc7f commit d941029

File tree

8 files changed

+16
-15
lines changed

8 files changed

+16
-15
lines changed

install/dist/lib/debian60.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function configure_dovecot()
3939
$configure_lmtp = false;
4040

4141
// use lmtp if installed
42-
if($configure_lmtp = is_file('/usr/lib/dovecot/lmtp')) {
42+
if($configure_lmtp = (is_file('/usr/lib/dovecot/lmtp') || is_file('/usr/libexec/dovecot/lmtp'))) {
4343
$virtual_transport = 'lmtp:unix:private/dovecot-lmtp';
4444
}
4545

@@ -168,7 +168,7 @@ public function configure_dovecot()
168168
}
169169

170170
//* dovecot-managesieved
171-
if(is_file('/usr/lib/dovecot/managesieve')) {
171+
if(is_file('/usr/lib/dovecot/managesieve') || is_file('/usr/libexec/dovecot/managesieve')) {
172172
$dovecot_protocols .= ' sieve';
173173
}
174174

install/dist/lib/fedora.lib.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,11 @@ public function configure_dovecot()
395395

396396
$configure_lmtp = false;
397397

398+
// use lmtp if installed
399+
if($configure_lmtp = (is_file('/usr/lib/dovecot/lmtp') || is_file('/usr/libexec/dovecot/lmtp'))) {
400+
$virtual_transport = 'lmtp:unix:private/dovecot-lmtp';
401+
}
402+
398403
// check if virtual_transport must be changed
399404
if ($this->is_update) {
400405
$tmp = $this->db->queryOneRecord("SELECT * FROM ?? WHERE server_id = ?", $conf["mysql"]["database"] . ".server", $conf['server_id']);

install/lib/installer_base.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ public function configure_dovecot() {
14331433
$configure_lmtp = false;
14341434

14351435
// use lmtp if installed
1436-
if($configure_lmtp = is_file('/usr/lib/dovecot/lmtp')) {
1436+
if($configure_lmtp = (is_file('/usr/lib/dovecot/lmtp') || is_file('/usr/libexec/dovecot/lmtp'))) {
14371437
$virtual_transport = 'lmtp:unix:private/dovecot-lmtp';
14381438
}
14391439

@@ -1592,7 +1592,7 @@ public function configure_dovecot() {
15921592
}
15931593

15941594
//* dovecot-managesieved
1595-
if(is_file('/usr/lib/dovecot/managesieve')) {
1595+
if(is_file('/usr/lib/dovecot/managesieve') || is_file('/usr/libexec/dovecot/managesieve')) {
15961596
$dovecot_protocols .= ' sieve';
15971597
}
15981598

install/tpl/debian6_dovecot2.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protocol lmtp {
8888
#2.3+ group = vmail
8989
#2.3+ mode = 0660
9090
#2.3+ }
91-
#2.3+
91+
#2.3+
9292
#2.3+ unix_listener stats-writer {
9393
#2.3+ user = vmail
9494
#2.3+ group = vmail

install/tpl/debian_dovecot2.conf.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ssl_min_protocol = TLSv1.2
1212
ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
1313
ssl_prefer_server_ciphers = no
1414
mail_max_userip_connections = 100
15-
mail_plugins = $mail_plugins quota
15+
mail_plugins = quota
1616
passdb {
1717
args = /etc/dovecot/dovecot-sql.conf
1818
driver = sql
@@ -86,7 +86,7 @@ protocol lmtp {
8686
#2.3+ group = vmail
8787
#2.3+ mode = 0660
8888
#2.3+ }
89-
#2.3+
89+
#2.3+
9090
#2.3+ unix_listener stats-writer {
9191
#2.3+ user = vmail
9292
#2.3+ group = vmail

install/tpl/fedora_dovecot2.conf.master

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,13 @@ protocol lmtp {
7676
mail_plugins = quota sieve
7777
}
7878

79-
mail_plugins = $mail_plugins quota
80-
8179
#2.3+ service stats {
8280
#2.3+ unix_listener stats-reader {
8381
#2.3+ user = vmail
8482
#2.3+ group = vmail
8583
#2.3+ mode = 0660
8684
#2.3+ }
87-
#2.3+
85+
#2.3+
8886
#2.3+ unix_listener stats-writer {
8987
#2.3+ user = vmail
9088
#2.3+ group = vmail

install/tpl/opensuse_dovecot2.conf.master

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,13 @@ protocol lmtp {
7575
mail_plugins = quota sieve
7676
}
7777

78-
mail_plugins = $mail_plugins quota
79-
8078
#2.3+ service stats {
8179
#2.3+ unix_listener stats-reader {
8280
#2.3+ user = vmail
8381
#2.3+ group = vmail
8482
#2.3+ mode = 0660
8583
#2.3+ }
86-
#2.3+
84+
#2.3+
8785
#2.3+ unix_listener stats-writer {
8886
#2.3+ user = vmail
8987
#2.3+ group = vmail

server/plugins-available/postfix_server_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,15 +288,15 @@ function update($event_name, $data) {
288288
$dovecot_protocols = 'imap pop3';
289289

290290
//* dovecot-lmtpd
291-
if( ($configure_lmtp = is_file('/usr/lib/dovecot/lmtp')) ||
291+
if( ($configure_lmtp = (is_file('/usr/lib/dovecot/lmtp') || is_file('/usr/libexec/dovecot/lmtp'))) ||
292292
($mail_config["mailbox_virtual_uidgid_maps"] == 'y') )
293293
{
294294
$virtual_transport = 'lmtp:unix:private/dovecot-lmtp';
295295
$dovecot_protocols .= ' lmtp';
296296
}
297297

298298
//* dovecot-managesieved
299-
if(is_file('/usr/lib/dovecot/managesieve')) {
299+
if(is_file('/usr/lib/dovecot/managesieve') || is_file('/usr/libexec/dovecot/managesieve')) {
300300
$dovecot_protocols .= ' sieve';
301301
}
302302

0 commit comments

Comments
 (0)