headers and cosmetics
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user