Search Advanced Search
Categories
Insight Server (165)
WebClient (18)
Insight Connector (65)
Address Book (12)
ExportPST (1)
Search Articles
Advanced Search
Frequently Asked Questions
Search our FAQ to find resolutions to common issues.
Favorite Articles
Search Articles that you have marked as your favorite.
Setting up Global spam filtering using 'plus addressing'
There are two ways to setup Global spam filtering.

One approach is to setup server side filters on each user account telling the server to move the email marked as "spam" into a "Spam" folder. This would require individually touching each user account and could result in a lot of intial work and long-term maintenance.

Another approach is to have a single global policy in place to do the filtering. Plus Addressing can be used to accomplish this task.

Plus addressing is the practice of adding an extension to the username of an email address for the purpose of filing incoming messages automatically. It can be used when subscribing to a mailing list, for example, when you want all mail from that list to arrive directly in a folder set aside for those messages.

In the following example, the user's real email address is 'jerry@example.net'. The user subscribes to a mailing list and wants all mail from that list filed into a folder called 'listmail'. The user uses this email address instead of the real one:

jerry+listmail@example.net

The user's server will recognize the user's name and where to put this message. It will be filed in the user's subfolder called 'listmail' if it exists. If there is no such folder, it will simply be delivered to the user's INBOX.

Leveraging that feature for spam control is easy with the Insight Server.

Edit:
/opt/insight/etc/amavisd.conf

locate the following line:
@addr_extension_spam_maps = ('spam');

Change 'spam' to whatever you want to name the target spam folder.
Note: 'spam' is not the same as 'Spam'. Avoid spaces and characters that are not valid in an email address.

Add this line to the file:
$recipient_delimiter = +


Save the file and restart amavisd:
# /opt/insight/etc/rc/amavisd restart


Configure postfix for plus addressing as described here:
http://www.bynari.net/esupport/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=200070

Ensure that each user has a 'spam' folder under their INBOX, and adjust the ACL on that folder to allow 'anyone' to post to it:

# su cyrus
$ export PATH=/opt/insight/bin:/opt/insight/sbin:$PATH
$ export LD_LIBRARY_PATH=/opt/insight/lib:$LD_LIBRARY_PATH
$ cyradm -u manager localhost
<enter manager password>

localhost.localdomain> setacl user/jerry/spam anyone p<enter>

Any spam addressed to 'jerry@example.net' will be flagged as spam. The address will be rewritten to 'jerry+spam@example.net' and delivered directly to the user's spam folder without user-level involvement.

Print  Email  Save  Comments  Notify Me  Add to Favorites 
Article ID: 200107 Article Created: 02-14-2008 19:43 PMLast Modified: 03-06-2008 15:41 PM

How well did this article answer your question? 100% 75% 50% 25% 0%

Most Recently Viewed Articles
Setting up Global spam filtering using 'plus addressing'
There are two ways to setup Global spam filtering.One approach is to setup server side filters on each user account telling the server to move the email marked as "spam" into a "Spam" folder. This would require individua...
How to Import and Export Rules and Alerts in Outlook
Outlook “Rules and Alerts” can be used to organize incoming email. Thes...
Outlook Contacts does not display as an Address Book
If you find that you are unable to use the default Microsoft "Contacts" (address book) when composing an email, it may be because the default Micros...
My remote users can't relay mail via Postfix using SMTP Authentication and I'm using a Cisco Pix firewall.
The Pix firewall attempts to harden inbound SMTP connections by limiting certain features and abilities available via SMTP. This includes the ability for clients to use SMTP authentication. In order to allow external clients to relay via SMTP using...
Browser timeout with the WebClient
If your sessions time out with the WebClient it may be because your web browser isn't automatically refreshing the folder list as it should be, such as with Firefox. You can increase the session timeout settings in the php.ini file. You will want to e...
ICMP blocks on the firewall interferes with sending mail to some remote users
Internet Control Message Protocol (ICMP) is used in "Path MTU Discovery" (PMTUD) when transmitting packets between hosts to avoid packet fragmentation. PMTUD works by setting the "Don't Fra...
Creating Mailing Lists (aliases) with neonInsight Server
A Mailing List (System Alias) is a single email address that can be a collection of any of the following: Users - user accounts on the local server Contacts - email addresses outside of the local server Groups - a gr...
How to fix emails being blocked by anti-spam devices on certain domains.
The reason that these anti-spam devices are blocking you may be because your Pointer (PTR) and Address(A) records do not match.Outgoing email rejection related to DNS problems is more common today than ever before. There are many things tha...
Spam control quickstart guide - Insight Server 4.2.x, 4.3.x
Here are the steps and recommended settings to get the spam filters that are packaged with Insight Server 4.2.x and 4.3.x up and running quickly.Get a root shell on the server and edit /opt/insight/etc/amavisd.confFind the f...
Enabling Razor on Insight Server 4.2+
Vipul's Razor is a distributed, collaborative, spam detection and filtering network. Through user contribution, Razor establishes a distributed and constantly updating catalogue of spam in propagation that is consulted by email clients to filter out kno...