{"id":10369,"date":"2025-07-07T17:22:52","date_gmt":"2025-07-07T17:22:52","guid":{"rendered":"https:\/\/www.webhi.com\/how-to\/?p=10369"},"modified":"2025-07-09T10:08:32","modified_gmt":"2025-07-09T10:08:32","slug":"configure-secure-smtp-server-using-exim","status":"publish","type":"post","link":"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/","title":{"rendered":"Configure a secure SMTP server using Exim"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2025\/07\/EximSmtpEng-3-1024x576.jpg\" alt=\"\" class=\"wp-image-10437\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2025\/07\/EximSmtpEng-3-1024x576.jpg 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2025\/07\/EximSmtpEng-3-300x169.jpg 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2025\/07\/EximSmtpEng-3-768x432.jpg 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2025\/07\/EximSmtpEng-3-150x84.jpg 150w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2025\/07\/EximSmtpEng-3.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>1. Introduction<\/strong><\/p>\n\n\n\n<p>Establishing a secure SMTP server is paramount for ensuring confidential and trustworthy email communications. Exim, a versatile Mail Transfer Agent (MTA) for Unix-like systems, offers extensive customization and robust security features. This tutorial provides a comprehensive guide to setting up and configuring a secure SMTP server using Exim, emphasizing authentication, encryption, and spam mitigation strategies.<\/p>\n\n\n\n<p><strong>2. Prerequisites<\/strong><\/p>\n\n\n\n<p>Before proceeding, ensure you have:<\/p>\n\n\n\n<ul>\n<li>A server running a Unix-like operating system (e.g., Linux).<\/li>\n\n\n\n<li>Root or sudo privileges to install and configure software.<\/li>\n\n\n\n<li>A domain name with administrative access to DNS settings.<\/li>\n\n\n\n<li>Basic familiarity with command-line operations and text editors.<\/li>\n<\/ul>\n\n\n\n<p><strong>3. Installing Exim<\/strong><\/p>\n\n\n\n<p>To install Exim on your system:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt update\n$ sudo apt install exim4 exim4-config exim4-daemon-light<\/code><\/pre>\n\n\n\n<p>For Debian-based systems, this command installs Exim along with its configuration and daemon packages.<\/p>\n\n\n\n<p><strong>4. Configuring Exim<\/strong><\/p>\n\n\n\n<p>Exim&#8217;s configuration is primarily handled through the&nbsp;<code>\/etc\/exim4\/exim4.conf.localmacros<\/code>&nbsp;file. Utilize the&nbsp;<code>dpkg-reconfigure<\/code>&nbsp;tool to set up Exim:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo dpkg-reconfigure exim4-config<\/code><\/pre>\n\n\n\n<p>Follow the prompts to configure your mail server settings, including mail server type, system mail name, and IP addresses to listen on.<\/p>\n\n\n\n<p><strong>5. Securing SMTP with Authentication<\/strong><\/p>\n\n\n\n<p>To prevent unauthorized use of your SMTP server, configure SMTP Authentication (SMTP AUTH):<\/p>\n\n\n\n<ol>\n<li><strong>Enable SMTP AUTH in Exim:<\/strong>Ensure the following lines are present in your Exim configuration:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\"># Enable SMTP AUTH\ndaemon_smtp_ports = 25 : 587<\/code><\/pre>\n\n\n\n<ol start=\"2\">\n<li><strong>Configure Authenticators:<\/strong>Define authentication mechanisms in the Exim configuration file:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">begin authenticators\n\n# Plain text authentication\nplain:\ndriver = plaintext\npublic_name = PLAIN\nserver_condition = ${if eq{$auth2}{${lookup{$auth1}lsearch{\/etc\/exim4\/passwd}}}{1}{0}}\nserver_set_id = $auth1\nclient_send = : $auth1 : $auth2\n\n# Login authentication\nlogin:\ndriver = plaintext\npublic_name = LOGIN\nserver_condition = ${if eq{$auth2}{${lookup{$auth1}lsearch{\/etc\/exim4\/passwd}}}{1}{0}}\nserver_set_id = $auth1\nclient_send = : $auth1 : $auth2<\/code><\/pre>\n\n\n\n<p>Replace&nbsp;<code>\/etc\/exim4\/passwd<\/code>&nbsp;with the path to your password file.<\/p>\n\n\n\n<ol start=\"3\">\n<li><strong>Create the Password File:<\/strong>Generate a password file with usernames and passwords:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\"><em># touch \/etc\/exim4\/passwd<\/em>\n<em># chmod 600 \/etc\/exim4\/passwd<\/em><\/code><\/pre>\n\n\n\n<p>Add user credentials in the format:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">username:password<\/code><\/pre>\n\n\n\n<p><strong>6. Implementing TLS Encryption<\/strong><\/p>\n\n\n\n<p>To secure email transmissions, configure Transport Layer Security (TLS):<\/p>\n\n\n\n<ol>\n<li><strong>Install TLS Support:<\/strong>Ensure OpenSSL or GnuTLS is installed on your system:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install openssl<\/code><\/pre>\n\n\n\n<ol start=\"2\">\n<li><strong>Configure Exim for TLS:<\/strong>Add the following lines to your Exim configuration:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\"># Enable TLS\ntls_advertise_hosts = *\ntls_certificate = \/etc\/ssl\/certs\/exim.crt\ntls_privatekey = \/etc\/ssl\/private\/exim.key<\/code><\/pre>\n\n\n\n<p>Replace the certificate and key paths with your actual file locations.<\/p>\n\n\n\n<ol start=\"3\">\n<li><strong>Obtain SSL Certificates:<\/strong>For secure TLS operation, obtain valid SSL certificates from a trusted Certificate Authority (CA). You can check our&nbsp;<a href=\"https:\/\/www.webhi.com\/cheap-ssl-certificate\" target=\"_blank\" rel=\"noreferrer noopener\">SSL certificates offers<\/a>&nbsp;for reliable SSL in cheap price.<\/li>\n<\/ol>\n\n\n\n<p><strong>7. Configuring SPF, DKIM, and DMARC<\/strong><\/p>\n\n\n\n<p>To enhance email security and prevent spoofing:<\/p>\n\n\n\n<ol>\n<li><strong>SPF (Sender Policy Framework):<\/strong>\n<ul>\n<li>Create a DNS TXT record for your domain:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">v=spf1 mx ~all<\/code><\/pre>\n\n\n\n<p>This record specifies that only mail servers listed in your domain&#8217;s MX records are authorized to send emails on behalf of your domain.<\/p>\n\n\n\n<ol start=\"2\">\n<li><strong>DKIM (DomainKeys Identified Mail):<\/strong>\n<ul>\n<li>Install DKIM support:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install opendkim opendkim-tools<\/code><\/pre>\n\n\n\n<ul>\n<li>Configure Exim to sign outgoing emails with DKIM:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\"># Enable DKIM\ndkim_domain \n= yourdomain.com\ndkim_selector = mail\ndkim_private_key = \/etc\/opendkim\/keys\/yourdomain.com\/default.private<\/code><\/pre>\n\n\n\n<p> Replace `yourdomain.com` with your domain and adjust the private key file path to match your setup. <\/p>\n\n\n\n<ul>\n<li>Generate the DKIM key pair using OpenDKIM:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo opendkim-genkey -t -s mail -d yourdomain.com\n$ sudo mv mail.private \/etc\/opendkim\/keys\/yourdomain.com\/\n$ sudo mv mail.txt \/etc\/opendkim\/keys\/yourdomain.com\/<\/code><\/pre>\n\n\n\n<ul>\n<li>The&nbsp;<code>mail.private<\/code>&nbsp;file is the private key, while&nbsp;<code>mail.txt<\/code>&nbsp;contains the public key, which you&#8217;ll need to add to your DNS records as a TXT entry. (<a href=\"http:\/\/www.opendkim.org\/\">opendkim.org<\/a>)<\/li>\n<\/ul>\n\n\n\n<ol start=\"3\">\n<li><strong>DMARC (Domain-based Message Authentication, Reporting, and Conformance):<\/strong>\n<ul>\n<li>Add a DMARC record to your DNS settings. This record will help specify your policy for email authentication and reporting:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">_dmarc.yourdomain.com. IN TXT \"v=DMARC1; p=reject; rua=mailto:dmarc-reports@yourdomain.com\"<\/code><\/pre>\n\n\n\n<p>This example policy rejects emails that fail DMARC checks and sends reports to&nbsp;<code>dmarc-reports@yourdomain.com<\/code>. (<a href=\"https:\/\/dmarc.org\/\">dmarc.org<\/a>)<\/p>\n\n\n\n<p><strong>8. Configuring Spam Protection<\/strong><\/p>\n\n\n\n<p>One of the major challenges in running an SMTP server is spam prevention. Exim can be configured to filter out spam using several techniques such as RBL (Real-time Blackhole Lists), Greylisting, and filtering via SpamAssassin.<\/p>\n\n\n\n<ol>\n<li><strong>Configure RBLs:<\/strong>\n<ul>\n<li>Configure Exim to use RBLs to block incoming emails from known spam sources:In your Exim configuration file, add the following under&nbsp;<code>acl_smtp_rcpt<\/code>:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">deny   message = Your IP is listed on a black list\n      domain = !+local_domains\n      log_message = RBL block\n      condition = ${if match{$sender_host_address}{${lookup{$sender_host_address}lsearch{\/etc\/exim4\/rbl_blacklist}}}}<\/code><\/pre>\n\n\n\n<p>You can maintain a local list of RBLs or use public ones such as&nbsp;<code>zen.spamhaus.org<\/code>&nbsp;or&nbsp;<code>bl.spamcop.net<\/code>.<\/p>\n\n\n\n<ol start=\"2\">\n<li><strong>Configure Greylisting:<\/strong>\n<ul>\n<li>Greylisting temporarily rejects emails from unknown senders, which is effective in reducing spam. Add the following lines to enable greylisting in Exim:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">delay:\n   driver = accept\n   condition = ${if def:h_Received: {${if match{$sender_host_address}{^.*[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$}{yes}{no}}}{1}{0}}}\n   message = Temporarily rejecting your message. Please try again in 5 minutes.\n   time = 5m<\/code><\/pre>\n\n\n\n<p>This configuration delays the acceptance of emails, making it harder for spammers who typically do not retry sending emails. (<a href=\"https:\/\/www.spamcop.net\/\">spamcop.net<\/a>)<\/p>\n\n\n\n<ol start=\"3\">\n<li><strong>Configure SpamAssassin:<\/strong>\n<ul>\n<li>Install SpamAssassin on your server:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install spamassassin<\/code><\/pre>\n\n\n\n<ul>\n<li>Enable SpamAssassin integration with Exim by adding this to the&nbsp;<code>acl_check_data<\/code>&nbsp;section of your Exim configuration:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\"># Use SpamAssassin\nspamassassin:\n   driver = accept\n   condition = ${if spam{${message_body}}}\n   message = This message is identified as spam<\/code><\/pre>\n\n\n\n<p>This setup configures Exim to filter incoming messages using SpamAssassin and tag them as spam when detected. (<a href=\"https:\/\/spamassassin.apache.org\/\">spamassassin.apache.org<\/a>)<\/p>\n\n\n\n<p><strong>9. Configuring Rate Limiting and Throttling<\/strong><\/p>\n\n\n\n<p>To prevent abuse of your SMTP server and mitigate DoS attacks, it\u2019s important to implement rate limiting and throttling.<\/p>\n\n\n\n<ol>\n<li><strong>Configure Exim for Rate Limiting:<\/strong>\n<ul>\n<li>Add the following to the Exim configuration to limit the number of emails sent per connection and per sender:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">smtp_connect_max = 10\nsmtp_send_max = 100<\/code><\/pre>\n\n\n\n<p>These parameters limit the number of connections and messages allowed from a single client. Adjust them as necessary based on your server&#8217;s performance and usage. (<a href=\"https:\/\/www.exim.org\/exim-html-current\/doc\/html\/spec_html\/\">exim.org<\/a>)<\/p>\n\n\n\n<ol start=\"2\">\n<li><strong>Limit Connections by IP Address:<\/strong>\n<ul>\n<li>Limit the number of simultaneous connections to your server based on the sender&#8217;s IP address. You can achieve this by adding a condition in the ACL (Access Control List):<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">deny   message = Too many connections from your IP address\n      condition = ${if &gt;{$acl_connects}{10}{1}{0}}<\/code><\/pre>\n\n\n\n<p>This will block clients who exceed 10 connections in a short time frame.<\/p>\n\n\n\n<p><strong>10. Testing and Troubleshooting<\/strong><\/p>\n\n\n\n<p>Once the server is configured, it\u2019s crucial to test its functionality. You can use the following methods to check your SMTP server&#8217;s setup.<\/p>\n\n\n\n<ol>\n<li><strong>Test Authentication:<\/strong>\n<ul>\n<li>Use the&nbsp;<code>telnet<\/code>&nbsp;command to verify SMTP authentication:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ telnet localhost 25\nEHLO localhost\nAUTH LOGIN<\/code><\/pre>\n\n\n\n<p>Then, provide a base64-encoded username and password for the SMTP authentication check.<\/p>\n\n\n\n<ol start=\"2\">\n<li><strong>Check for Open Ports:<\/strong>\n<ul>\n<li>Verify that the relevant SMTP ports (25, 587, 465) are open:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo ufw allow 25,587,465\/tcp<\/code><\/pre>\n\n\n\n<ul>\n<li>Use&nbsp;<code>telnet<\/code>&nbsp;or&nbsp;<code>nc<\/code>&nbsp;(netcat) to check if the server is accepting connections on these ports:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ telnet yourdomain.com 587<\/code><\/pre>\n\n\n\n<ol start=\"3\">\n<li><strong>Check Exim Logs:<\/strong>\n<ul>\n<li>Exim\u2019s logs will provide crucial information in case of errors. You can check the Exim log files for debugging:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo tail -f \/var\/log\/exim4\/mainlog<\/code><\/pre>\n\n\n\n<p>The logs will show the connection attempts and any authentication failures.<\/p>\n\n\n\n<p><strong>11. Conclusion<\/strong><\/p>\n\n\n\n<p>In this tutorial, we\u2019ve covered the essential steps for configuring a secure Exim SMTP server. By enabling features such as SMTP authentication, TLS encryption, and SPF\/DKIM\/DMARC protection, you can ensure your SMTP server is robust against unauthorized access and malicious attacks. Additionally, the integration of spam protection measures, rate limiting, and monitoring further solidifies the security and reliability of your email services.<\/p>\n\n\n\n<p>Regularly monitoring the server\u2019s performance and keeping up to date with security patches and best practices is critical for maintaining the health of your SMTP infrastructure.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>References:<\/strong><\/p>\n\n\n\n<ol>\n<li>Exim Official Documentation.&nbsp;<a href=\"https:\/\/www.exim.org\/\">exim.org<\/a><\/li>\n\n\n\n<li>SpamAssassin Official Documentation.&nbsp;<a href=\"https:\/\/spamassassin.apache.org\/\">spamassassin.apache.org<\/a><\/li>\n\n\n\n<li>OpenDKIM Setup Guide.&nbsp;<a href=\"http:\/\/www.opendkim.org\/\">opendkim.org<\/a><\/li>\n\n\n\n<li>Sender Policy Framework (SPF).&nbsp;<a href=\"https:\/\/www.sidn.nl\/en\/\">sidn.nl<\/a><\/li>\n\n\n\n<li>DomainKeys Identified Mail (DKIM).&nbsp;<a href=\"https:\/\/dmarc.org\/\">dmarc.org<\/a><\/li>\n\n\n\n<li>Real-time Blackhole Lists (RBL).&nbsp;<a href=\"https:\/\/www.spamcop.net\/\">spamcop.net<\/a><\/li>\n\n\n\n<li>Ubuntu Exim Setup.&nbsp;<a href=\"https:\/\/ubuntu.com\/server\/docs\/install-and-configure-exim4\">ubuntu.com<\/a><\/li>\n<\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Introduction Establishing a secure SMTP server is paramount for ensuring confidential and trustworthy email communications. Exim, a versatile Mail Transfer Agent (MTA) for Unix-like systems, offers extensive customization and robust security features. This tutorial provides a comprehensive guide to setting up and configuring a secure SMTP server using Exim, emphasizing authentication, encryption, and spam ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[277,3],"tags":[],"yoast_head":"\n<title>Configure a secure SMTP server using Exim - WebHi Tutorials &amp; Documentations<\/title>\n<meta name=\"description\" content=\"Learn how to set up and configure a secure SMTP server using Exim, incorporating best practices for authentication, encryption, and spam protection.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configure a secure SMTP server using Exim - WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"og:description\" content=\"Learn how to set up and configure a secure SMTP server using Exim, incorporating best practices for authentication, encryption, and spam protection.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhi.technology\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-07T17:22:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-09T10:08:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2025\/07\/EximSmtpEng-3-1024x576.jpg\" \/>\n<meta name=\"author\" content=\"webhi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:site\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webhi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/\"},\"author\":{\"name\":\"webhi\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\"},\"headline\":\"Configure a secure SMTP server using Exim\",\"datePublished\":\"2025-07-07T17:22:52+00:00\",\"dateModified\":\"2025-07-09T10:08:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/\"},\"wordCount\":1025,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"articleSection\":[\"Mail Servers\",\"Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/\",\"name\":\"Configure a secure SMTP server using Exim - WebHi Tutorials &amp; Documentations\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\"},\"datePublished\":\"2025-07-07T17:22:52+00:00\",\"dateModified\":\"2025-07-09T10:08:32+00:00\",\"description\":\"Learn how to set up and configure a secure SMTP server using Exim, incorporating best practices for authentication, encryption, and spam protection.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webhi.com\/how-to\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configure a secure SMTP server using Exim\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"name\":\"WebHi Tutorials &amp; Documentations\",\"description\":\"System administration and knowledge base\",\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\",\"name\":\"WebHi Technology\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"width\":288,\"height\":95,\"caption\":\"WebHi Technology\"},\"image\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webhi.technology\",\"https:\/\/twitter.com\/WebHiTechnology\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\",\"name\":\"webhi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1780005063\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1780005063\",\"caption\":\"webhi\"},\"sameAs\":[\"https:\/\/www.webhi.com\/how-to\"],\"url\":\"https:\/\/www.webhi.com\/how-to\/author\/webhi\/\"}]}<\/script>\n","yoast_head_json":{"title":"Configure a secure SMTP server using Exim - WebHi Tutorials &amp; Documentations","description":"Learn how to set up and configure a secure SMTP server using Exim, incorporating best practices for authentication, encryption, and spam protection.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/","og_locale":"en_US","og_type":"article","og_title":"Configure a secure SMTP server using Exim - WebHi Tutorials &amp; Documentations","og_description":"Learn how to set up and configure a secure SMTP server using Exim, incorporating best practices for authentication, encryption, and spam protection.","og_url":"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/","og_site_name":"WebHi Tutorials &amp; Documentations","article_publisher":"https:\/\/www.facebook.com\/webhi.technology","article_published_time":"2025-07-07T17:22:52+00:00","article_modified_time":"2025-07-09T10:08:32+00:00","og_image":[{"url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2025\/07\/EximSmtpEng-3-1024x576.jpg"}],"author":"webhi","twitter_card":"summary_large_image","twitter_creator":"@WebHiTechnology","twitter_site":"@WebHiTechnology","twitter_misc":{"Written by":"webhi","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/#article","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/"},"author":{"name":"webhi","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54"},"headline":"Configure a secure SMTP server using Exim","datePublished":"2025-07-07T17:22:52+00:00","dateModified":"2025-07-09T10:08:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/"},"wordCount":1025,"commentCount":0,"publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"articleSection":["Mail Servers","Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/","url":"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/","name":"Configure a secure SMTP server using Exim - WebHi Tutorials &amp; Documentations","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/#website"},"datePublished":"2025-07-07T17:22:52+00:00","dateModified":"2025-07-09T10:08:32+00:00","description":"Learn how to set up and configure a secure SMTP server using Exim, incorporating best practices for authentication, encryption, and spam protection.","breadcrumb":{"@id":"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhi.com\/how-to\/configure-secure-smtp-server-using-exim\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhi.com\/how-to\/"},{"@type":"ListItem","position":2,"name":"Configure a secure SMTP server using Exim"}]},{"@type":"WebSite","@id":"https:\/\/www.webhi.com\/how-to\/#website","url":"https:\/\/www.webhi.com\/how-to\/","name":"WebHi Tutorials &amp; Documentations","description":"System administration and knowledge base","publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhi.com\/how-to\/#organization","name":"WebHi Technology","url":"https:\/\/www.webhi.com\/how-to\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","contentUrl":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","width":288,"height":95,"caption":"WebHi Technology"},"image":{"@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhi.technology","https:\/\/twitter.com\/WebHiTechnology"]},{"@type":"Person","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54","name":"webhi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/","url":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1780005063","contentUrl":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1780005063","caption":"webhi"},"sameAs":["https:\/\/www.webhi.com\/how-to"],"url":"https:\/\/www.webhi.com\/how-to\/author\/webhi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/10369"}],"collection":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/comments?post=10369"}],"version-history":[{"count":12,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/10369\/revisions"}],"predecessor-version":[{"id":10445,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/10369\/revisions\/10445"}],"wp:attachment":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/media?parent=10369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/categories?post=10369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/tags?post=10369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}