SPAM folder

Discussion in 'Installation/Configuration' started by grungy, Jun 25, 2009.

  1. grungy

    grungy Member

    Some of the emails that were sent to me are marked as spam and not delivered. How can I tel spamassasin to put the mails on SPAM folder or to automatically create the spam folder if it does not exist?

    TNX
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig uses amavisd as daemon and not spamassassin directly to scan for spam. If you want to filter emails, use the server side filters of the mail accounts.
     
  3. grungy

    grungy Member

    Tnx for the reply.

    I noticed virus and spam mails get quarantined in /var/lib/amavis/virusmails

    My question was regarding the quarantine emails. Does amavis support user level quarantine folders? So that each user has it's own virusmail folder.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Amavis supports also user level quarantining. For details please atke a look at the amavisd documentation, you find it inside the amavisd-new tar.gz that you can download from the website of the amavisd-new project.
     
  5. grungy

    grungy Member

    Having trouble finding a howto on user level quarantining, can you provide with some links?
     
  6. Mark_NL

    Mark_NL Member

    i was also looking for something like that, but haven't found a thing.
    i did however found a web based tool to read the quarantine folder, pretty neat ..

    http://sourceforge.net/projects/mailzu/
     
  7. grungy

    grungy Member

    I found a way for mails not to be stored in the quarantine folder but to be sent to a email per domain, which is not useful in my case but it is something.


    There is a script, which I have not tested yet:

    split amavis's quarantine folder per domain

    PHP:
    #!/bin/sh
    QUARANTINE_PATH="/var/amavis/quarantine"
    LOG_FILE="/var/log/spam-mapping.log"
    PER_USER_QUARANTINE_PATH="/var/amavis/per-domain-quarantine/"

    for i in `find $QUARANTINE_PATH -type f | grep "spam-"`
    do
        
    ENVELOPE_TO=`zcat "$i" | awk '/^X-Envelope-To: .*/ {print $2}' | head -1`
        
    DOMAIN=`echo $ENVELOPE_TO | awk -F @ '{sub(/</,"")};{sub(/>/,"")};{sub(/,/,"")};{print $2}'`
        
    FILE=`basename $i`
        if [ ! -
    "${PER_USER_QUARANTINE_PATH}${DOMAIN}]; then
            mkdir 
    ${PER_USER_QUARANTINE_PATH}${DOMAIN}
        
    fi
        
    if [ ! -"${PER_USER_QUARANTINE_PATH}${DOMAIN}/${FILE}]; then
            mv 
    ${i} ${PER_USER_QUARANTINE_PATH}${DOMAIN}/${FILE}
        
    fi
    done
    http://cms.jezek.ch/blog/archive/2009/01/


    This is a cool plugin -Roundcube Amavis Spam Setting Plugin

    http://www.chemlab.org/2009/04/22/roundcube-amavis-spam-setting-plugin

    [​IMG]
     
    Last edited: Jul 3, 2009
  8. grungy

    grungy Member

    Oh man this program is really cool. Will try it out.

     
  9. Mark_NL

    Mark_NL Member

    thanks for the update, i'll have a look into it as well ;)
     
  10. Nicke

    Nicke New Member

    Please tell me how to configure MailZu with ispconfig 3. I cant get it to work.

    Thanks!
     
  11. voltron81

    voltron81 New Member

    It could be really nice to have this plugin working with roundcube 0.3...
     

Share This Page