We recommend using our DirectAdmin plugin for best results
This guide will walk you through the process of setting up JetEmail as a smarthost in DirectAdmin. By integrating JetEmail’s advanced features, you’ll enhance your email performance, improve deliverability, and benefit from robust security and streamlined email management.
Setting up DirectAdmin
Edit Exim Configuration
Edit the /etc/exim.authenticators.post.conf
file to include the following configuration:
jetemail_login:
driver = plaintext
public_name = LOGIN
client_send = : Your JetEmail SMTP username : Your JetEmail SMTP password
Replace Your JetEmail SMTP username
and Your JetEmail SMTP password
with your actual JetEmail credentials.
Edit Exim Transports Configuration
Edit the /etc/exim.transports.pre.conf
file to include the following configuration:
driver = smtp
port = 25
hosts_require_auth = $host_address
hosts_require_tls = $host_address
headers_add = "${if def:authenticated_id{X-AuthUser: ${authenticated_id}}}"
interface = <; ${if exists{/etc/virtual/domainips}{${lookup{$sender_address_domain}lsearch*{/etc/virtual/domainips}}}}
helo_data = ${if exists{/etc/virtual/helo_data}{${lookup{$sending_ip_address}iplsearch{/etc/virtual/helo_data}{$value}{$primary_hostname}}}{$primary_hostname}}
hosts_try_chunking =
hosts_try_fastopen =
.include_if_exists /etc/exim.dkim.conf
auth_relay_forward:
driver = smtp
port = 25
hosts_require_auth = $host_address
hosts_require_tls = $host_address
headers_add = "${if def:authenticated_id{X-AuthUser: ${authenticated_id}}}"
interface = <; ${if exists{/etc/virtual/domainips}{${lookup{$sender_address_domain}lsearch*{/etc/virtual/domainips}}}}
helo_data = ${if exists{/etc/virtual/helo_data}{${lookup{$sending_ip_address}iplsearch{/etc/virtual/helo_data}{$value}{$primary_hostname}}}{$primary_hostname}}
hosts_try_chunking =
hosts_try_fastopen =
max_rcpt = 1
return_path = ${srs_encode {SRS_SECRET} {$return_path} {$original_domain}}
.include_if_exists /etc/exim.dkim.conf
Edit Exim Routers Configuration
Edit the /etc/exim.routers.pre.conf
file to include the following configuration:
driver = manualroute
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8
condition = ${if !eq{$original_domain}{$domain}}
condition = ${if !eq{$original_domain}{}}
condition = "${perl{check_limits}}"
transport = auth_relay_forward
route_list = * relay.jetsmtp.net
no_more
smart_route:
driver = manualroute
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8
condition = "${perl{check_limits}}"
transport = auth_relay
route_list = * relay.jetsmtp.net
no_more
Restart Services
After saving, you may need to restart the email services. Go to:
Server Manager -> Service Monitor
Find and restart the following services:
Test Configuration
Send a test email to ensure the new configuration is working correctly.
Additional Configuration (Optional)
For improved deliverability and authentication, consider setting up SPF, DKIM, and DMARC records for your domains.
Troubleshooting
If you encounter any issues:
- Double-check your SMTP credentials
- Verify that port 587 is open in your firewall
- Check the Exim logs for any error messages
- Ensure your account is active and in good standing
For further assistance, contact support.