Block "Mail delivery failed: returning message to sender" from happening!

Jangan

Registered
Jun 24, 2018
4
0
1
Canada
cPanel Access Level
Root Administrator
Dear cpanel,

I'm trying to do some spoof testing on my domain.

The email does not get received BUT i keep getting a failed email as follows.

---------------------

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:

[email protected]

(ultimately generated from [email protected])

Unrouteable address

---------------------

Please help me! how can i just stop this from happening entirely? I don't want this email to be generated or to send back to my spoof service.
 

cPanelWilliam

Administrator
Staff member
Mar 13, 2018
221
41
153
Houston
cPanel Access Level
Root Administrator
Hello!

Could you please provide the full lines for this email from the exim_mainlog file? For example, you could grep for the email ID and get every line related to the specific email transaction that failed:

Code:
exigrep $emailid /var/log/exim_mainlog
The following article may help with this:

Reading and Understanding the Exim_mainlog
 

keat63

Well-Known Member
Nov 20, 2014
1,963
267
113
cPanel Access Level
Root Administrator
In Cpanel under the email section, choose 'default address'
Go to 'advanced'
In there you can choose 'discard (not recommended)'
All undeliverable emails without a response, will get dropped.

In effect, if someone were to email [email protected], the email would just get dropped and nothing more would happen.
 

ehabheikal

Member
Feb 16, 2014
6
0
51
cPanel Access Level
Root Administrator
In Cpanel under the email section, choose 'default address'
Go to 'advanced'
In there you can choose 'discard (not recommended)'
All undeliverable emails without a response, will get dropped.

In effect, if someone were to email [email protected], the email would just get dropped and nothing more would happen.

Is there a way to do this for the whole server?
 

quietFinn

Well-Known Member
Feb 4, 2006
2,042
553
493
Finland
cPanel Access Level
Root Administrator
Is there a way to do this for the whole server?
In WHM -> Server Configuration -> Tweak Settings -> Mail is " Initial default/catch-all forwarder destination ".
" Forwarding destination for a new account’s catch-all/default address. (Users may modify this value via the Default Address interface in cPanel.) “Fail” rejects the message and notifies the remote SMTP server. This is usually the best choice if you are getting mail attacks. “Blackhole” accepts and processes the message but then silently discards it. This avoids notifying the remote SMTP server but violates SMTP RFC 5321 and generally should not be used. "

If you change that it affects only new accounts, and cPanel user can change it.