Skip to content

Commit 557480f

Browse files
FantuFantu
authored andcommitted
Fix update of mailbox_size_limit and message_size_limit, mb to byte
1 parent 86f1304 commit 557480f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/postfix_server_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ function update($event_name,$data) {
102102
exec("postconf -e 'relayhost ='");
103103
}
104104

105-
exec("postconf -e 'mailbox_size_limit = ".intval($mail_config["mailbox_size_limit"])."'");
106-
exec("postconf -e 'message_size_limit = ".intval($mail_config["message_size_limit"])."'");
105+
exec("postconf -e 'mailbox_size_limit = ".intval($mail_config["mailbox_size_limit"]*1024*1024)."'");
106+
exec("postconf -e 'message_size_limit = ".intval($mail_config["message_size_limit"]*1024*1024)."'");
107107

108108
}
109109

0 commit comments

Comments
 (0)