Hello,
I’m using the mailback script generously provided by AFP548. There’s a function for starting Postfix back up, but it’s not working. Here’s the function:
# this starts the mail system
#
start_server() {
echo “Starting the mail system”
/usr/sbin/serveradmin start mail
# sometimes serveradmin is dumb and doesn’t start postfix
# if it’s already running this should just error nicely
# although we send it to /dev/null anyway
postfix start 2> /dev/null
echo done
}
If I issue the command “sudo /usr/sbin/serveradmin start mail” in the terminal, it does start up, but that’s after I’ve returned in the morning and we’ve missed a bunch of mail.
Is there some way to make this work within the script so we don’t lose mail?
Steve.
Comments are closed