Configuring an application to send through authenticated SMTP

Authenticated SMTP gives a website or application an explicit sending identity and clearer error reporting than relying on an unspecified local mail path. Use a dedicated authorised mailbox and the connection details published for that account.

Check access and requirements

Check the application supports SMTP with TLS and protect its configuration secrets. Confirm the mailbox is allowed to send the intended message volume and type. Transactional mail and bulk campaigns may need different approved services.

01 Configure an application to send through authenticated SMTP

  1. Open Email Accounts > Connect Devices for the intended address and copy the displayed secure outgoing server settings.
  2. Enter the full mailbox address as the SMTP username and its mailbox password in the application’s protected settings. Do not use the cPanel owner password.
  3. Match the encryption mode and port exactly. Implicit TLS and STARTTLS are different modes; use the provider-supported pairing rather than mixing them.
  4. Set a From address the service permits and a monitored Reply-To address. Save without exposing credentials in a public configuration file or repository.
  5. Send a uniquely named test to an external mailbox. Review the application log and Track Delivery, then test the real notification workflow.

02 Example: match the SMTP port to its encryption mode

These are common submission modes, not a replacement for the settings shown for your mailbox in Connect Devices.

Mode Common port What the application must do
Implicit TLS, often labelled SSL/TLS 465 Start the TLS connection immediately, then authenticate inside that encrypted connection.
STARTTLS 587 Upgrade the SMTP connection to TLS and require that upgrade to succeed before authenticating or submitting mail.

For example, an application set to STARTTLS while connecting to a server port expecting immediate TLS can fail before the mailbox password is checked. Match the hostname, port and encryption mode together, and keep certificate verification enabled. Labels vary between applications, so check the application documentation when a setting is described only as TLS.

Confirm the expected result

The message should arrive with the intended sender, a usable reply address and expected authentication results. Application success normally means SMTP acceptance, so also inspect recipient spam folders when necessary.

Resolve setup problems

Authentication errors usually require checking the full username, password and mailbox restriction. Connection failures can involve DNS, port access or TLS mismatch. Never disable certificate verification as the routine fix for a hostname mismatch; use the correct service hostname.

How should I rotate the password?

Plan the change across every legitimate application using that mailbox, update each protected secret store and verify sending afterwards. A dedicated application mailbox makes this inventory easier.

  • 0 Users Found This Useful
  • cpanel-whm, email
Was this answer helpful?

Related Articles

Creating a business email account in cPanel

Create a mailbox such as [email protected] when you want a separate inbox, password and storage...

Changing an email mailbox password in cPanel

Change a mailbox password when it has been shared, forgotten or exposed. This changes access to...

Opening cPanel webmail securely

Webmail lets you read and send a hosted mailbox’s email in a browser. It is useful for checking...

Forwarding a cPanel email address to another inbox

An email forwarder sends incoming messages for one address to another destination. It can...

Setting an out-of-office autoresponder in cPanel

An autoresponder tells senders when a mailbox owner is unavailable and where urgent requests...