We recommend using our cPanel® plugin for best results

This guide on setting up a smarthost in cPanel with JetEmail, we’ll show you how to enhance your email performance by integrating JetEmail’s advanced features. JetEmail is designed to deliver premium results, including improved deliverability, robust security, and streamlined email management. We’ll walk you through the process of configuring cPanel to route your emails through JetEmail’s smarthost, ensuring that your email system operates at its best with optimal reliability and efficiency.

Setting up WHM

1

Configure Exim

Log into WHM -> Home -> Service Configuration -> Exim Configuration Manager Set the following:

  1. Use the reverse DNS entry for the mail HELO/EHLO if available – Set to OFF
  2. SPF include hosts for all domains on this system – Set to spf.jetsmtp.net
  3. Enable Sender Rewriting Scheme (SRS) Support – Set to ON
2

Setup Smarthost

In Web Host Manager go to Home »Service Configuration »Exim Configuration Manager

Click Advanced Editor

Find Section: AUTH and add

jetemail_login: 
driver = plaintext 
public_name = LOGIN 
client_send = : YOURUSERNAME : YOURPASSWORD

Replace YOURUSERNAME with your jetemail SMTP username

Replace YOURPASSWORD with your jetemail SMTP password

Find Section: POSTMAILCOUNT

remoteserver_route: 
driver = manualroute
.ifdef SRSENABLED
# if outbound, and forwarding has been done, use an alternate transport
transport = ${if eq {$local_part@$domain} \
{$original_local_part@$original_domain} \
{jetemail_smtp} {jetemail_forward_smtp}}
.else
transport = jetemail_smtp
.endif
domains = !+local_domains 
ignore_target_hosts = 127.0.0.0/8 
route_list = * relay.jetsmtp.net::25 randomize byname 
host_find_failed = defer 
no_more

Find Section: TRANSPORTSTART

jetemail_smtp:
driver = smtp
hosts_require_auth = *
tls_tempfail_tryclear = true
headers_add = X-AuthUser: ${if match {$authenticated_id}{.*@.*}\
{$authenticated_id} {${if match {$authenticated_id}{.+}\
{$authenticated_id@$primary_hostname}{$authenticated_id}}}}
dkim_domain = ${lookup{$sender_address_domain}lsearch,ret=key{/etc/localdomains}}
dkim_selector = default
dkim_canon = relaxed
dkim_private_key = "/var/cpanel/domain_keys/private/${dkim_domain}"


jetemail_forward_smtp:
driver = smtp
hosts_require_auth = *
tls_tempfail_tryclear = true
headers_add = X-AuthUser: ${if match {$authenticated_id}{.*@.*}\
{$authenticated_id} {${if match {$authenticated_id}{.+}\
{$authenticated_id@$primary_hostname}{$authenticated_id}}}}
dkim_domain = ${lookup{$sender_address_domain}lsearch,ret=key{/etc/localdomains}}
dkim_selector = default
dkim_canon = relaxed
dkim_private_key = "/var/cpanel/domain_keys/private/${dkim_domain}"
.ifdef SRSENABLED
return_path = ${srs_encode {SRS_SECRET} {$return_path} {$original_domain}}
.endif
max_rcpt = 1
3

Optional Configuration

Find Section: RETRYSTART

* data_4xx F,4h,1m
* rcpt_4xx F,4h,1m
* timeout F,4h,1m
* refused F,1h,5m
* lost_connection F,1h,1m
* * F,6h,5m

Find Section: RETRYBLOCK

+secondarymx * F,4h,5m; G,16h,1h,1.5; F,4d,8h
* * F,2h,15m; G,16h,1h,1.5; F,4d,8h
* auth_failed