Skip to content

Commit 3845f10

Browse files
committed
Fixed a bug when maildirs are created.
Updated the Debian installation instructions.
1 parent 6b55a11 commit 3845f10

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

INSTALL_DEBIAN.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ vi /etc/default/pure-ftpd-common
4141

4242
and change the start mode from inetd to standalone.
4343

44-
Edit the file /etc/inetd.conf vi /etc/inted.conf
44+
Edit the file /etc/inetd.conf
45+
46+
vi /etc/inetd.conf
4547

4648
and comment out the line for the FTP service, so it looks like this:
4749

@@ -104,6 +106,22 @@ password: admin
104106

105107
In case you get a permission denied error from apache, please restart the apache webserver process.
106108

109+
Optional:
110+
111+
Install a webbased FTP Client
112+
113+
apt-get install squirrelmail
114+
ln -s /usr/share/squirrelmail/ /var/www/webmail
115+
116+
Access squirrelmail:
117+
118+
http://192.168.0.100/webmail
119+
120+
121+
To configure squirrelmail, run:
122+
123+
/usr/sbin/squirrelmail-configure
124+
107125
----------------------------------------------------------------------------------------------------------
108126

109127
Hints:

install/tpl/config.inc.php.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ define("DB_PASSWORD",$conf["db_password"]);
106106
*/
107107

108108
$conf["log_file"] = $conf["rootpath"].$conf["fs_div"]."ispconfig.log";
109-
$conf["log_priority"] = 0; // 0 = Debug, 1 = Warning, 2 = Error
109+
$conf["log_priority"] = 2; // 0 = Debug, 1 = Warning, 2 = Error
110110

111111
/*
112112
Themes

server/plugins-available/mail_plugin.inc.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,14 @@ function onLoad() {
6161
function user_insert($event_name,$data) {
6262
global $app, $conf;
6363

64+
// get the config
65+
$app->uses("getconf");
66+
$mail_config = $app->getconf->get_server_config($conf["server_id"], 'mail');
67+
6468
// Create the maildir, if it does not exist
6569
if(!is_dir($data['new']['maildir'])) {
6670
exec('mkdir -p '.escapeshellcmd($data['new']['maildir']));
71+
exec('maildirmake '.escapeshellcmd($data['new']['maildir']));
6772
exec('chown '.$mail_config['mailuser_name'].':'.$mail_config['mailuser_group'].' '.escapeshellcmd($data['new']['maildir']));
6873
$app->log('Created Maildir: '.$data['new']['maildir'],LOGLEVEL_DEBUG);
6974
}

0 commit comments

Comments
 (0)