Spamassasin Configuration in Virtual Users And Domains With Postfix, MailScanner, ...

Discussion in 'HOWTO-Related Questions' started by mpitanga, Mar 13, 2008.

  1. mpitanga

    mpitanga New Member

    I can't find the files bayes_toks and bayes_seen in the directory /var/spool/MailScanner/spamassassin.

    When I need to modify the directory permissions one message error return to me.

    Regards,
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What exactly are you trying to do, and what's the exact error message?
     
  3. mpitanga

    mpitanga New Member

    HI, I solved the problem...

    Thks
     
  4. Al3x

    Al3x New Member

    Hello.

    Same problem here.

    The problem exactly is in step 7.6:

    http://www.howtoforge.com/virtual-users-domains-postfix-mailscanner-mailwatch-centos5.1-p2

    -------------------------------------------
    -------------------------------------------
    And modify the directory permissions:

    Code:
    chown postfix:apache /var/spool/MailScanner/spamassassin/ /var/spool/MailScanner/spamassassin/bayes_*
    chmod g+rws /var/spool/MailScanner/spamassassin/
    chmod g+rw /var/spool/MailScanner/spamassassin/bayes_*
    -------------------------------------------
    -------------------------------------------

    Folder /var/spool/MailScanner/spamassassin/ is empty, no bayes_* files on server.
    Spammassasin installed by cpan.

    Thanks in advance.
     
  5. Al3x

    Al3x New Member

    I've seen this in the README:

    Code:
    Copy the existing bayes databases and set the permissions:
    
    # cp /root/.spamassassin/bayes_* /etc/MailScanner/bayes
    # chown root:apache /etc/MailScanner/bayes/bayes_*
    # chmod g+rw /etc/MailScanner/bayes/bayes_*
    
    But /root/.spamassassin/ is also an empty folder.

    Regards
     
  6. Al3x

    Al3x New Member

  7. corillon

    corillon New Member

    I had the same issue, but decided to continue to the next steps and finish the How To. Once it was up and running I found this forum post. I went back to "fix" the step and the files that were previously missing were now present.

    I have no idea what step filled them in but they were there and everything seems to running smoothly both before and after. Overall everything went pretty smoothly there were just one or two steps that seemed to be out of order like this one and the /var/www/html/mailscanner step where you need to chmod some files before you have made the directory.
     

Share This Page