Discard SPAM Emails

Discussion in 'General' started by AsDsL, May 28, 2009.

  1. AsDsL

    AsDsL New Member

    Hi,
    How do I discard Spam Emails in IPSConfig 3?
    In ISPconfig 2 I just have to click.

    Thanks,
    Tony
     
  2. bajodel

    bajodel Member

    You have to look at the selected "Spamfilter policy" (applied to the specific email domain). On the tab "tag level", tune the item "SPAM kill level".

    Bye..

    bajodel
     
    Last edited: May 29, 2009
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Aditionally you might have to set the final_spam_destiny in the amavisd configuration file from pass to discard.
     
  4. brianhenson

    brianhenson New Member

    What if I wanted to move all spam to a folder on each users mailbox named junk? How would I do that through the panel?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    You can use individual per user email filters for this or modify the global mailfilter script in the /var/vmail folder.
     
  6. jbryner

    jbryner New Member

    I have tried to filter in ISPConfig by the ***SPAM*** that is added to the subject line, and had no luck moving it to the .Spam folder I have created. Is there a syntax that I may be missing?
     
  7. jbryner

    jbryner New Member

    Can you elaborate a bit on how you got it to work? Which route did you take? the filter or the global?

    Thanks in advance.
     
  8. CLC

    CLC New Member

    I've entered the following code to /var/vmail/.mailfilter just above the user maildrop include:

    Code:
    # Move SPAM to trash
    `test -e /var/vmail/$HOST/$USER/.Trash`
    if ( $RETURNCODE != 0 )
    {
      `maildirmake -f Trash /var/vmail/$HOST/$USER`
      `chmod -R 0700 /var/vmail/$HOST/$USER/.Trash`
      `echo INBOX.Trash >> /var/vmail/$HOST/$USER/courierimapsubscribed`
    }
    if (/^Subject:.*\*\*SPAM\*\*/:h)
    {
    to /var/vmail/$HOST/$USER/.Trash/
    }
     

Share This Page