headers and cosmetics

This commit is contained in:
levasseur
2021-09-08 15:47:39 +02:00
parent 2a4e238264
commit cba7107878
20 changed files with 38 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
# ------------------------------------------------------------------------------
# Mail system
# This file is part of the init.sh project
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
# ------------------------------------------------------------------------------
# This file is distributed under 3-clause BSD license.
@@ -20,7 +21,8 @@ conf_mail()
prnt I "Configuration de postfix..."
installfile postfix_main.cf /etc/postfix/main.cf
sed -i -e "s/@HOSTNAME@/$HOSTNAME/g" /etc/postfix/main.cf
sed -i -e "s/@HOSTNAME@/$HOSTNAME/" -e "s/@MAINDOM@/$MAINDOM/" \
/etc/postfix/main.cf
echo $HOSTNAME.$MAINDOM > /etc/mailname
svc_restart postfix
}