postal icon indicating copy to clipboard operation
postal copied to clipboard

digitealocean setup

Open masihfathi opened this issue 9 years ago • 13 comments

Hi again, for testing postal, I create a vps in digitalocean, right now, in setup DNS, what should I do? as default can use, ns1.digitealcocean.com as a nameserver. should I install BIND and point like this: ns1.mydomain.com and ns2.mydmain.com and point to these name server in my domain registration?

masihfathi avatar Oct 27 '17 11:10 masihfathi

Where you operate your DNS from is up to you. If you want to host your own nameservers, I would recommend not installing BIND on the same server as Postal to avoid awkward logistics later.

willpower232 avatar Oct 27 '17 11:10 willpower232

What is your suggestion for domain settings on a dedicated server?

masihfathi avatar Oct 27 '17 12:10 masihfathi

Presumably you already have the DNS set up somewhere so unless you want to move it, why not leave it where it is?

If you want to move it, DigitalOceans DNS service is very good. There are of course many options. It really doesn't matter as per my earlier response.

All you need to be able to do is create the records mentioned in the Wiki.

willpower232 avatar Oct 27 '17 12:10 willpower232

I know my question may be outside of postal But I am grateful for your guidance. I could set it up with digitealocean, Now consider this scenario. I have a dedicated server with 8 IPs. My domain registrar doesn't dns server feature. It came to my mind. Virtualize this server. and host one of the machines along with a domain as dns server. Is it a good way? What you think about cloudflare.com for dns management? instead of setup dns server.

masihfathi avatar Oct 28 '17 10:10 masihfathi

If you can't make DNS records with your domain registrar then Cloudflare and Digitalocean are both good options. Personally I would use a provider rather than host myself but as long as you can make the records Postal needs, it doesn't really matter.

willpower232 avatar Oct 28 '17 12:10 willpower232

@masihfathi also consider using Route 53 http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/Welcome.html In that page you also have extensive information about all the basics about how DNS works.

Managing your own DNS server is not too hard (easier than managing your own SMTP server) but doing it properly is certainly not trivial and the risks in case of miss-configuration or being hacked are potentially fatal. As there are so many good services and many decent free services I would try to find a good provider.

In my opinion, the only use case where it could be worth to manage your own, would be to shorten the response times for a really busy mail server.

Anyway, can´t believe your registrar would not provide you with basic DNS, maybe it´s time for a new registrar...

ghost avatar Nov 30 '17 23:11 ghost

I am hosting postal on Digital ocean server, the email transaction is not working. Queued email show soft fail with reason mx.postal... for record mydomain and tld are hidden for privacy.

NikhilSaini38 avatar Jul 21 '18 09:07 NikhilSaini38

Hello,

When you do postal status what does it give?

navinp avatar Jul 21 '18 09:07 navinp

hey navin this is from command postal status

Application Root    /opt/postal/app
Supervisor PID      23662
Started             2018-07-21 09:30:11 +0000

|| web
|| Quantity            1
|| Command             bundle exec puma -C config/puma.rb
|| Respawning          5 every 3600 seconds
|| Restart mode        usr1
|| Log path            none specified
|| Address/Port        none
|| => web.1            Running      09:30        pid:23668    respawns:0      port:-        tag:-

|| worker
|| Quantity            1
|| Command             bundle exec ruby script/worker.rb
|| Respawning          5 every 3600 seconds
|| Restart mode        start-term
|| Log path            none specified
|| Address/Port        none
|| => worker.1         Running      09:30        pid:23670    respawns:0      port:-        tag:-

|| cron
|| Quantity            1
|| Command             bundle exec rake postal:cron
|| Respawning          5 every 3600 seconds
|| Restart mode        term-start
|| Log path            none specified
|| Address/Port        none
|| => cron.1           Running      09:30        pid:23672    respawns:0      port:-        tag:-

|| smtp
|| Quantity            1
|| Command             bundle exec rake postal:smtp_server
|| Respawning          5 every 3600 seconds
|| Restart mode        usr1
|| Log path            none specified
|| Address/Port        none
|| => smtp.1           Running      09:30        pid:23674    respawns:0      port:-        tag:-

|| requeuer
|| Quantity            1
|| Command             bundle exec rake postal:requeuer
|| Respawning          5 every 3600 seconds
|| Restart mode        term-start
|| Log path            none specified
|| Address/Port        none
|| => requeuer.1       Running      09:30        pid:23676    respawns:0      port:-        tag:-

NikhilSaini38 avatar Jul 21 '18 10:07 NikhilSaini38

@navinp i have posted the output, are you able to guess what might be the problem?

NikhilSaini38 avatar Jul 21 '18 10:07 NikhilSaini38

Based on other issues it is likely that Digital Ocean is blocking the SMTP, have you contacted them to unlock it for your account?

willpower232 avatar Jul 24 '18 13:07 willpower232

Not sure about that, but it’s good to contact support and ask if the ports are blocked.

I am also DO customer and nothing is/was blocked

navinp avatar Jul 24 '18 13:07 navinp

Lets see, i'll check my ufw too

NikhilSaini38 avatar Jul 24 '18 14:07 NikhilSaini38