# ------------------------------------------------------------------------------ # Mail systême # ------------------------------------------------------------------------------ # Variable: # * HOSTNAME: Name of the host # * MAINDOM: Default main domain name # ------------------------------------------------------------------------------ export VER_conf_mail="0.0.2" conf_mail() { prnt I "Installation de postfix..." pkginst postfix prnt I "Configuration de postfix..." 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 } precheck_conf_mail() { : # Nothing to check } export -f conf_mail export -f precheck_conf_mail