Skip to content

Commit 8507b06

Browse files
author
Marius Cramer
committed
Merge branch 'vmailuid' of /home/git/repositories/renky/ispconfig3
2 parents cf646e9 + 9ea57c3 commit 8507b06

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+273
-69
lines changed

install/dist/lib/debian60.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function configure_dovecot()
5757
// Adding the amavisd commands to the postfix configuration
5858
$postconf_commands = array (
5959
'dovecot_destination_recipient_limit = 1',
60-
'virtual_transport = dovecot',
60+
'virtual_transport = lmtp:unix:private/dovecot-lmtp',
6161
'smtpd_sasl_type = dovecot',
6262
'smtpd_sasl_path = private/auth'
6363
);

install/dist/lib/fedora.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public function configure_dovecot()
402402
// Adding the amavisd commands to the postfix configuration
403403
$postconf_commands = array (
404404
'dovecot_destination_recipient_limit = 1',
405-
'virtual_transport = dovecot',
405+
'virtual_transport = lmtp:unix:private/dovecot-lmtp',
406406
'smtpd_sasl_type = dovecot',
407407
'smtpd_sasl_path = private/auth',
408408
'receive_override_options = no_address_mappings'

install/dist/lib/gentoo.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function configure_dovecot()
245245
//* Reconfigure postfix to use dovecot authentication
246246
$postconf_commands = array (
247247
'dovecot_destination_recipient_limit = 1',
248-
'virtual_transport = dovecot',
248+
'virtual_transport = lmtp:unix:private/dovecot-lmtp',
249249
'smtpd_sasl_type = dovecot',
250250
'smtpd_sasl_path = private/auth'
251251
);

install/dist/lib/opensuse.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public function configure_dovecot()
437437
// Adding the amavisd commands to the postfix configuration
438438
$postconf_commands = array (
439439
'dovecot_destination_recipient_limit = 1',
440-
'virtual_transport = dovecot',
440+
'virtual_transport = lmtp:unix:private/dovecot-lmtp',
441441
'smtpd_sasl_type = dovecot',
442442
'smtpd_sasl_path = private/auth',
443443
'receive_override_options = no_address_mappings'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE `mail_user` ADD `disablelmtp` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n' AFTER `disablelda` ;
2+
ALTER TABLE `mail_user` CHANGE `uid` `uid` INT( 11 ) NOT NULL DEFAULT '5000', CHANGE `gid` `gid` INT( 11 ) NOT NULL DEFAULT '5000' ;

install/sql/ispconfig3.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,7 @@ CREATE TABLE `mail_user` (
910910
`disablesmtp` enum('n','y') NOT NULL default 'n',
911911
`disablesieve` enum('n','y') NOT NULL default 'n',
912912
`disablelda` enum('n','y') NOT NULL default 'n',
913+
`disablelmtp` enum('n','y') NOT NULL default 'n',
913914
`disabledoveadm` enum('n','y') NOT NULL default 'n',
914915
`last_quota_notification` date NULL default NULL,
915916
`backup_interval` VARCHAR( 255 ) NOT NULL,

install/tpl/debian6_dovecot2.conf.master

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
listen = *,[::]
2-
protocols = imap pop3
2+
protocols = imap pop3 lmtp
33
auth_mechanisms = plain login
44
disable_plaintext_auth = no
55
log_timestamp = "%Y-%m-%d %H:%M:%S "
@@ -31,6 +31,13 @@ service auth {
3131
}
3232
user = root
3333
}
34+
service lmtp {
35+
unix_listener /var/spool/postfix/private/dovecot-lmtp {
36+
group = postfix
37+
mode = 0600
38+
user = postfix
39+
}
40+
}
3441
service imap-login {
3542
client_limit = 1000
3643
process_limit = 500
@@ -44,4 +51,8 @@ protocol pop3 {
4451
}
4552
protocol lda {
4653
mail_plugins = sieve quota
54+
}
55+
protocol lmtp {
56+
postmaster_address = webmaster@localhost
57+
mail_plugins = quota sieve
4758
}

install/tpl/debian_dovecot2.conf.master

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
listen = *,[::]
2-
protocols = imap pop3
2+
protocols = imap pop3 lmtp
33
auth_mechanisms = plain login
44
disable_plaintext_auth = no
55
log_timestamp = "%Y-%m-%d %H:%M:%S "
@@ -31,6 +31,13 @@ service auth {
3131
}
3232
user = root
3333
}
34+
service lmtp {
35+
unix_listener /var/spool/postfix/private/dovecot-lmtp {
36+
group = postfix
37+
mode = 0600
38+
user = postfix
39+
}
40+
}
3441
service imap-login {
3542
client_limit = 1000
3643
process_limit = 500
@@ -44,4 +51,8 @@ protocol pop3 {
4451
}
4552
protocol lda {
4653
mail_plugins = sieve quota
54+
}
55+
protocol lmtp {
56+
postmaster_address = webmaster@localhost
57+
mail_plugins = quota sieve
4758
}

install/tpl/debian_postfix.conf.master

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ virtual_alias_maps = proxy:mysql:{config_dir}/mysql-virtual_forwardings.cf, prox
55
virtual_mailbox_domains = proxy:mysql:{config_dir}/mysql-virtual_domains.cf
66
virtual_mailbox_maps = proxy:mysql:{config_dir}/mysql-virtual_mailboxes.cf
77
virtual_mailbox_base = {vmail_mailbox_base}
8-
virtual_uid_maps = static:{vmail_userid}
9-
virtual_gid_maps = static:{vmail_groupid}
8+
virtual_uid_maps = mysql:/etc/postfix/mysql-virtual_uids.cf
9+
virtual_gid_maps = mysql:/etc/postfix/mysql-virtual_gids.cf
1010
inet_protocols=all
1111
smtpd_sasl_auth_enable = yes
1212
broken_sasl_auth_clients = yes
@@ -25,7 +25,7 @@ smtpd_client_restrictions = check_client_access mysql:{config_dir}/mysql-virtual
2525
smtpd_client_message_rate_limit = 100
2626
maildrop_destination_concurrency_limit = 1
2727
maildrop_destination_recipient_limit = 1
28-
virtual_transport = maildrop
28+
virtual_transport = lmtp:unix:private/dovecot-lmtp
2929
header_checks = regexp:{config_dir}/header_checks
3030
mime_header_checks = regexp:{config_dir}/mime_header_checks
3131
nested_header_checks = regexp:{config_dir}/nested_header_checks

install/tpl/fedora_dovecot2.conf.master

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
listen = *,[::]
2-
protocols = imap pop3
2+
protocols = imap pop3 lmtp
33
auth_mechanisms = plain login
44
disable_plaintext_auth = no
55
log_timestamp = "%Y-%m-%d %H:%M:%S "
@@ -31,6 +31,13 @@ service auth {
3131
}
3232
user = root
3333
}
34+
service lmtp {
35+
unix_listener /var/spool/postfix/private/dovecot-lmtp {
36+
group = postfix
37+
mode = 0600
38+
user = postfix
39+
}
40+
}
3441
service imap-login {
3542
client_limit = 1000
3643
process_limit = 500
@@ -44,4 +51,8 @@ protocol pop3 {
4451
}
4552
protocol lda {
4653
mail_plugins = sieve quota
54+
}
55+
protocol lmtp {
56+
postmaster_address = webmaster@localhost
57+
mail_plugins = quota sieve
4758
}

0 commit comments

Comments
 (0)