#!/bin/bash source /root/envsetup/envsetup.conf # set SMTP if ( ! test -z ${CUST_SMTP} ) then sed -i "s@relayhost = .*@relayhost = ${CUST_SMTP}@" /etc/postfix/main.cf fi