Skip to content

Default address: choose :fail: over :blackhole:

Choose the right cPanel default address setting for email sent to addresses that don't exist on your domain. See why :fail: is the safe choice for most domains, and when :blackhole: or a forward causes lost mail or spam bounces.

When someone emails an address that doesn’t exist on your cPanel domain, such as a typo or a mailbox you deleted, you choose what happens to that message. cPanel calls this setting the default address, and it offers three choices. :fail: refuses the message while the sending server is still connected, so the sender gets a bounce (an error notice) saying the address is wrong. :blackhole: accepts the message and then deletes it, so neither you nor the sender ever learns it was lost. A forward sends every such message to one mailbox you pick, which soon fills with spam.

For most domains, :fail: is the right choice. The other two can hide lost mail from real senders. A forward to another provider can also make your server send bounces to forged sender addresses, a problem called backscatter that hurts your mail reputation.

What’s happening

When Exim receives mail for nonexistent@example.com, it checks the domain’s default-address configuration. :fail: returns a 550 during the SMTP transaction — the sending server sees an immediate rejection and informs its user. :blackhole: accepts the mail (returns 250) and then drops it on the floor — the sender thinks delivery succeeded, the recipient gets nothing. A forward delivers to another address, which is useful for catch-all but rarely the right default.

How to verify

Inspect the current default address for a domain:

cat /etc/valiases/example.com | grep -i default
whmapi1 list_pops_for domain=example.com

The valiases file shows the routing. Send a test message to a guaranteed-nonexistent address and watch the SMTP response.

The fix

  1. Default should be :fail: for almost every domain. This is the correct, RFC-compliant behavior: tell the sender immediately that the recipient doesn’t exist.
  2. Avoid :blackhole: in production. It silently discards mail. A legitimate sender who mistyped an address gets no feedback. A bounce sent to a typo’d address is dropped. The only valid use case is a domain that is intentionally accepting and discarding spam-targeted catch-all addresses — even then, :fail: is often safer because catch-all addresses are themselves spam magnets.
  3. Avoid forward-to-default-address for catch-all unless you genuinely read everything that lands there. Most catch-alls fill with backscatter and harvested-address spam within weeks. If you need to capture mistypes, set explicit forwards on the most common typos, not a blanket catch-all.
  4. Change the setting in cPanel UI under Email > Default Address, or via whmapi1 set_default_address user=<user> domain=<domain> default_address=:fail:.
  5. Audit every domain on the server at takeover. Use find /etc/valiases -type f -exec grep -l blackhole {} \; to surface every silent-discard configuration and fix them.

For environments where the default-address choice was made years ago and nobody remembers why, Stack Harbor audits and corrects them as part of cPanel server administration.