implemented correct conf_mail.sh
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
# Mail systême
|
||||
|
||||
export VER_conf_mail="0.0.1"
|
||||
export VER_conf_mail="0.0.2"
|
||||
|
||||
conf_mail()
|
||||
{
|
||||
prnt I "Installation de postfix..."
|
||||
pkginst postfix
|
||||
|
||||
prnt I "Configuration de postfix..."
|
||||
installfile postfix.cf /etc/postfix/main.cf
|
||||
sed -i -e "s/#HOSTNAME#/$HOSTNAME/g" /etc/postfix/main.cf
|
||||
installfile postfix_main.cf /etc/postfix/main.cf
|
||||
sed -i -e "s/@HOSTNAME@/$HOSTNAME/g" /etc/postfix/main.cf
|
||||
echo $HOSTNAME.$MAINDOM > /etc/mailname
|
||||
svc_restart postfix
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user