How To Setup Your Own SMTP Server
How To Setup Your Own SMTP Server
*******************************************
Hey guys, finally the moment you’ve been waiting for, not having to
waste money on shitty SMTP and own the limits of your mailing. You can
say bye bye to being a script kiddie in this area. Time to learn how to
build your very own SMTP.
WHAT YOU WILL NEED:
1. Common fucking sense.
2. Don’t act like you’re smarter than the teacher.
3. A free domain.
4. An OpenVZ VPS.
5. The tools I provide you.
6. Calm nerves.
This tutorial is to be read from the beginning to the end, if possible read
twice line by line as you follow the guide for the first timers. If you can’t
read without skipping some parts this tutorial is not for you and just opt
to get a refund. Lol, just kidding. Don’t expect a refund once I have sent
this package to you. GL.
2|Page
*Some VPS providers ask for hostname when purchasing you can use
your free registered domain with the subdomain "vps" in front of it e.g.
"vps.boston.ml" or you can input any random thing e.g. "abc.123.com"
3. Add your domain name e.g. boston.ml by clicking the "Add site"
option, select the free website security option and proceed to the
DNS record part.
NB: it will tell you your site could not be scanned so click “continue”
and it should provide you with two nameservers you should input in
the freenom website.
3|Page
freely, go to the "management tools" option and select
“nameservers”.
6. Here you are going to input these records accordingly in the DNS
section of your domain account in cloudflare:
TYPE NAME VALUE
A @ MAIN_SERVER_IPv4
A HOSTNAME MAIN_SERVER_IPv4
A slot0 MAIN_SERVER_IPv4
AAAA @ MAIN_SERVER_IPv6
AAAA HOSTNAME MAIN_SERVER_IPv6
AAAA slot0 MAIN_SERVER_IPv6
CNAME www @
MX @ HOSTNAME.EXAMPLE.COM
TXT @ @
TXT @ v=spf1 mx a a:domain.com ip4:198.46.150.192 ~all
4. When the installation is done, and you have saved your login
details, input these commands accordingly:
# Install nano text editor
yum -y install nano
6|Page
5. Now we are going to raise the email sending limits of the smtp,
follow these instructions, input these commands accordingly:
# Open the file limits.conf
nano /etc/security/limits.conf
# Input the text below at the bottom of the file before "#End of
file" (please include the *)
* soft nofile 65535
* hard nofile 65535
6. press "Ctrl+X" to exit and press "Y" to save, then press enter to
proceed to the command line terminal.
8. Log into the VestaCP with the login details you saved after your
VPS has been restarted, go to the VestaCP URL which is
"your.vps.ip.addy:8083/"
9. Click on "WEB",
7|Page
Select “add web domain” located on the “+” symbol and add
your freely acquired domain name, untick "DNS Support" e.g.
"boston.ml" and not your hostname "vps.boston.ml" take note.
Hover over your domain and not your hostname and select
“add new account” under the navbar that appears, e.g. In my
case I will select "add account" under "boston.ml".
12. You will need Bitvise SSH Client for this. In the attached zip file I
sent you, extract the file and then connect to your VPS and
open your SFTP window (with Bitvise SSH Client), copy the
8|Page
PowerMTA4.5r1.rpm in the “pmta” folder” to your “root” folder
in your VPS, then type these commands in your command line
terminal:
# Install PowerMTA
Preparing...
########################################### [100%]
1:PowerMTA
########################################### [100%]
9|Page
system. Installation will continue, but in order to be able
to
start up PowerMTA you will need to stop the other software
or reconfigure PowerMTA to use an alternative port. See the
manual section about startup problems for more information.
*** WARNING ***
10 | P a g e
13. Make some directories on the VPS using these commands in the
command line terminal accordingly:
mkdir /etc/pmta/dkim
mkdir /etc/pmta/files
mkdir /etc/pmta/log
14. Rename the "license.dat" file in the zip I gave you to "license"
(basically remove the ".dat" extension).
15. Open the SFTP window and navigate your way to the
"/etc/pmta" directory {use the button with a folder icon and a
green arrow in it to navigate to the parent folder}.
NOTE: Navigate to the drive’s parent directory and find your
way to the giving directory. Just keep pressing the folder with
the green arrow button till it doesn’t go back anymore.
16. Transfer the "license" file to the "/etc/pmta" folder using the
SFTP. (If you did everything right you should have a working
license to power up your PowerMTA)
11 | P a g e
18. Navigate to the "/usr/sbin" in your VPS using the SFTP window
(using the same method you used to navigate to "/etc/pmta"),
copy and paste {drag & drop} the "pmta" & "pmtad" file in the
"/usr/sbin" folder in the .zip I sent you to your VPS.
b. add these lines under the line where you see ....53 -j ACCEPT
12 | P a g e
2. In the first text area type your freely acquired domain name, then
type “dkim” in the second text area. Select 2048 key size, then click
on “Generate Keys”.
3. You should have your Public and Private Keys generated. Now open
Notepad (not Notepad++), copy the RSA PRIVATE KEY into a fresh
Notepad and save as “dkim.example.com.pem” (In my case
"dkim.boston.ml.pem"). Do not save it as a .txt file, just select All
files then put the file name I just stipulated above and then save.
5. Go back to Port25.com and then copy the dkim selector that looks
like this:
“k=rsa\;
p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAj045Ut
0x+d2gFdS6vnWETT+7QbinYfy1DxUu8OdO5wrMm1St/UuXXSm7FH
XlShgGQnj9axZa+0c2WY4MzUTMgWU8
XWtumaGLTDyI6nlH2r9OiasKU/mhiWx7O3RrCHErksBKKfqCaPwZK
/B/ed988jwd5iDFUB0
Q1i3njpspI+vAZUa7vGtPHVUeS63aRv+ic/k3jBWJKHyjw0caxBXGqC
vRHyoR8P/SQl23AqIIL605vpfnx0Gmo2b7Ic+EujXN+dIACscHSRTcL
KaIIOGnG9uo4nsvoU5aCXqZbRA72Bb9bZka/62YOte1gL6eM9gDYb
y1imwiLOm5rssbMy/VHxwIDAQAB”
7. In the .zip file I sent you {that you already extracted}, you should
find the "config" file, open it with Notepad++ or atom and then
change the settings:
10. Now save it and then copy it to the "/etc/pmta/" folder in your
VPS, overwrite the existing one.
14 | P a g e
2. In other cases, you can freely set your rDNS in your VPS control
panel locate the rDNS option and set it to slot0.domain.com on both
IPv4 & IPv6(if applicable)
*If you did everything right, then all status should report “OK”.
Excluding the first command
2. Now you can use the smtp in this format on any Mailer Software
(SendBlaster, AMS, etc):
15 | P a g e
3. Go to smtper.net and fill the forms in the format above, tick the "use
authentication" option to add the user and password.
4. input an email address to send the test message to and click "send
the test".
5. If it doesn’t work reinstall your VPS and start over from the
beginning and make sure you understand and do every step
accordingly.
-If after sending your first Spam and you are blacklisted, just buy a new
VPS server. It gets better when you can send more and more. It will only
cost you about $2.50 or extra for a new VPS server.
-Hit me up for private method on how to host your webpages and files
for direct download on your VPS. This package also comes with a
method to install SSL on your page and give it that shiny green padlock
people look out for when visiting websites and a method to keep your
webpage up even after it has been flagged as a suspicious site. It costs
only $20. Enjoy mass mailing.
16 | P a g e