SMTP-Authentication

On a cPanel/WHM server, outgoing email should normally require SMTP authentication. That means users must sign in with their email address and password before the server allows them to send mail. Older setups sometimes used POP-before-SMTP. With that method, a user who logged in through POP or IMAP could send mail for a short time without authenticating again over SMTP. This is less secure because it can allow temporary relay access from that IP address. The better approach is to keep POP-before-SMTP disabled and require proper SMTP authentication for all outgoing mail.

Why Require SMTP Authentication?

  • Better security – Only users with valid mailbox credentials can send mail
  • Lower spam risk – Reduces the chance of unauthorized relay abuse
  • Improved trust – Authenticated mail is easier to align with modern email practices
  • Cleaner server reputation – Helps limit misuse of your mail server

How to Disable POP-before-SMTP in WHM

On modern cPanel servers, this setting is controlled in WHM.

1. Log in to WHM
Sign in as the root user.

2. Open Tweak Settings
Go to Server Configuration → Tweak Settings.

3. Open the Mail section
Click the Mail tab.

4. Find the Pop-before-SMTP option
Look for:
Allow users to relay mail if they use an IP address through which someone has validated an IMAP or POP3 login within the last hour (Pop-before-SMTP)

5. Turn it Off
Set this option to Off.

6. Save the changes
Scroll down and click Save.

Once this is disabled, users should authenticate through SMTP when sending mail, instead of relying on a recent POP/IMAP login.

Optional: Restart the Mail Service

In most cases, saving the Tweak Settings change is enough. If you want to refresh the mail service after making related changes, restart Exim:

/scripts/restartsrv_exim

How to Verify SMTP Authentication

To confirm the setup is working:

  1. Open an email client such as Outlook, Thunderbird, or a mobile mail app.
  2. Add or edit the mailbox settings.
  3. Make sure SMTP authentication is enabled.
  4. Use the full email address as the username.
  5. Enter the correct mailbox password.
  6. Send a test email.

If the message sends successfully with SMTP authentication enabled, the server is requiring authenticated outbound mail as expected.

Important Notes

  • On current cPanel/WHM versions, POP-before-SMTP is usually disabled by default.
  • Keep it disabled unless you have a specific reason to use it.
  • cPanel does not recommend POP-before-SMTP because it can create unnecessary relay risk.
  • Mail clients should always be configured with:
    • SMTP authentication enabled
    • Correct outgoing server
    • Valid email username and password

Final Thoughts

Requiring SMTP authentication is one of the simplest ways to protect a cPanel mail server. By keeping POP-before-SMTP turned off in WHM Tweak Settings, you help ensure that only authorized users can send mail through the server.

If you need help checking mail settings or testing authentication on your server, contact bodHOST support for assistance.

Learn more in the knowledge base: How To Force SMTP Authentication In cPanel

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

IP-Address

Public vs. Private IP Address: What’s the Difference

Every device on a network needs an IP address to communicate with other devices and…

The Collaborative Work for All Solutions Zimbra

With hosted solutions, Zimbra allows all companies to have a collaborative system for sharing, mail,…

What Is VLAN – How Do I Create It?

What is a VLAN?VLAN stands for Virtual Local Area Network. Technically, VLAN or virtual LAN…