Generate safe passwords

master
andryyy 2016-12-28 11:36:15 +01:00
parent 7c63476858
commit 09322daf2d
2 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,4 @@
#!/bin/bash
echo DBPASS=$(openssl rand -base64 32 | tr -dc _A-Z-a-z-0-9)
echo DBROOT=$(openssl rand -base64 32 | tr -dc _A-Z-a-z-0-9)

View File

@ -1,19 +1,33 @@
# ------------------------------
# mailcow web ui configuration # mailcow web ui configuration
# example.org is NOT a valid hostname, use a fqdn here. # ------------------------------
# example.org is _not_ a valid hostname, use a fqdn here.
# Default admin user is "admin" # Default admin user is "admin"
# Default password is "moohoo" # Default password is "moohoo"
MAILCOW_HOSTNAME=mail.example.org MAILCOW_HOSTNAME=mail.example.org
# ------------------------------
# SQL database configuration # SQL database configuration
# ------------------------------
DBNAME=mailcow DBNAME=mailcow
DBUSER=mailcow DBUSER=mailcow
# Please use long, random alphanumeric strings (A-Za-z0-9) # Please use long, random alphanumeric strings (A-Za-z0-9)
# Run data/assets/passwd/generate_passwords.sh to generate safe passwords
DBPASS=mysafepasswd DBPASS=mysafepasswd
DBROOT=myothersafepasswd DBROOT=myothersafepasswd
# ------------------------------
# Misc configuration
# ------------------------------
# You should leave that alone # You should leave that alone
# Can also be 11.22.33.44:25 or 0.0.0.0:465 etc. for specific binding # Can also be 11.22.33.44:25 or 0.0.0.0:465 etc. for specific bindings
SMTP_PORT=25 SMTP_PORT=25
SMTPS_PORT=465 SMTPS_PORT=465
SUBMISSION_PORT=587 SUBMISSION_PORT=587
@ -22,5 +36,6 @@ IMAPS_PORT=993
POP_PORT=110 POP_PORT=110
POPS_PORT=995 POPS_PORT=995
SIEVE_PORT=4190 SIEVE_PORT=4190
HTTPS_PORT=443
TZ="Europe/Berlin" TZ="Europe/Berlin"