Skip to content

Commit 2e1086d

Browse files
committed
mailsize file for accounting of incoming mails
1 parent 2d4bd48 commit 2e1086d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,10 @@ function install_ispconfig() {
615615
$command = "chown -R ispconfig:ispconfig ".$conf["ispconfig_install_dir"];
616616
caselog($command." &> /dev/null", __FILE__, __LINE__,"EXECUTED: ".$command,"Failed to execute the command ".$command);
617617

618+
// make sure that the server config file (not the interface one) is only readable by the root user
619+
exec('chmod 600 '.$conf["ispconfig_install_dir"].'/server/lib/'.$configfile);
620+
exec('chown root:root '.$conf["ispconfig_install_dir"].'/server/lib/'.$configfile);
621+
618622
// TODO: FIXME: add the www-data user to the ispconfig group. This is just for testing
619623
// and must be fixed as this will allow the apache user to read the ispconfig files.
620624
// Later this must run as own apache server or via suexec!

install/tpl/mailfilter.master

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ if ( $RETURNCODE == 0 )
4545
include "{dist_postfix_vmail_mailbox_base}/mailfilters/$HOST/$USER/.autoresponder"
4646
}
4747

48+
# Create a mailsize file
49+
`echo $SIZE >> {dist_postfix_vmail_mailbox_base}/$HOST/$USER/.ispconfig_mailsize`
50+
4851

4952
#
5053
# Check that user has his own maildrop include,

0 commit comments

Comments
 (0)