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
# 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 password is "moohoo"
MAILCOW_HOSTNAME=mail.example.org
# ------------------------------
# SQL database configuration
# ------------------------------
DBNAME=mailcow
DBUSER=mailcow
# Please use long, random alphanumeric strings (A-Za-z0-9)
# Run data/assets/passwd/generate_passwords.sh to generate safe passwords
DBPASS=mysafepasswd
DBROOT=myothersafepasswd
# ------------------------------
# Misc configuration
# ------------------------------
# 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
SMTPS_PORT=465
SUBMISSION_PORT=587
@ -22,5 +36,6 @@ IMAPS_PORT=993
POP_PORT=110
POPS_PORT=995
SIEVE_PORT=4190
HTTPS_PORT=443
TZ="Europe/Berlin"