#1  
Old 3rd March 2012, 11:33
goebelmeier goebelmeier is offline
Junior Member
 
Join Date: Nov 2009
Location: Bremen
Posts: 14
Thanks: 2
Thanked 3 Times in 2 Posts
Send a message via ICQ to goebelmeier Send a message via AIM to goebelmeier Send a message via MSN to goebelmeier Send a message via Yahoo to goebelmeier Send a message via Skype™ to goebelmeier
Default Email Filtering

Hello forum,

i'm working a quite long time with ISPconfig 3 yet. But i don't find any solution to create an email filter which catches emails with a specific mail address in To: AND Cc:

I want to filter some emails which are sent to a specific mailing list. Sometimes the mailing lists email address is in To: and sometimes in Cc:

Until now i just can filter emails with that mail address in the To: header. How to combine To: and Cc:

I'm using courier-imap until i find a valid migration strategy to dovecot.
Reply With Quote
Sponsored Links
  #2  
Old 5th March 2012, 09:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,678
Thanks: 819
Thanked 5,318 Times in 4,171 Posts
Default

Maildrop offers more extensive mailfiltering options then dovecot, so when it comes to mail filtering then courier is the more versatile option. Please see here:

http://www.courier-mta.org/maildrop/maildroptips.html

so a if statement to filter to and cc would look like this

Code:
if ( /^TO:a@a.tld/ && / ^CC:b@b.tld/ )
     {
        .........
     }
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 5th March 2012, 10:03
goebelmeier goebelmeier is offline
Junior Member
 
Join Date: Nov 2009
Location: Bremen
Posts: 14
Thanks: 2
Thanked 3 Times in 2 Posts
Send a message via ICQ to goebelmeier Send a message via AIM to goebelmeier Send a message via MSN to goebelmeier Send a message via Yahoo to goebelmeier Send a message via Skype™ to goebelmeier
 
Default

Thank you till,

i created custom filter in custom filter like this:
Quote:
## Custom Exchange ML Filter
`test -e "$DEFAULT/.ML.Exchange" && exit 1 || exit 0`
if ( $RETURNCODE != 1 )
{
`maildirmake -f "ML.Exchange" $DEFAULT`
`chmod -R 0700 "$DEFAULT/.ML.Exchange"`
`echo "INBOX.ML.Exchange" >> $DEFAULT/courierimapsubscribed`
}
if ((/^To: .*mail@example\.com/:h) || (/^CC: .*mail@example\.com/:h))
{
exception {
to $"$DEFAULT/.ML.Exchange/"
}
}
## End Custom Exchange ML Filter
Afterwards i deleted my rule which i created first. I will wait until i receive some emails from my mailing list, but i expect it will be working now. Thank you for your assisstance.
Reply With Quote
Reply

Bookmarks

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
Postfix Cannot Receive Email - Smtp Timed Out newbielinx Installation/Configuration 4 26th September 2011 17:14
Email delivery problem - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2] qiubosu General 58 16th April 2010 12:24
Email delivery problem - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2] qiubosu Installation/Configuration 1 18th January 2010 09:21
hotmail rejects outgoing email nzimas Server Operation 3 1st May 2009 03:39
email forwarding locally consumes all resources rdells General 20 1st May 2006 19:43


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


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