#!/bin/bash rm exim.conf cat exim.conf.tmpl \ | sed -e 's/%HOSTNAME%/'$HOSTNAME'/' \ -e 's#%RELAYNETS%#'$RELAYNETS'#' \ -e 's/%LOCALMAILNAME%/'$LOCALMAILNAME'/' \ -e 's/%SMARTHOST%/'$SMARTHOST'/' \ -e 's/%SMARTHOST_USER%/'$SMARTHOST_USER'/' \ -e 's/%SMARTHOST_PASS%/'$SMARTHOST_PASS'/' \ > exim.conf exim -bd -q15m -v