Errors after following The Perfect SpamSnake (Ubuntu 8.04)

Discussion in 'HOWTO-Related Questions' started by hvrossum, Jun 1, 2008.

  1. mdumdei

    mdumdei New Member

    Thanks - thought it was right but wasn't sure. Found another jeos errata. The script uses rsync which you have to apt-get for jeos. Also the clam_pid line in the script reads:


    when it is actually at:


    (final directory in the path is clamav not clamd)
    I didn't see any instructions to change it but may have missed it. So far your how-to has worked great. The final test will be if I manage to actually filter spam. We've been using a fairly simple Spamassassin setup but I'm hoping to get better results with your config.
  2. vectorite

    vectorite New Member HowtoForge Supporter

    Spamsnake Working

    Thought I'd use this thread to give some feedback on the Great guide! After a few days, the guide and this thread I have the snake working!

    In case others need it here is (so far as I can remember) what I did different from the guide.

    1) (p3) On long list of PHP/Apache progs to install had to remove 'php5-json'

    2) Instead of commenting out from /etc/rc2.d/S20mailscanner:

    #check_dir /var/spool/MailScanner       ${user:-mail} ${group:-mail}
    #check_dir /var/lib/MailScanner         ${user:-mail} ${group:-mail}
    #check_dir /var/run/MailScanner         ${user:-mail} ${group:-mail}
    #check_dir /var/lock/subsys/MailScanner ${user:-mail} ${group:-mail}
    I made it look like this:

    check_dir /var/spool/MailScanner       ${user:-postfix} ${group:-www-data}
    #check_dir /var/lib/MailScanner         ${user:-mail} ${group:-mail}
    #check_dir /var/run/MailScanner         ${user:-mail} ${group:-mail}
    check_dir /var/lock/subsys/MailScanner ${user:-postfix} ${group:-www-data}
    3) Then I removed

    mkdir /var/run/MailScanner
    mkdir /var/lock/subsys
    mkdir /var/lock/subsys/MailScanner
    chown -R postfix:www-data /var/run/MailScanner
    chown -R postfix:www-data /var/lock/subsys/MailScanner
    /etc/init.d/postfix restart
    /etc/init.d/mailscanner restart
    From /etc/rc.local

    4) Changed line in from;


    5) Changed

    MailScanner.conf line

    Run As Group = postfix

    Run As Group = www-data
    I think that was all I did to get it working well at least mostly I still have some postfix/relay/exchange/ issues not covered by the guide I'm working on. I hope this post will save someone some time


Share This Page