Browse Source

added password plugin

tags/v1.0.0
Robin Thoni 7 years ago
parent
commit
7814b070bb

+ 6
- 0
env View File

@@ -9,4 +9,10 @@ SMTP_HOST=tls://test-mx.rthoni.com
9 9
 
10 10
 SIEVE_HOST=test-mx.rthoni.com
11 11
 
12
+MAIL_USER_DB_HOST=test-mx.rthoni.com
13
+MAIL_USER_DB_USER=postfixadmin
14
+MAIL_USER_DB_PASSWORD=pg_password
15
+MAIL_USER_DB_DB=postfixadmin
16
+MAIL_USER_DB_PORT=34000
17
+
12 18
 DES_KEY=CHANGE_IT

+ 2
- 0
roundcube/Dockerfile View File

@@ -32,4 +32,6 @@ EXPOSE 80
32 32
 
33 33
 COPY ./roundcubemail-1.2.2/ /var/www/html/
34 34
 
35
+RUN ln -s /dev/stderr /var/www/html/logs/errors
36
+
35 37
 CMD ["/run.sh"]

+ 3
- 3
roundcube/roundcubemail-1.2.2/config/config.inc.php View File

@@ -17,8 +17,8 @@ $config['db_dsnw'] = 'pgsql://POSTGRES_USER:POSTGRES_PASSWORD@POSTGRES_HOST/POST
17 17
 // LOGGING/DEBUGGING
18 18
 // ----------------------------------
19 19
 // system error reporting, sum of: 1 = log; 4 = show
20
-$config['debug_level'] = NULL;
21
-//$config['debug_level'] = 4;
20
+//$config['debug_level'] = NULL;
21
+$config['debug_level'] = 1;
22 22
 
23 23
 // ----------------------------------
24 24
 // IMAP
@@ -76,7 +76,7 @@ $config['des_key'] = 'DES_KEY';
76 76
 $config['plugins'] = array(
77 77
   'attachment_reminder',
78 78
   'managesieve',
79
-//  'password',
79
+  'password',
80 80
   'zipdownload',
81 81
 //  'vacation_sieve',
82 82
   'automatic_addressbook',

+ 1
- 1
roundcube/roundcubemail-1.2.2/plugins/password/config.inc.php View File

@@ -78,7 +78,7 @@ $config['password_disabled'] = false;
78 78
 // ------------------
79 79
 // PEAR database DSN for performing the query. By default
80 80
 // Roundcube DB settings are used.
81
-$config['password_db_dsn'] = 'pgsql://POSTGRES_USER:POSTGRES_PASSWORD@POSTGRES_HOST/POSTGRES_DB';
81
+$config['password_db_dsn'] = 'pgsql://MAIL_USER_DB_USER:MAIL_USER_DB_PASSWORD@MAIL_USER_DB_HOST:MAIL_USER_DB_PORT/MAIL_USER_DB_DB';
82 82
 
83 83
 // The SQL query used to change the password.
84 84
 // The query can contain the following macros that will be expanded as follows:

+ 5
- 0
roundcube/run.sh View File

@@ -6,6 +6,11 @@ replace_vars()
6 6
   sed -e "s/POSTGRES_USER/${POSTGRES_USER}/" -i "${file}"
7 7
   sed -e "s/POSTGRES_PASSWORD/${POSTGRES_PASSWORD}/" -i "${file}"
8 8
   sed -e "s/POSTGRES_DB/${POSTGRES_DB}/" -i "${file}"
9
+  sed -e "s/MAIL_USER_DB_HOST/${MAIL_USER_DB_HOST}/" -i "${file}"
10
+  sed -e "s/MAIL_USER_DB_USER/${MAIL_USER_DB_USER}/" -i "${file}"
11
+  sed -e "s/MAIL_USER_DB_PASSWORD/${MAIL_USER_DB_PASSWORD}/" -i "${file}"
12
+  sed -e "s/MAIL_USER_DB_DB/${MAIL_USER_DB_DB}/" -i "${file}"
13
+  sed -e "s/MAIL_USER_DB_PORT/${MAIL_USER_DB_PORT}/" -i "${file}"
9 14
   sed -e "s!IMAP_HOST!${IMAP_HOST}!" -i "${file}"
10 15
   sed -e "s!SMTP_HOST!${SMTP_HOST}!" -i "${file}"
11 16
   sed -e "s/SIEVE_HOST/${SIEVE_HOST}/" -i "${file}"

Loading…
Cancel
Save