Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 06:47:02 PM

Pages: [1]   Go Down
  Print  
Author Topic: cPanel and user-level filtering  (Read 2261 times)
PunaroDotCom
Trekkie
**
Offline Offline

Posts: 14


WWW
« on: April 26, 2010, 09:58:30 AM »

Ok, I've done a lot of searching and I'm finding bits and pieces of info, so let me post the question here.

I currently access my main email account via Thunderbird (POP).  In Thunderbird, I have a filter set up to forward email based on several different criteria to a second email account which I access with my mobile device.  The issue is when forwarding via a filter, Thunderbird ignores it's forwarding options (set to forward inline) and always forwards as a .eml attachment.  My new mobile device (a Palm Pre) can not open the .eml files.

Because the chances of getting either Palm or Thunderbird developers to fix either side of this issue is remote, I'm looking for an alternative.  I could set up email filtering in cPanel, but it appears the current version only handles account-wide (not email account-specific) filtering.  So any filter I set up applies to any email address associated with my domain.  That won't work.

Reading cPanel documentation, it appears there is support for user level filtering but I'm guessing this is in a future version of cPanel because I don't see that option.  It appears the only other option is a cumbersome process of building EXIM filters.

My question is: will we see this user-level filtering any time soon, or do I need to start building an EXIM filter file?
Logged
MrPhil
Berserker Poster
*****
Offline Offline

Posts: 5083



« Reply #1 on: April 26, 2010, 02:36:44 PM »

I've been asking for years ( http://www.lunarforums.com/email_with_your_lunarpages_hosting_plan/how_to_setup_a_php_script_to_execute_after_receiving_an_email-t44311.0.html and http://www.lunarforums.com/email_with_your_lunarpages_hosting_plan/exim_filter_forward_mail_to_folder-t38555.0.html;msg285392#msg285392 ) for either a kit or just "how to" information to do things with incoming mail. It would be so nice when a piece of mail comes into a specific address to be able to peek inside it, and based on what my script sees, take any of a number of actions. It can read in the email (remove it from the input queue), or leave it there. It can forward or remail it to other addresses (in my site, or to other domains). It is a general PHP script that can examine addresses and the body for keywords, and take action based on that (where to forward to, whether to raise an alarm, send an autoresponse, etc.). Supposedly, PHP-based "filters" can do at least some of this -- has anyone seen documentation on how to do this in general, or a code kit that I can mix and match? There are autoresponders and filters and forwarders out there, but is there a general way to do it that works on any system?
Logged

PunaroDotCom
Trekkie
**
Offline Offline

Posts: 14


WWW
« Reply #2 on: April 27, 2010, 10:23:54 AM »

Well, I've started down the path of creating an Exim filter script based on this thread and the documentation.

My simple script is forwarding email from certain domains sent to my specific email address at my domain to a second gmail account:

if
 $header_to: contains "me@mydomain.com" and
 (
 $header_from: contains "abc.com"
 or $header_from: contains "xyz.com"
 )
then
 unseen deliver "myotheraccount@gmail.com"
endif


I need to expand this quite a bit still, but it's a start.  I'd still like to know if LP's cPanel is going to be getting the user-level filtering feature, since that would save me all the manual steps.
Logged
PunaroDotCom
Trekkie
**
Offline Offline

Posts: 14


WWW
« Reply #3 on: May 04, 2010, 08:25:12 AM »

Anything?  I'm finding my filter is not working 100%.  Is there any type of logging for EXIM filters?
Logged
Visuex
Newbie
*
Offline Offline

Posts: 1


« Reply #4 on: August 18, 2010, 09:23:33 AM »

Reading cPanel documentation, it appears there is support for user level filtering but I'm guessing this is in a future version of cPanel because I don't see that option.  It appears the only other option is a cumbersome process of building EXIM filters.

Actually it has user-level filtering and has had it for a couple years...it depends on your host for whether or not they give you access to that portion of cPanel.

If they don't give you access, don't panic, there is a way to use the Account-Level Filtering for specific email accounts. In fact I prefer this way because of the fact that all of the filters are listed in one place rather than separated by domain.

I will be creating a tutorial/article on my website www.Visuex.com about email filtering and forwarding discussing the pros and cons of both and yes neither option is perfect.

However in the meantime, here is a screenshot of an example account-level filter that works for a specific email address.



Note- there is also an option for "equals" in the selection where I chose "contains" the reason why you use contains instead of equals is because equals refers to EXACTLY what is in the input field. Which means it is case-sensitive. So if you use equals for "demo@example.com" and someone sends and email to "Demo@example.com" then it won't match and therefore wont redirect. Using contains is case-insensitive meaning it will match the email regardless of any odd capitalization.
« Last Edit: August 18, 2010, 09:29:02 AM by Visuex » Logged
Pogle
Pong! (the videogame) Master
*****
Offline Offline

Posts: 28


« Reply #5 on: August 29, 2010, 04:43:34 AM »

...it appears there is support for user level filtering but I'm guessing this is in a future version of cPanel because I don't see that option.
I have account level and user level filtering now. Maybe you could contact support to get your cPanel upgraded.

From your question I don't see why Visuex's solution wouldn't work.

For more complex filtering have you tried the 'matches regex' (regular expression) option in the filtering page? I'm doing something similar to your requirement with this.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: