Skip to main content

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

Comments

4 comments

  • cPanelWilliam
    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: exigrep $emailid /var/log/exim_mainlog
    The following article may help with this:
    0
  • keat63
    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 spam@yourdomain.com, the email would just get dropped and nothing more would happen.
    0
  • ehabheikal
    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 spam@yourdomain.com, the email would just get dropped and nothing more would happen.

    Is there a way to do this for the whole server?
    0
  • quietFinn
    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.
    0

Please sign in to leave a comment.