Home Forums OS X Server and Client Discussion Questions and Answers Postfix Spam and Antivirus – startup item

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #357360
    Miles
    Participant

    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

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Comments are closed