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 - CONTROL WEB PANEL, 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 30% ram, 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, inclusive 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 know in reality and create 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.hostingenterprise.com ns2.hostingenterprise.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.
teach point on DNS CWP in the following ways:
absurdam way to teach:
http://www.4shared.com/download/d6cOSU1uba/cwp-name-server-semlogica.png?lgfp=3000It 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 !!
http://www.4shared.com/download/8FDZ9FiPce/cwp-edit-ns-dica-doida-IPs_igu.jpg?lgfp=3000the 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 (127.0.0.1) 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:
ns1.digitalocean.com
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 ocean 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:
http://www.4shared.com/download/oE0ScCzQba/meu-servicos-ok333.png?lgfp=3000My fully configured DKIM keys:
http://www.4shared.com/download/JgDqExrHba/dkim-manager-activate333.png?lgfp=3000because it does not work e-mail services ?!
I do not understand the instructions:
http://forum.centos-webpanel.com/dns/how-to-setup-dns-%28bind%29-on-server/and when I create my DNS prorios, I will not be using more of the DO ?!
ns1.digitalocean.com
ns2.digitalocean.com
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?
It's required that you have installed CentOS WebPanel and 2 IP addresses.
Settings
- DNS Functions --> Edit NameServers IPs
Add here your subdomains you want to use for NameServers and one IP for each nameserver eg.
ns1.centos-webpanel.com --> 185.4.149.83
ns1.centos-webpanel.com --> 185.4.149.90
- Your Main Domain or Subdomains need's to have A record to this server IPs
How to set A Records for Name Servers
1. Create new account on the server with domain name which you will use for nameservers (example: test.com)
2. Edit DNS zone for this domain go to DNS Functions --> List DNS Zones and click on your domain
3. Add records for your nameservers at end of the file:
ns1 14400 IN A NS1_SERVER IP
ns2 14400 IN A NS2_SERVER IP
example:
ns1 14400 IN A 120.130.110.122
ns2 14400 IN A 120.130.110.123
this will create nameservers: ns1.test.com and ns2.test.com
- Setup Shared IP
WebPanel Settings --> WebPanel Settings --> Shared IP
CASE 1
If you have only A record for main domain set to one IP than you need to make new account on this server and add in DNS records subdomains.
CASE 2
If you have at yours domain register set domain records for each subdomain to IP than you are ready to go and you can start adding DNS zones or creating accounts.
Changing DNS records can take up to 24 hours.
For some domain registers you will need to have your server hostname to have A record to NS1 IP:
eg. myhostname.centos-webpanel.com --> 185.4.149.83
START DNS (BIND) server
go to Service Config --> Chkconfig manager and click "ON" for named service.
now go to index page and start BIND DNS Server by clicking Start
Don't forget that the nameservers must be registered with your domain registrar.
Godaddy Instructions
https://support.godaddy.com/help/article/12317/setting-custom-nameservers-for-domains-registered-with-us?locale=en
Enom Instructions
http://www.enom.com/help/faq_dns.asp