HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   General (
-   -   Discard SPAM Emails (

AsDsL 28th May 2009 20:07

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


bajodel 29th May 2009 01:52

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".



till 29th May 2009 08:41

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

brianhenson 31st May 2009 05:53

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?

till 31st May 2009 11:06

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

jbryner 23rd July 2009 00:14

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?

jbryner 23rd July 2009 05:06

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.

CLC 16th August 2009 21:32

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


# 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/

All times are GMT +2. The time now is 03:33.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.