Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st October 2012, 15:59
PVi1 PVi1 is offline
Junior Member
 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 3 Times in 1 Post
Thumbs up HOWTO: Prevent sending copy of spam to remote mailbox

Hello all,

yesterday evening I have found, that my ispconfig is sending copy of spam to user configured remote mailboxes(Send copy to).

Situation: local user mailbox account with filled in "Send copy to" option
OS: Ubuntu 10.04.4 LTS amd64, ispconfig 3.0.4.6, postfix,amavisd, spamassasin, SIEVE, dovecot...

When my server received SPAM, this was properly identified and moved to JUNK folder, which is OK, but after that it continued with sending copy of this SPAM to the use configured remote email(eg. gmail). I don't want to be known as a spammer so I have slightly patched the sieve_filter_1.2.master file and have swapped the position of "Move spam to spam folder" and "Send a copy of email to" code blocks.
After that I have edited all accounts which has Send copy to option filled in and this caused regeneration of sieve rules. Moreover I have checked that each of these accounts has enabled option "Move Spam Emails to Junk directory".

After the minute all sieve rules was regenerated(you can check them in /var/vmail/{$domain}/{$email}/.sieve) like this:
Code:
require ["fileinto", "regex", "date", "relational", "vacation"];

# Move spam to spam folder
if header :contains "X-Spam-Flag" "YES" {
  fileinto "Junk";
  # Stop here so that we do not reply on spams
  stop;
}

# Send a copy of email to bb
redirect "some@email.in";

keep;
The stop keyword prevents of further sieve rules processing, so email is not redirected.

I have attached the patch for sieve_filter_1.2.master.

This tweak works fine for me.

Best regards,

Peter
Attached Files
File Type: txt ispconfig3.0.4.6_sieve_not_fwd_spam_to_cc.patch.txt (611 Bytes, 60 views)
Reply With Quote
The Following 3 Users Say Thank You to PVi1 For This Useful Post:
edge (21st October 2012), pititis (22nd October 2012), till (21st October 2012)
Sponsored Links
  #2  
Old 21st October 2012, 19:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
 
Default

Thanks, I've added it to the bugtracker.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
copy, email, sieve, spam

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Mailbox "Send copy to" field JESUSSAVES General 4 11th October 2011 17:48
HOWTO: Spam control for POSTFIX crypted Tips/Tricks/Mods 90 13th July 2011 21:38
Disabled Spam Filtering still slows down webmail mailbox skoena Installation/Configuration 4 7th February 2010 16:12
Incoming mail for alias mailbox not scanned for spam or viruses vikmur Installation/Configuration 1 18th June 2009 10:49
Reroute spam to different mailbox? farao Installation/Configuration 5 28th September 2005 15:52


All times are GMT +2. The time now is 02:36.


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