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

aboyz

Well-Known Member
Sep 29, 2003
108
0
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
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
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