Why you should use :fail: instead of :blackhole: on a cPanel server

There are several reasons to use :fail: instead of :blackhole: on a cPanel server. In general, both options discard the unrouted emails but they are working quite different way.

WHMCS Complete Billing and Support

Using :blackhole: option:

  1. Incoming emails will be accepted by the server and then it is processed though exim and on delivery it is written to null device (/dev/null) and silently ignores the emails.
  2. This wastes your server’s resources (i.e. Memory, CPU, Disk I/O etc.) because the incoming emails are fully processed by exim before being written to null device (/dev/null).
  3. Since the entire email (including body) is being processed this will waste your bandwidth as well.
  4. Because the blackholed email is still processed through the whole of exim, if any of the usual checks fails, such emails will be placed in your exim mail queue and your email queue may be filled by thousands of such emails. This will increase your server load as well as it affects to normal email delivery as well.
  5. Since this option is silently discard the emails, tis actually breaks the SMTP RFC.

Using :fail: option:

  1. The email is never accepted by the server. During initial SMTP connection, first it verifies the recipient address using RCPT command. If the recipient email address exists on the server, it will process the email. If it does not exist, it issues an SMTP DENY which terminates the attempt to deliver the email.
  2. This saves bandwidth as the email data is never received into your server.
  3. This saves your server resources as well as the email data is never received into your sever.
  4. Since SMTP server sends DENY command, this complies with the SMTP RFC.
  5. Your server does not send a bounce message (just the DENY command) and it does not send anything to the address mention in “From”.
  6. The sender’s email server is responsible to notify original sender.

Kailash Aghera

Posted in cPanel.

Leave a Reply

Your email address will not be published. Required fields are marked *