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 II
Staff member
Nov 14, 2017
13,266
1,304
363
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