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!

Global set mail with subject "Undelivered Mail Returned to Sender"

Discussion in 'E-mail Discussion' started by aboyz, Jul 16, 2018.

  1. aboyz

    aboyz Well-Known Member

    Joined:
    Sep 29, 2003
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    166
    Anyway to set a global filter for all users. If subject = "Undelivered Mail Returned to Sender" delete it permanently and not go to user inbox?

    thanks
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,204
    Likes Received:
    228
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @aboyz

    While I don't think this is a good idea because any time you receive this notification it's indicative of a problem you can do this from cPanel>>Email>>Global Filters

    Something like the following should work:
    Code:
    if
     $header_subject: contains "Undelivered Mail Returned to Sender"
    then
     save "/dev/null" 660
    endif
     
    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