Browse Source

modification du dbpassword

pull/1/head
theonlydoo 9 years ago
parent
commit
a6251aad9f
8 changed files with 9 additions and 9 deletions
  1. +1
    -1
      roles/mail/templates/config.inc.php
  2. +1
    -1
      roles/mail/templates/dbconfig.inc.php
  3. +1
    -1
      roles/mail/templates/dovecot-mysql.conf
  4. +1
    -1
      roles/mail/templates/mysql_relay_domains.cf
  5. +1
    -1
      roles/mail/templates/mysql_virtual_alias_maps.cf
  6. +1
    -1
      roles/mail/templates/mysql_virtual_mailbox_domains.cf
  7. +1
    -1
      roles/mail/templates/mysql_virtual_mailbox_maps.cf
  8. +2
    -2
      roles/mail/templates/root-postfix.sql

+ 1
- 1
roles/mail/templates/config.inc.php View File

@ -33,7 +33,7 @@ $CONF['configured'] = true;
// In order to setup Postfixadmin, you MUST specify a hashed password here.
// To create the hash, visit setup.php in a browser and type a password into the field,
// on submission it will be echoed out to you as a hashed value.
$CONF['setup_password'] = '{{ dbpassword }}';
$CONF['setup_password'] = '{{ dbpassword.stdout }}';
}
}

+ 1
- 1
roles/mail/templates/dbconfig.inc.php View File

@ -11,7 +11,7 @@
## above too.
##
$dbuser='postfix';
$dbpass='{{ dbpassword }}';
$dbpass='{{ dbpassword.stdout }}';
}
}
$basepath='';

+ 1
- 1
roles/mail/templates/dovecot-mysql.conf View File

@ -1,5 +1,5 @@
driver = mysql
connect = host=127.0.0.1 dbname=postfix user=postfix password={{ dbpassword }}
connect = host=127.0.0.1 dbname=postfix user=postfix password={{ dbpassword.stdout }}
default_pass_scheme = MD5-CRYPT
user_query = SELECT '/home/facteur/%d/%n' as home, 3000 AS uid, 3000 AS gid FROM mailbox WHERE username = '%u'
password_query = SELECT password FROM mailbox WHERE username = '%u'

+ 1
- 1
roles/mail/templates/mysql_relay_domains.cf View File

@ -1,5 +1,5 @@
hosts = 127.0.0.1
user = postfix
password = {{ dbpassword }}
password = {{ dbpassword.stdout }}
dbname = postfix
query = SELECT domain FROM domain WHERE domain='%s' and backupmx = 1

+ 1
- 1
roles/mail/templates/mysql_virtual_alias_maps.cf View File

@ -1,5 +1,5 @@
hosts = 127.0.0.1
user = postfix
password = {{ dbpassword }}
password = {{ dbpassword.stdout }}
dbname = postfix
query = SELECT goto FROM alias WHERE address='%s' AND active = 1

+ 1
- 1
roles/mail/templates/mysql_virtual_mailbox_domains.cf View File

@ -1,5 +1,5 @@
hosts = 127.0.0.1
user = postfix
password = {{ dbpassword }}
password = {{ dbpassword.stdout }}
dbname = postfix
query = SELECT domain FROM domain WHERE domain='%s' and backupmx = 0 and active = 1

+ 1
- 1
roles/mail/templates/mysql_virtual_mailbox_maps.cf View File

@ -1,5 +1,5 @@
hosts = 127.0.0.1
user = postfix
password = {{ dbpassword }}
password = {{ dbpassword.stdout }}
dbname = postfix
query = SELECT maildir FROM mailbox WHERE username='%s' AND active = 1

+ 2
- 2
roles/mail/templates/root-postfix.sql View File

@ -1,4 +1,4 @@
CREATE DATABASE postfix;
GRANT ALL PRIVILEGES ON postfix.* TO 'postfix_admin'@'%' IDENTIFIED BY '{{ dbpassword.stdout }}';
GRANT SELECT ON postfix.* TO 'postfix'@'%' IDENTIFIED BY '{{ dbpassword.stdout }}';
GRANT ALL PRIVILEGES ON postfix.* TO 'postfix_admin'@'%' IDENTIFIED BY '{{ dbpassword.stdout.stdout }}';
GRANT SELECT ON postfix.* TO 'postfix'@'%' IDENTIFIED BY '{{ dbpassword.stdout.stdout }}';
FLUSH PRIVILEGES;

Loading…
Cancel
Save