Browse Source

added password plugin

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

+ 6
- 0
env View File

9
 
9
 
10
 SIEVE_HOST=test-mx.rthoni.com
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
 DES_KEY=CHANGE_IT
18
 DES_KEY=CHANGE_IT

+ 2
- 0
roundcube/Dockerfile View File

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

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

17
 // LOGGING/DEBUGGING
17
 // LOGGING/DEBUGGING
18
 // ----------------------------------
18
 // ----------------------------------
19
 // system error reporting, sum of: 1 = log; 4 = show
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
 // IMAP
24
 // IMAP
76
 $config['plugins'] = array(
76
 $config['plugins'] = array(
77
   'attachment_reminder',
77
   'attachment_reminder',
78
   'managesieve',
78
   'managesieve',
79
-//  'password',
79
+  'password',
80
   'zipdownload',
80
   'zipdownload',
81
 //  'vacation_sieve',
81
 //  'vacation_sieve',
82
   'automatic_addressbook',
82
   'automatic_addressbook',

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

78
 // ------------------
78
 // ------------------
79
 // PEAR database DSN for performing the query. By default
79
 // PEAR database DSN for performing the query. By default
80
 // Roundcube DB settings are used.
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
 // The SQL query used to change the password.
83
 // The SQL query used to change the password.
84
 // The query can contain the following macros that will be expanded as follows:
84
 // The query can contain the following macros that will be expanded as follows:

+ 5
- 0
roundcube/run.sh View File

6
   sed -e "s/POSTGRES_USER/${POSTGRES_USER}/" -i "${file}"
6
   sed -e "s/POSTGRES_USER/${POSTGRES_USER}/" -i "${file}"
7
   sed -e "s/POSTGRES_PASSWORD/${POSTGRES_PASSWORD}/" -i "${file}"
7
   sed -e "s/POSTGRES_PASSWORD/${POSTGRES_PASSWORD}/" -i "${file}"
8
   sed -e "s/POSTGRES_DB/${POSTGRES_DB}/" -i "${file}"
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
   sed -e "s!IMAP_HOST!${IMAP_HOST}!" -i "${file}"
14
   sed -e "s!IMAP_HOST!${IMAP_HOST}!" -i "${file}"
10
   sed -e "s!SMTP_HOST!${SMTP_HOST}!" -i "${file}"
15
   sed -e "s!SMTP_HOST!${SMTP_HOST}!" -i "${file}"
11
   sed -e "s/SIEVE_HOST/${SIEVE_HOST}/" -i "${file}"
16
   sed -e "s/SIEVE_HOST/${SIEVE_HOST}/" -i "${file}"

Loading…
Cancel
Save