This script is designed to manage an email server set up with https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mariadb-on-centos-7
You need to create a file called .connect with 3 lines #####DATABASE NAME #####DATABASE USER #####DATABASE USER PASSWORD
Otherwise the script will not be able to connect to your database.