The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with filter and forwarding

Discussion in 'E-mail Discussions' started by rhendrix9, Apr 16, 2008.

  1. rhendrix9

    rhendrix9 Member

    Joined:
    Aug 25, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    I'm a little confused.
    I'm using 11.18.3-RELEASE 21703.

    I want to set up a filter forward situation.

    For support situations I need to filter and look for specific emails, then I want to forward the email to a beeper. BUT I still want to get the original email. The beeper probably will not take the full text (size),. I really just need notification and subject.

    I can get the filter or the forward to work. But I can't figure out how to get the email delivered as usual AND get it to forward to the beeper.

    Any suggestions.
    Thanks
     
  2. rhendrix9

    rhendrix9 Member

    Joined:
    Aug 25, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    Ok,
    This seems pretty convuluted but this is what I got to work, (any suggestions appreciated);
    1.set up mail account for the beeper
    2.set up a filter to catch sprecific msg and put in beepers mailbox
    3.set up forwarding to send mail in beeper's mailbox to beeper AND back to the original user inbox.

    now, don't want to use the beeper mailbox, so how do I keep msgs from accumulating, without having to check it all the time?
     
  3. rhendrix9

    rhendrix9 Member

    Joined:
    Aug 25, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    I was really hoping for a little input here.

    Could someone at least tell me if thiere is a more correct or better solution, or is the way I've done this the way to do it?
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Have you considered the following setup:

    - Set up an email forwarder to your beeper's address (or an email account, whichever you prefer)
    - Set up a forwarder for your main email to the above email address. Remember, forwarders copy mail, so a copy will be left on the original email account.

    It is my understanding that beepers are like SMS, messages of excessive length are simply truncated.

    Would that work for your situation?
     
  5. rhendrix9

    rhendrix9 Member

    Joined:
    Aug 25, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    I don't know if I understand of your terminology, specifically
    and wouldn't this
    catch EVERY msg and not just the ones i want. The filter i set up just catches messages from certain addresses.

    I set up a new account so I could filter specific mail to the account, I don't want everything.

    Basically it concerns me that I set up a forward to the beeper AND BACK to the inbox, seems like it could get into a loop. If I could set the filter to copy...

    I Just can't wrap my head around this one.

    Thanks
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Okay, in the case of filtering messages (sorry, I forgot about that), here's what I'd do. Let's assume beeper@ is an email account on the serve for the purpose of only having email that should be retrieved by your beeper (if your beeper cannot retrieve email via POP3/IMAP, don't worry - I'll address that later). Let's assume main@ is your main email address.

    1. Create a forwarder for main@ to beeper@. At this point, both addresses have the same email. From this point forward, anything done to beeper@ will not affect mail@.

    2. Create email rules on beeper@ to filter out any message you do not want.

    3a. If you can retrieve mail via POP3/IMAP, you are done.

    3b.
    If you must have this email sent to an email address that relays mail to your beeper, simply set up an email forwarder for beeper@ to whatever email address you need to forward it to. Note, your mail rules will be processed BEFORE mail is forwarded. This is a nifty trick I use myself to ensure only pertinent emails get sent to my blackberry.

    The issue with this setup is since beeper@ is an actual email account, emails will quickly accrue, occupying disk space. I'd recommend building a quick script that simply empties the contents of the directory where the data for beeper@ is stored (~/mail/domain.com/beeper/ where domain.com is the domain for beeper@).

    There are solutions that are technically more efficient. However, this solution will give you the functionality you need while making it easy to maintain (in case you want more filters).
     
  7. rhendrix9

    rhendrix9 Member

    Joined:
    Aug 25, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    I get everthing but where/how do I set up rules for an account?

    And building a script - what does it remove, everything in that directory (beeper@).
    I have a hosted account, I'm not sure how to run it or even what to write it in php?
    interesting
     
  8. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Two options:
    1. Login to that account via the webmail interface as beeper@ and click on the Email Filters icon at the screen you see when you first login.

    2. OR... Via the cPanel interface, in the Mail section click on "User Level Filters" then click on the button to edit the filters for beeper@

    Actually, I found a related thread that contained a command that will do it for you (no need for scripting). You could just schedule the command as a cron job. You can find details at:

    http://forums.cpanel.net/showthread.php?t=76507
     
  9. rhendrix9

    rhendrix9 Member

    Joined:
    Aug 25, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    Wow thanks!

    However I don't see "user level filtering"

    If I go into horde and set a rule, will it execute without me going into horde again?
     
  10. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Actually, you would click the icon for filters you see before you click into Horde. Horde's functionality is separate from the functionality we present in cPanel and the Webmail interface (outside of Horde, Squirrelmail and Roundcube).

    The cPanel user level filtering (same thing on the screen you first see when you login to the webmail interface, where you select which webmail client you wish to use) will execute without you needing to login to the server.
     
  11. rhendrix9

    rhendrix9 Member

    Joined:
    Aug 25, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    well all thing aren't equal I guess.
    I see;

    [​IMG]

    and if webmail only horde and squirrel;

    [​IMG]

    or mail;

    [​IMG]
     
  12. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Use the X3 theme instead of the old X or X2 themes and you will see what I am talking about :).
     
  13. rhendrix9

    rhendrix9 Member

    Joined:
    Aug 25, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    So, can I change the theme, where do I go?

    cPanel Build 11.18.3-RELEASE 21703
    Theme cPanel X v2.6.0
     
  14. rhendrix9

    rhendrix9 Member

    Joined:
    Aug 25, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    OK Done, I had to request that my hosting provider change the theme

    I more related question - Are the filter comparisons case sensitve?

    ie: does Beeper@MyDomain.com - beeper@mydomain.com
     
  15. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I usually take the stance that unless otherwise stated, it's case-sensitive. However, I believe email addresses may be case insensitive in a cPanel/WHM environment.
     
  16. SageBrian

    SageBrian Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    415
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    NY/CT (US)
    cPanel Access Level:
    Root Administrator
    Did this change recently? I have the latest Current, and setup a simple forward: contact@domainaddress to copy@domainaddress

    I see email for Contact@DomainAddress being rejected with "No Such User Here"

    I never had this issue before.

    Brian

    edit: Nevermind. I just ran another test and things look to be fine again. Maybe it was an extra space or comma somewhere in the forwards file. I recreated the forwards and all is well.
     
    #16 SageBrian, May 15, 2008
    Last edited: May 15, 2008
Loading...

Share This Page