This is probably an easy question, but what is the best way to implement a startup item that will launch spamassassin and clamav? I tried to add teh last two lines from the tutorial to the postfix item, but they don’t launch at startup.
From Postfix Startup Item:
[code:1:0c9f039c8c]StartService ()
{
if [ "${MAILSERVER:=-NO-}" = "-YES-" ]; then
ConsoleMessage "Starting mail services"
/usr/sbin/postfix start
su clamav -c amavisd
freshclam -d -c 2 -l /var/log/clam-update.log
elif [ "${MAILSERVER:=-NO-}" = "-AUTOMATIC-" ]; then
/usr/sbin/postfix-watch
fi
}
[/code:1:0c9f039c8c]
Easy fixes?
Thanks,
Miles
Comments are closed