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.

Global Filter for Rejecting Emails

Discussion in 'E-mail Discussions' started by Umang Parekh, Feb 24, 2017.

Tags:
  1. Umang Parekh

    Umang Parekh Registered

    Joined:
    Feb 21, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Hello,

    I am looking to create a Global Filter which can do the following.
    Block all incoming emails which have
    FromEmail address not equal to the reply_to address.

    so if any incoming email has fromemail abc@xyz.com and replyto is set to pqr@abc.com must be rejected.

    If anyone knows how this can be achieved then please suggest.
     
  2. sktest123

    sktest123 Well-Known Member

    Joined:
    Jan 31, 2017
    Messages:
    69
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    kochin
    cPanel Access Level:
    Root Administrator
  3. Umang Parekh

    Umang Parekh Registered

    Joined:
    Feb 21, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Thank you for the prompt response but the links do not solve my problem.
    What I am looking to do is not explained in the links.
    I think we need to create a filter using if then else.
    where the if part has from_email not equal to reply_to email then reject else proceed.

    If someone can help on this would be great.
     
  4. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    588
    Likes Received:
    88
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    You mean like this:


    The Filter has matched the following condition(s):
    $header_from: is abc@xyz.com and $reply_address: contains pqr@abc.com
    $reply_address: contains pqr@abc.com
    $header_from: is abc@xyz.com
    Return-path copied from sender

    Save message to: /dev/null 0660
     

    Attached Files:

    #4 Jcats, Feb 24, 2017
    Last edited: Feb 24, 2017
  5. Umang Parekh

    Umang Parekh Registered

    Joined:
    Feb 21, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Problem is We are receiving spam emails from unknown senders. So we are looking for a global filter with wildcard entry such as.
    when an incoming email hits the server our global filter will check if the incoming email has set from email and reply to address as the same.
    Code:
    From: admin@****.co.za [mailto:21168289@****.co.za]
    Sent: Thursday, February 9, 2017 12:38 PM
    Subject: Re: Purchase Order
    
    Here the from email is admin@****.co.za and while replying to this email a new email address comes upfront i.e 21168289@****.co.za
    We are looking to block such incoming emails who have this criteria where sender email is different from the replyto email address.
     
    #5 Umang Parekh, Feb 25, 2017
    Last edited by a moderator: Feb 25, 2017
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,037
    Likes Received:
    1,280
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page