Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Forwarding emails to multiple accounts question

Discussion in 'E-mail Discussion' started by edmondteng, May 21, 2018.

  1. edmondteng

    edmondteng Registered

    Joined:
    May 21, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Malaysia
    cPanel Access Level:
    Root Administrator
    Hi All,

    i have some issue on below problem,

    my setting,
    i send group forwarding as below:

    main email address:
    all@email.com.my

    forward to :
    1. user-1@email.com.my
    2. user-2@email.com.my
    3. user-3@email.com.my

    when user-1@email.com.my send to all@email.com.my
    it will receive user-1@email.com.my.
    have any solution to solve and permanent delete the user-1@email.com.my

    the actual process:
    when from is user-1, and to is equal to user-1 then permanent delete.
    when from is user-2, and to is equal to user-2 then permanent delete.


    Many thanks for help.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. edmondteng

    edmondteng Registered

    Joined:
    May 21, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Malaysia
    cPanel Access Level:
    Root Administrator
    Good Morning Lauren,

    thanks for the solutions.
    but this could not use on my situations, because all@email.com is forwarder mail, while i receive is show send from all@email.com.

    user1@email.com --> all@email.com --> user1@email.com
    user1@email.com --> all@email.com --> user2@email.com
    user1@email.com --> all@email.com --> user3@email.com

    while i use filtering on user1@email.com as below:-
    from user1@gmail.com
    equal user1@gmail.com
    Discard message
    is no function while all@email.com send to user1@gmail.com

    but the sender is all@email.com to user1@email.com
    if i use filtering from all@email.com, then i totally cannot receive all@email.com.
    have any advice?
    Many thanks for helps.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello,


    Can you let me know if this works for you?

    Code:
    if
     $header_from: is "user1@email.com"
     and $header_to: is "all@email.com"
    then
     save "/dev/null" 660
    endif
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. edmondteng

    edmondteng Registered

    Joined:
    May 21, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Malaysia
    cPanel Access Level:
    Root Administrator
    Morning,

    so sorry i don't know where to place this code,
    can you teach me step by step?
    many thanks
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @edmondteng

    I pulled that directly from my filter file. You can add these through the UI by going to cPanel>>Email>>Filters.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice