Click to See Complete Forum and Search --> : Amavis and Postfix at Boottime


mhacleth
09-02-2003, 11:26 PM
I'm using amavisd-new (spamassassin + clam antivirus) as Anti-Spam for Postfix on RH9.

The installation is now working. However, I'd like to know how to automatically run both at boot time.

1) amavisd provided an init script to be placed in /etc/rc.d/init.d/ but displays this error:
Starting amavisd: execvp: No such file or directory [FAILED]

2)for postfix, there was no instruction but just issue this command after boot
#postfix start

Any idea is welcome!
Thanks.:p

mdwatts
09-03-2003, 04:50 PM
Have a look through these G4L search results for "execvp: No such file or directory" (http://www.google.com/linux?hl=en&lr=&ie=ISO-8859-1&q=%22execvp%3A+No+such+file+or+directory%22&btnG=Google+Search) to see if you can find out what if means.

Did the Postfix install also create a init script in /etc/rc.d/init.d? My distro did as part of the install of Postfix.

mhacleth
09-03-2003, 08:57 PM
Thanks Grandmaster mdwatts!!!

shad0w
09-09-2003, 11:12 AM
Here is the script I use for /etc/init.d/sendmail

(it starts POSTFIX, I just left it sendmail so I didn't have to recreate all the links cuz I'm a lazy bastard)

#!/bin/sh
PATH=""
RETVAL=0

if [ ! -f /usr/sbin/postfix ] ; then
echo "Unable to locate Postfix"
exit 1
fi
if [ ! -f /etc/postfix/main.cf ] ; then
echo "Unable to locate Postfix configuration file"
exit 1
fi

case "$1" in
start)
echo -n "Starting Postfix: "
/usr/sbin/postfix start > /dev/null 2>1
RETVAL=$?
echo
;;

stop)
echo -n "Stopping Postfix: "
/usr/sbin/postfix stop > /dev/null 2>1
RETVAL=$?
echo
;;

restart)
echo -n "Reloading Postfix: "
/usr/sbin/postfix reload > /dev/null 2>1
RETVAL=$?
echo
;;
*)
echo "Usage: $0 {start|stop|restart}"
RETVAL=1
esac
exit $RETVAL