This is a step by step guide how to make your own bulk email server over VPS/Own Server. If you follow each step you should be able to send 1 million emails in Inbox everyday.
Step 1 Prerequisites-
System Requirement-
- A good VPS provider
- A good DNS provider
- Minimum 4GB Ram, 2 vCPU and SSD Storage preferrably NVME
- OS – Ubuntu 16.04/18.04
- A good PHP & MySQL based email sending software (preferrably paid)
Step 2 Make DNS Entries-
- A Record
- MX Record
Step 3 Installation-
Considering the VPS provider has provided you with root access to Ubuntu 16.04/18.04 server
- nano /etc/hostname – set hostname eg mail
- nano /etc/hosts -eg. Add Your external IP FQDN mail
- hostname mail
- Do a hostname -f – should display FQDN
- apt-get update
- cd /
- mkdir downloads
- cd downloads/
- mkdir virtualmin
- cd virtualmin/
- wget http://software.virtualmin.com/gpl/scripts/install.sh
- /bin/sh install.sh
Step 4 Configure Virtualmin-
- Access Virtualmin using https://FQDN:10000
- Enter your root ID and password
- It will take you to post installation wizard click next
- Next every where click on use more ram option and click next until you get to mysql page
- on mysql page do not select more ram for postgremysql option
- set your mysql password
- select hashed option for more security
- Enter your name servers from DNS provider and click skip check resolvability
- Once post-intsallation wizard is complete click on recheck and refresh configuration
- Click on bell icon on the right and install all updates available
Step 5 Configure the server-
- On the left hand side click on edit databases and then add a new database
- Give name as per your mailing software and enter a password
- click on Additional options and select UTF-8 Unicode and UTF-8 General ci
- Click on edit users add new user name @domainname.com
- Click on permissions and give permission to the newly created database
- Go to Virtual Server configuration Click on SSL certificate and then click on last tab lets encrypt
- make a custom request rather than defaul for the following mail.domain.com and domain.com
- Now click on each option and apply certificate on each element ie postfix,usermin,webmin etc
- Close the tab and now open the URL again you should be secured now
Step 6 Setup Elements of postfix:
- Go to webmin->Servers-> postfix mail server->SMTP client options and at the end check the text box enable TLS and save- This will configure TLS
- Go to email settings and click on DKIM option
- Click on sign outgoing email and setup the identifier ie 2005
- Click ave this will install the DKIM filter
- Come back and it will show the DKIM key put it as a text record with the DNS provider
- Make an spf entry v= spf1 mx ~all with your DNS provider
- Setup DMARC now by going into webmin->BIND DNS Server-> Bottom Right click your domain Name-> Then click on DMARC and setup your DMARC policy and click ok- DMARC installed pick up the DMARC record and paste it is a TXT record with your domain provider
- Send a test email on gmail it should show SPF,DKIM,DMARC pass
- Setup reverse DNS on the VPS
Step 6 Warmup your IP-
Week 1 | Daily Volume |
---|---|
Day 1 | 200 |
Day 2 | 500 |
Day 3 | 1,000 |
Day 4 | 2,000 |
Day 5 | 5,000 |
Day 6 | 10,000 |
Day 7 | 20,000 |
Week 2 | |
Day 8 | 40,000 |
Day 9 | 100,000 |
Day 10 | 250,000 |
Day 11 | 500,000 |
Day 12 | 1,000,000 |
All Set Enjoy!

0 Comments