How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (2024)

In this Step by Step Guide, I will show you how to setup an SMTP server and connect it to your email marketing applicaiton to send emails with no limits*.

There are several methods to build SMTP servers, in this guide I will build the SMTP server using a free WHM (web hosting manager) software called “Webmin”. It's Like “cPanel” but for free!

What is the SMTP Server?

I don't like robotic definitions like Wikipedia, I love to make things simple. So…

Simply, SMTP is that thing that allows you to send emails over the internet.

SMTP stands for “Simple Mail Transfer Protocol”. It's a Concept in Networking that you don't have to worry about.

Just Know that SMTP is the technical thing that is responsible for delivering emails over the internet.

Let's connect things, how this is related to email marketing?

I think it's clear, but just in case, and As I explained in myTechincal Email Marketing guide, any Email marketing system consists of two parts:

  • The sender:(SMTP service) this is the technical part. It allows you to send emails over the internet.
  • The Management Application, where you can configure and manage your Email Lists, Marketing Campaigns, monitor and analyze results, manage your sending servers, and so on.

So we connect both together to get an Email Marketing System.

So now I think It's SUPER clear, we are going to learn how to build the first part of any email marketing system which the SMTP server.

Need more details?

Maybe you are that person who loves to go deep in topics and understand everything in detail like me ???? if you are that person, you can watch the following 3 minutes video to learn more about SMTP servers and how it works:

What do we mean by Sending Unlimited Emails?

When we say unlimited emails, this means that we can send unlimited emails from our server, there are no restrictions by companies or monthly plans to buy or so.

It's your own server, u can send as much your server can handle in terms of resources. so when you have more (CPU and RAM), you can send more emails and so on.

Setup the SMTP Server, Let's Start!

Ok, So Let's start the real work! but before, you need to know what is required.

Requirements to Setup SMTP Server.

In order to Build and Setup an SMTP Server, you will mainly need two things:

  1. A Domain name
  2. VPS Server with port 25 opened.

1. Domain name

When you send emails, you will be sending from an email address like this one:

mail@h-educate.com

So in my case, “H-educate.com” is the domain name that I use to send my emails. so simply it's required to have a domain name to use when you send emails from your SMTP server.

Usually, it's your website domain name, except if you are working with cold emails, then it's better to get and use another domain in case it got blacklisted, to keep your main business domain safe.

So if you don't have a domain yet, go and get one NOW! in order to continue the Setup.

How to get a domain? simply you buy one! and it costs around 10$ per year, so it's not that big deal!

We have a lot of DOMAIN REGISTRATION PROVIDERS where you can get a domain from like:

  • Godaddy.
  • Namecheap.
  • freenom.
  • Enom.
  • Google Domain.

Here in the course, I will be using Godaddy to get my domain, but you can use any other service if you want, all work in the same way, and if you need any help, I will be here 🙂

You can watch this 3 minutes video to see how to get and buy a domain from Godaddy Domain Registrar if you are a beginner.

Got a Domain? Great! ✔️ Let's continue.

2. VPS Server with Port 25 opened.

The second thing you will need is a VPS server. a public server to install & Setup SMTP on.

What is a VPS server?

If you don't know what is a VPS server, simply its a computer (a server) running in the cloud that you buy from a Web Hosting or Cloud Services company. And it's publicly accessible with a Public IP.

A VPS can be used to host your websites with higher performance, can be used to run a machine 24/7 in the cloud to do any task you want.

Note: If you are interested in learning how to host your own websites on a VPS server, you can

Anyway, In our case, we will be using the VPS Server for Building an SMTP server.

Port 25 open??

I mentioned that the VPS must have port 25 opened, what does this mean?

I don't want to bother your head within deal technical stuff but in short. Any network service or software uses a certain port to communicate over the internet or network. Examples:

  • Connecting remotely to another Windows Machine using RDP software works over port 3389.
  • SQL database systems like MYSQL on our computer works over port 3306.
  • Connecting to a Linux machine remotely to manage it with SSH, uses port 22.
  • When you surf the web and open websites, we use port 80. and so on.

By default, all servers and computers have a firewall running which blocks all ports except the ones you want. so In order to use a certain service, we need to open that port in the firewall.

What you have to know also, that ports can be blocked and opened in two ways, incoming and outgoing, the following diagram will make things clearer:

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (1)

I recommend you to watch my free course “Amazon EC2 for Digital Marketers” you will understand all these concepts in less than an hour.

So, in our case, we are building an SMTP server, and the SMTP software or protocol communicates over port 25. so we need to have port 25 opened.

So when you get a VPS server, just make sure that the company allows Port 25 an don't block it, because some companies do this to protect from spammers.

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (2)

Here is a list of some companies that allows port 25 by default:

  1. Host wind.
  2. Contabo.
  3. Interserver.
  4. OVH.
  5. Digital Ocean*
  6. AWS (some accounts are blocked)

*Digital Ocean Sometimes block some accounts and restrict port 25, but in general they allow all ports.

Are there any other Companies?? yes, simply you can contact the support of any company you want and ask if they block any ports by default. if not, then perfect, you can go with it.

Feel free to use any VPS company you want, It's up to you!

You can also sign up onDigitalOceanthrough the coupon link below to get free 100$ to test everything free.

So Choose your VPS company and let's get one.

After you select your VPS company, just create a VPS Server with the following specifications:

  • Ubuntu 18 x64 as your operating system
  • You can start with 1 CPU/2 GB RAM (And resize later).

Got your VPS? Great! ✔️ Let's continue.

VPS Server basic configuration.

Now we have our new Ubuntu VPS server, Let’s prepare it for out Setup.

Connect to your server, using an SSH client likeputtyorbitvise.

First, check your hostname:

hostname -f

If you don’t see a form ofANYTING.YOURDOMAIN.COM, then you need to change the hostname using the following command:

 sudo hostname host.domain.tld 

Where the host is anything you want. so in my case, my sample domain for this tutorial isxmailing.me, the command will look like this:

sudo hostname server.xmailing.me

Map your domain name.

Now we have our VPS server and we set its name. Go to your Domain Provider and map your Domain to your VPS server. simply open DNS management zone and add a newA recordlike this:

host:server points:YOUR SERVER IP.

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (3)

*server is in my case, you can choose whatever you want for your server name.

Done? ✔️ Let's continue.

Setup SMTP Server

The VPS is ready, and we can start the installation process. So in order to setup SMTP Server on our VPS, we need to install an SMTP software.

Install the WHM (Webmin) Software.

We have several SMTP Software like PowerMTA, Postal, Exim, Postfix…

In this guide, we will be using Postfix as our SMTP software (service). and to make things easy and automated I will install a Web Hosting Manager (Webmin) which installs and configures Postfix automatically (No need for manual configuration and hard stuff).

To Install Webmin, simply run this command on your server:

 wget http://software.virtualmin.com/gpl/scripts/install.sh 

this command will download the installation script, now let's start the setup by running this command:

 sudo /bin/sh install.sh 

So Simple ????

Just wait for the installation to finish, it may take several minutes. Then you will see this success message:

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (4)

Very Nice, Now Open your Web Browser and Navigate to your Server URL To Configure.

The URL will look like this: https://YOUR_SUB_DOMAIN:10000

Webmin uses Port 10000, so be sure to add “:10000” after your server address.

*Note: sometimes Port 10000 may be blocked by the firewall, so you need to open it.

When you open Webmin for the first time, you will see an SSL warning Message, just click continue anyway:

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (5)

Then the login screen will appear:

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (6)

Great! Just enter your root username and password, and log in!

From now on, everything will be managed through the Web interface, so Things will be simple. ✔️

Webmin Basic Configuration

When you log in for the first time, you will see the post-installation wizard.

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (7)

Set the options as the following:

  • Preload Virtualmin Libraries: YES
  • Domain Lookup Server: YES
  • ClamAV Server Scanner: NO (It will use a lot of Resources, Turn On if you have a lot of CPU and RAM)
  • Spamassassin Filter: NO (It will use a lot of Resources, Turn On if you have a lot of CPU and RAM)
  • MariaDB/MySQL Server: YES
  • PostgreSQL: NO
  • Set MySQL password: “ENTER_YOUR_SQL_PASSWORD”
  • MariaDB/MySQL Database Size: Medium
  • DNS Configuration: check the box “Skip check for resolvability“, and click next as in the image below:
How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (8)
  • Password Storage mode: Choose Any, for Higher Security, Select Hashed.

Now, click on re-check and refresh configuration, and wait for the operation to finish. Then you will see this success message:

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (9)

Great! ✔️

Create your Free Business Email

Now our server is ready for the real part, we can create the business email address that we will use as the sender address. to do so, we need to create a virtual server inside webmin using our Domain name.

Create Virtual Server

Click “Create Virtual Server” on the upper left corner of the screen as shown in the image below:

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (10)

Now simply you need to fill your domain name, Description, and password for this virtual server.

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (11)

And Click Create Server ✔️

Create the User Account Email Address

Now we have a virtual server, simply click on Edit users to the left.

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (12)

Then click “Add a User to this server“, the new user wizard will open:

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (13)

Enter any Email you want, like support, mail, admin, or whatever business email you want. Then Enter the name, and the password.

Then click Create.

You Have Now a Free Business Email! ✔️

We are done! your SMTP Server is now ready.

Before You Send!

Congratulations! You Setup your own SMTP Server using Webmin. but before you start sending emails, you have to understand some crucial concepts and follow up on the guidelines to get the best delivery rates and reach the inbox!

Warming Up your SMTP server

When you build a New SMTP Server with a new IP Address, and Before You can Start Sending Your Email Marketing Campaigns, you have towarm up your IP Address.

What is Warming Up IP?

When you have a new Brand IP Address for your SMTP, this IP will have no Reputation on the internet, and ISPs (internet service providers) don't know this IP.

So IP warmup is the practice of building Your Reputation on The Internet by gradually increasing the volume of mail sent with your IP address according to a predetermined schedule.

Example of warming up your server shown in the table below:

Warmup DayEmails To Send
120
250
3100
4300
5500
6700
7900
81000

This Table shows a scenario if you wanna reach 1K emails per day with a good reputation. Please refer to my Warming up SMTP Guide for more details.

Also, you can watch my full video about Warming up here:

Configure SPF, DKIM, rDNS, DMARC, and MX.

SPF (Sender Policy Framework):

AnSPFrecord is a TXT record that is added to your Domain DNS Zone and allows you to set the mail servers that are allowed to sendemailsfrom your domain.

Messages sent from a server that isn’t included in theSPFrecord will be marked as spam or rejected.

As an example, you can’t send an email from your own server and set your sending email as “mail@google.com,”you can’t use google’s domain. It indicates that you are trying to spam.

In the same way, you can configure SPF and prevent anyone from using your domain to send emails, So setting SPF is very important when it comes to making your domain trusted by other mailing providers.

To set up SPF. Open your DNS zone in and add the following record:

v=spf1 a mx ip4:XXX.XXX.XXX.XXX -all

*Replace with your VPS server IP.

Now only your server can send emails from your domain.

Dkim (DomainKeys Identified Mail) :

A Dkim record is also a text record in your DNS that holds a public authentication key. This key will be validated using a private key saved privately inside your server.

All emails will be signed, and this will avoid any alterations and protect your email originality, and this is very important for your server to archive high sending scores.

Watch this video for more info:

Setup Dkim For Webmin Postfix:

To Configure Dkim, we need to configure it on our Server First, then copy the public key to our DNS zone.

Then Click on “Domain Keys Identified Mail” under “Email Settings

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (14)

Then Click Install Now. After the installation finishes, go back again to ” Domain Keys Identified Mail” and you will the options to generate your keys.

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (15)

Keep the Defaults, and then click Save.

Now, Click on DNS records under Server Configuration.

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (16)

Just Copy the Dkim record and create it in your DNS Zone of your Domain, in my case it's Godaddy.

Great! DKIM is Configured. ✔️

rDNS (Reverse DNS):

The reverse DNS is called a pointer record and is used to point your IP to your Domain, its the inverse of the regular DNS A record.

So when you call the IP, you will get the name. It is also an essential factor in setting up your mail server and increasing your sending score and reputation.

Learn more about rDNS here:

DMARC (Domain-based Message Authentication, Reporting & Conformance):

It is a Protocol that uses (SPF)and (DKIM)to determine the authenticity of an email message.

DMARC makes it easier for Internet Service Providers (ISPs) to prevent malicious email practices, such as domain spoofing in order to phish for recipients’ personal information.

It allows email senders to specify how to handle emails that were not authenticated using SPF or DKIM. Senders can opt to send those emails to the junk folder or have them blocked them all together.

To understand the importance of DMARC for your Online Business and how to set up, please watch this video:

MX Record

Mail Exchange (MX) records are DNS records that are necessary for delivering email to your address.

In simple DNS terms, an MX record is used to tell the world which mail servers accept incoming mail for your domain and where emails sent to your domain should be routed to. If your MX records are not pointed to the correct location, you will not receive an email.

Set the MX

Go to your DNS Zone and Create a new MX record and point to your server domain like this:

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (17)

Avoid Spam Factors

Mainly we have Four main factors the determines your spam score:

  • IP Reputation
  • SPF, DKIM, rDNS, and DMARC.
  • Message Body
  • Email List health.

The first two factors are explained above. we still have Message body and Email List Health.

Message body

Simply is the subject and the content of your email. does it look spammy? does it have any spammy keywords and triggers?? this what determines your message score.

Be sure to avoid any of these while creating your Subject lines and Message bodies.

Check this article on Hubspot, to learn more about spam keywords.

You Maybe Also Interested in this article “How To Land Your Emails In Inbox? The Ultimate Guide!”

Email List Health

Simply it's determined by two things:

  • Bounce Rate: How many emails are valid in your list.
  • Spam Traps: does your list contain any spam traps?

Learn more about spam traps and how to avoid in this video:

https://www.youtube.com/watch?v=ZKL9jHMu0LI

And always be sure to validate your email lists and clean it before sending any campaign. check my free online email validation service here.

I think you will be also interested in watching this video:

Follow up My Youtube Channel For Daily Awesome new videos about Email Marketing, Digital Marketing, and Online business stuff to Grow Online.

Also, Join My Email Marketing Newsletter to Get exclusive Email Marketing Tips that I share only with my email subscribers.

[mpp_inline id=”416″]

Finally! Send a Test Email

Now we Setup our SMTP Server. We are ready to send our first email. How to test our server?

Simple, Go to SMTPER.NET and enter your server details as follows:

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (18)
  • SMTP Host: Your Server IP or Domain.
  • Port: 587
  • Login: The Email Account You created.
  • Password: Your Email Account Password.

So, these are the credentials that you can use in any Email Sender Application.

That's it! I hope everything was simple and clear. we setup the SMTP Server!

If you have any problems, you can open your questions on H-asnwers.com

And if you like to get the Full Udemy Course On How to Build SMTP Server and Send Unlimited Emails, you can enroll now with a 95% Special Limited Time Discount.

[hurrytimer id=”604″]

Check Also: PowerMTA Mail Server Full Setup Guide ????

How to Setup SMTP Server and Send Unlimited Emails! (Step by Step Guide) (2024)

FAQs

How do I setup my SMTP server to send emails? ›

How to get started with SMTP
  1. Check the requirements.
  2. Fill out the user profile.
  3. Wait for the approval.
  4. Set up the connection. Connect using server settings. Connect using API.
  5. Configure the sending domain. Add DKIM and SPF records. ...
  6. Add an unsubscribe link.
  7. Additional settings. Limit sending by IP. ...
  8. Track email sending statistics.
Jan 3, 2024

How to send unlimited emails? ›

If you're starting an email campaign and need to send a newsletter to a large number of accounts, you'll need to employ a professional SMTP service, which is a monitored outgoing server that allows you to send unlimited emails without worry, optimising your delivery rate.

How to send unlimited emails in Gmail using an SMTP server? ›

How do I use an external SMTP server and send unlimited emails from my Gmail account? A: You simply set up an SMTP account with a popular provider like SendGrid, Mailgun, Mailjet, or JangoSMTP. Then, you link your SMTP account to your Gmail account.

How do I create my own SMTP server? ›

If you're using Windows, all you need to do is open the Internet Information Services (IIS) Manager console and enter the SMTP Virtual Server settings. There, you should set up the following: Email relay host – typically, you enter localhost IP (127.0. 0.1) to route your emails through the local server.

What should my SMTP settings be for outgoing emails? ›

Outgoing Mail Server Settings (SMTP)
SettingDescriptionExample
SMTP Host NameOutgoing mail server name. Most often smtp.yourprovider.comsmtp.office365.com
SMTP UsernameThe email address you want to set up.yourname@contoso.com
SMTP PasswordThe password associated with your email account.--------
1 more row

Is it easy to setup SMTP server? ›

Luckily, the configuration of SMTP servers is generally very easy – you will simply have to open your email software and add the right SMTP parametres in the settings windows.

How to send 10,000 emails at once? ›

If you can only send 50 emails per address, you will need 200 email addresses (simply 10,000 by 50) to send 10,000 emails. Now, it's recommended to create only 3 email addresses per secondary domain. So, divide 200 by 3. You need 66 to 67 secondary domains.

How to send more than 1,000 emails? ›

To do so, you'll need to use Gmail's built-in Mail Merge solution.
  1. Get a Google Workspace account. In order to send mass email in Gmail directly, you'll need to pay for a Google Workspace account. ...
  2. Click “Compose” and select the Mail Merge icon. ...
  3. Create your email campaign. ...
  4. Click “Send preview” or “Send all”
Feb 19, 2024

How can I send 1000 emails at the same time? ›

The most reliable way to send bulk messages is to use a mailing list service, many of which have free options that let you email up to 5000 subscribers. If you're just sending a one-time message to under 500 addresses, you can usually use your regular email app to get the job done.

How many emails can I send with SMTP? ›

Outbound email messages are limited to 500 per day. Each message can be sent to, at most, 100 recipients. Each recipient of a message counts as one email towards the 500 daily limit.

How do I send bulk emails with SMTP server? ›

You can specify the SMTP server details, specify the email body along with attachments and import your email list and send them emails in bulk.
  1. Send bulk emails using an SMTP server.
  2. Supports SMTP servers with SSL/TLS and authentication.
  3. Save SMTP details for repeat use.
  4. Specify email content in HTML and text.

How can I send 1000 emails at a time in Gmail? ›

How to send mass email in Gmail
  1. Step 1 – Create multiple Gmail accounts (optional) ...
  2. Step 2 – Add your contacts. ...
  3. Step 3 – Group your contacts using labels. ...
  4. Step 4 – Compose the email. ...
  5. Step 5 – Select the email recipients and send your email.
Jan 25, 2024

What is the difference between mail server and SMTP server? ›

The mail server authenticates the email sender and places the new email in the recipient's inbox. Remember that the SMTP language only discusses the message's transmission and not its contents. The email is immediately sent if the recipient's domain has an account connected to the server.

Can I use any SMTP server to send emails? ›

Yes! You can. If you're using other email clients, such as Thunderbird or Outlook, you can use the Gmail SMTP server details to still send emails via your Gmail account. However, remember that SMTP is just for sending email.

What is SMTP configuration? ›

SMTP or Simple Mail Transfer Protocol allows you to send emails from an email application through a specific server. For example, if you want to use your Zoho Mail account to send emails through another email client, you will need to configure the settings in that client with Zoho's SMTP information.

How do I find my SMTP server settings? ›

You can generally find your SMTP email server address in the account or settings section of your mail client. Using a store and forward process, SMTP works with the mail transfer agent to move your email across networks to the right computer and email inbox.

Where is my SMTP setting? ›

Here's how you can find it:
  • Log in to your email account.
  • Navigate to your account settings or options.
  • Look for the SMTP server address in the outgoing mail SMTP settings.

Do I need SMTP server to send email? ›

If you'd like to successfully send emails, SMTP is necessary, especially at an enterprise level with substantial mail flow. Your email server or client uses it to send messages to other servers. That's not the only useful feature: SMTP helps prevent spam by verifying the sender's account before delivering an email.

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Annamae Dooley

Last Updated:

Views: 6421

Rating: 4.4 / 5 (65 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Annamae Dooley

Birthday: 2001-07-26

Address: 9687 Tambra Meadow, Bradleyhaven, TN 53219

Phone: +9316045904039

Job: Future Coordinator

Hobby: Archery, Couponing, Poi, Kite flying, Knitting, Rappelling, Baseball

Introduction: My name is Annamae Dooley, I am a witty, quaint, lovely, clever, rich, sparkling, powerful person who loves writing and wants to share my knowledge and understanding with you.