UnderHost
Knowledgebase Docs

Default Address in cPanel: handle unmatched mail

Use cPanel Default Address to control what happens when someone emails an address that does not exist on your domain.

On this page

The cPanel Default Address controls what happens to email sent to an address that does not exist on your domain. For example, if sales@example.com does not exist and someone sends mail to it, Default Address decides whether the message is rejected, discarded, or forwarded somewhere else.

Default Address options

OptionWhat it doesRecommended?
Fail with messageRejects mail to unknown addresses with a delivery failure.Yes, usually best.
DiscardDeletes mail to unknown addresses without delivery.Use only if you understand the risk.
Forward to email addressCreates a catch-all destination for unknown addresses.Use carefully; it often attracts spam.
Pipe to programSends mail to a script.Advanced only.

Set the default address

  1. Log in to cPanel.
  2. Open Email and choose Default Address.
  3. Select the domain.
  4. Choose whether to fail, discard, forward, or pipe mail to a program.
  5. Click Change.

For most domains, UnderHost recommends rejecting unknown addresses with a clear failure message. This tells legitimate senders the address is wrong and avoids silently losing mail.

Catch-all caution

A catch-all forwards mail for every unknown address at your domain. That can sound convenient, but it also means spam sent to random addresses such as abc123@example.com lands in your mailbox.

Catch-all addresses can flood a mailbox

If a domain receives dictionary-attack spam, a catch-all can fill your mailbox and hosting disk quickly. Use named mailboxes or forwarders for addresses you actually need.

Troubleshooting

  • Expected mail is bouncing: create the real mailbox or forwarder instead of relying on Default Address.
  • Too much spam is arriving: stop forwarding unknown addresses and set Default Address to fail.
  • Mail disappears silently: check whether Default Address is set to discard.
  • Only one address should redirect: use Email Forwarders, not a catch-all.

Related: How to create and manage email accounts in cPanel | Email forwarders in cPanel: redirect mail to another address | How to set up email forwarders in cPanel | Not receiving email-why and how to fix it | Why is my email going to spam?

Was this article helpful?

Need cPanel hosting or licensing?

Use UnderHost cPanel hosting or add cPanel/WHM to a VPS or dedicated server for familiar website, email, DNS, and database management.

Related articles

Back to cPanel