SpamSnake Backup EMails

Discussion in 'HOWTO-Related Questions' started by getrav, May 19, 2008.

  1. getrav

    getrav New Member

    How could I save a copy of all emails on the spamsnake with a web interface to search all the backed up email?
    I know this probably will open a whole new chapter on this spamsnake thing but it sure would be cool.
    Any info would be helpful.
     
  2. topdog

    topdog Active Member

    There is no web interface that i know of right now but you can backup the mails using the archive options
    Code:
    Archive Mail = /var/spool/MailScanner/archive
     
  3. Rocky

    Rocky Member

    Getrav,

    Did you set the following in /var/www/mailscanner/conf.php?
    Code:
    define(QUARANTINE_USE_FLAG, true);
    define(QUARANTINE_DAYS_TO_KEEP, n);  -->n represents number of days to keep, must be set
    
    If you've set these options, then the SpamSnake will keep 'n' days of emails. You can then view these quarantine emails in MailWatch by clicking on the quarantine tab. So if you have n set to 7, then you'll see the last 7 days of emails, sorted by date.

    Rocky
     
  4. getrav

    getrav New Member

    Code to save all quarantine.

    OK Quarantine option will work good for now.

    Do I need to add:
    spam actions, high scoring spam actions, and non-spam actions all to "store"?

    If so could you please post the code for my reference.
     
  5. Rocky

    Rocky Member

    Hey,

    You should have the following settings in your /etc/MailScanner/MailScanner.conf file:

    Code:
    Spam Actions = deliver store
    High Scoring Spam Actions = delete store
    Non Spam Actions = deliver store
    
    Rocky
     
  6. getrav

    getrav New Member

    Code:
    High Scoring Spam Actions = delete store
    Non Spam Actions = deliver header "X-Spam-Status: No"
    1. Wouldn't the "High Scoring Spam Actions = delete" just delete the message before it could store it?
    2. Do we need header Non Spam Actions = "X-Spam-Status: No"
     
  7. Rocky

    Rocky Member

    Hey,

    The High Scoring setting will store the mails as well. Check it out, you'll see that it works. You can just replace whatever you have for the 3 Actions settings with the settings i gave you.

    Rocky
     

Share This Page