BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Update install.sh
aapanel.com6e299c8444b2
diff --git a/conf/postfix/main.cf b/conf/postfix/main.cfindex 6cf9c329..f70790f8 100644--- a/conf/postfix/main.cf+++ b/conf/postfix/main.cf@@ -39,7 +39,7 @@ smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unaalias_maps = hash:/etc/aliasesalias_database = hash:/etc/aliases-mydestination = localhost.localdomain, , localhost+mydestination = localhost.localdomain, localhostrelayhost =mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128mailbox_size_limit = 0diff --git a/install.sh b/install.shindex bb1976d7..10d57959 100644--- a/install.sh+++ b/install.sh@@ -117,6 +117,21 @@ echo -e ""fidone+# Count number of dots in the domain+DOT_COUNT=$(echo "${BILLIONMAIL_HOSTNAME}" | tr -cd '.' | wc -c)++# If only one dot, prepend "mail."+if [ "${DOT_COUNT}" -eq 1 ]; then+ ADD_MAIL_BILLIONMAIL_HOSTNAME="mail.${BILLIONMAIL_HOSTNAME}"+ echo "Postfix myhostname configuration use: ${ADD_MAIL_BILLIONMAIL_HOSTNAME}"+fi++# Ensure ADD_MAIL_BILLIONMAIL_HOSTNAME is always set (fallback to original if empty)+if [ -z "${ADD_MAIL_BILLIONMAIL_HOSTNAME}" ]; then+ ADD_MAIL_BILLIONMAIL_HOSTNAME="${BILLIONMAIL_HOSTNAME}"+ echo "Postfix myhostname configuration use: ${ADD_MAIL_BILLIONMAIL_HOSTNAME}"+fi+if [ -a /etc/timezone ]; thenSYSTEM_TIME_ZONE=$(cat /etc/timezone)elif [ -a /etc/localtime ]; then@@ -1235,6 +1250,7 @@ Init_Billionmail()}+Billionmail(){cat << EOF > billionmail.conf# Default Billion Mail Username password@@ -1245,7 +1261,7 @@ ADMIN_PASSWORD=${ADMIN_PASSWORD}SafePath=${SafePath}# BILLIONMAIL_HOSTNAME configuration-BILLIONMAIL_HOSTNAME=${BILLIONMAIL_HOSTNAME}+BILLIONMAIL_HOSTNAME=${ADD_MAIL_BILLIONMAIL_HOSTNAME}# SQL NAME and USER and PASSWORD configuration