AFP548

clamav + amavisd startup

hi, i recently installed amavis and clamav with spamsssassin. i tried to get them to startup when postfix starts, but it's not working at all. here is what i added to /System/Library/StartupItems/Postfix/Postfix: . /etc/rc.common StartService () { if [ "${MAILSERVER:=-NO-}" = "-YES-" ]; then ConsoleMessage "Starting mail services" /usr/bin/spamd -d -a su clamav -c /usr/local/sbin/clamd su clamav -c amavisd /usr/sbin/postfix start elif [ "${MAILSERVER:=-NO-}" = "-AUTOMATIC-" ]; then /usr/sbin/postfix-watch fi } StopService () { ConsoleMessage "Stopping Postfix mail services" /usr/sbin/postfix stop killall -1 postfix-watch 2> /dev/null } RestartService () { if [ "${MAILSERVER:=-NO-}" = "-YES-" ]; then ConsoleMessage "Reloading Postfix configuration" /usr/sbin/postfix reload else StopService fi } RunService "$1" i added the clam-update log to cron. when i restart my server, i know it's not running because all mail is refused and i need to start amavis manually each time in order to get mail. also, can someone tell me what this means? Apr 10 20:35:57 charles-x postfix/pipe[15746]: 99AE369531: to=<virusalert@charles-x.com>, relay=procmail, delay=8, status=deferred (temporary failure. Command output: procmail: Couldn't read "/Users/virusalert/.procmailrc" procmail: Program failure (65) of "/usr/bin/cyrus/bin/deliver" ) any suggestions?
Exit mobile version