What I do to be able to receive and send emails hosting a site on a VPS DigitalOcean?

August 16, 2015 840 views
Control Panels DNS Email DigitalOcean Configuration Management CentOS

What I do to be able to receive and send emails hosting a site on a VPS DigitalOcean?
I already instalai one LAMP + wordpress via comand line, and use debian fedora / a hundred years, since the command line give me better in the intermediate, adminstrava my website without using a control panel, until a hosting week in my VPS drop came across the security issue and the situation of emails, I can not send and receive email without having a mail server (Postfix) and SMTP server (dovecot) and for messages do not go to spam DKIM key (opendkim) not consigui run, segugurança with spammers and (clamv), firewall (CSF) the maiximo I got was receiving email.
so I did extensive research and found that most of the panels of already controls auto install these packages, I did a check and found VestaCP, Ajenti, Webmin-virtualmin, then I encounter CWP, hundreds web panel, very simple, I found that the more robust cpanel, and already comes with everything anyone could imagine the area in need one day, so make it a heavy panel that uses on average 300mb, but has a very friendly interface and even robust! does everything and then some, and it is opensource as well as others who have not tested! the CWP activated cheve Kdim and SPF in a Click! amazing! firewall with pre very good settings! I loved it! but also can not send and receive mail!
the manual is very ambiguous, with many interpretations in a lot that say, horrible! I ask in the forum but no one responds, inclusove on the official forum.
I suspect that is the DNS settings that already heard that prevents e-mail services work! then do not understand, we have two tables to configure, DNS table in OF panel and table in CWP! which set?
I think all my ta problem in the DNS settings, I nonsense, everybody teaches in a different way on the Internet, as if no one soubessa in reality and enventasse of nowhere. never needed I give it with accommodations that hired because so need digital server name of the new company in the former company panel: ns1.empresadehospedagem.com ns.empresadehospedagem.com and PRINTO. 24 My site is pointing to a new server in another hosting company, simple and always solve all about emails and safety for the hosting support always took care of everything.
ensiam point on DNS CWP in the following ways:

absurdam way to teach:

It has no logic at all, the guy that site ta saying we use to IPs examples shown in own CWP panel! IPs are non-existent! are not ours, nor are there!

another worst-case sites are saying to use our real domain!

ns1.myrealdomain.com // our IPs! as well as our IPs! each VPS has an IP!
ns2.myrealdomain.com // our IPs! as well as our IPs! each VPS has an IP!

then I saw a crazy woman teaching do with our real domain and our real IP repeated! in both fields ns1 and ns2 !!


the official site for CWP says we use our DNS and our use their domain as an example! and it is understood that is to use our domain at the time of set up and to say we use a IPs for each name server ?! what do you mean ?? !! if every domain so has our IP! and on the internet teach use the fictitious IPs that the panel shows as an example in front of ns1 and ns2 created with domains of them! but IP does not exist! we only have one IP for each VPS! each domains only have one IP! how I can follow in the footsteps of CWP using an IP to each server name!

And strangest ..'ve seen people using localhost ( in both NS1 and NS2!

the severe case of person teaching to use the hypothetical IPs that the panel shows as an example! 1

there already thought of using digital DNS ocean:
ns2.digitalocean.com // but do not know which IPs to use the official forum says to use our own IP and each domain name we use our own IPs, but I can repeat ?!
ns1.digitalocean.com // droplet of IP.
ns2.digitalocean.com // Repeat the IP Droplets ?!

but how could use the Digital oceam that CWP DNS settings if everyone says so I use my main domain !! and how can I fix two DNS to IP invented at the time! ns1 and ns2 with my domain! I will invent this IPs with my imagination ?!

My fully configured server with a few clicks:

My fully configured DKIM keys:


because it does not work e-mail services ?!

I do not understand the instructions:

and when I create my DNS prorios, I will not be using more of the DO ?!

I am obliged in my CWP panel? can not the names digital digital servers ocean in these fields?

if I create my DNS with ns1.mydomain.com and ns2 ....
I will not be using the digital ocean table settings?

and if I cirar as everyone says to do. ns1.mydomain.com and ns2.mydomain.com have to wait 24 hours or more in order to propagate the server names? work emails ??

I do not wish to use Iremail poque my CWP is already 90% configured. and whether it would be possible to use Iredmail with a panel that already install everything the IRedmail also installs without giving conflicts?

Be the first one to answer this question.