Can you help me troubleshoot my MailGun setup?

40 views
Skip to first unread message

Kevin Loeffler

unread,
Jul 18, 2015, 10:39:55 AM7/18/15
to chur...@googlegroups.com
Hello,

I installed OneBody successfully on Digital Ocean but I seem to have gotten hung up on getting email set up.

This is what I have done so far:
-I have run through the guide on getting email working with MailGun, including following the guide at the end to get it working with Digital Ocean. MailGun verified my domain and everything seems good from that control panel.
-I put in a support ticket to make sure that SMTP is not blocked for my DigitalOcean account. Support says that the block is not in place for my account.
-I updated the email.yml file on my server. This is where I think the problem lies. I did not have an email.yml file, I had email.yml.example and an email.yml.mailgun-example. I added my details to both at various stages of troubleshooting, and eventually renamed email.yml.example to just email.yml but to no effect. Is this typical, and how can I go about fixing it?
-From the admin panel in OneBody I added my MailGun API key to the external services section and verified that my domain is correct in all fields.

Please let me know if there is any information I can post that can help diagnose what's going on better. Thanks for your help!

Travis Reeves

unread,
Oct 14, 2015, 6:09:50 PM10/14/15
to Church.IO
I believe that the last step that is needed is to restart the webserver service.  This can accomplished by typing the following at the command prompt with out the quote marks "sudo services apache2 restart".  Hope this helps!

Kyle Broussard

unread,
Mar 3, 2016, 10:51:51 AM3/3/16
to Church.IO
Did this solve the OPs issue? I'm struggling with the same problem. I've been using the command "touch tmp/restart.txt" to restart the webserver, so I'll try the other command when I get home. Like the OP, I've verified that everything else is working, and can successfully send mail from my digitalocean droplet using swaks. However, when trying to send mail from the onebody webapp, mailgun never receives it.
Message has been deleted

Kyle Broussard

unread,
Mar 3, 2016, 3:28:21 PM3/3/16
to Church.IO
Thanks Travis, the command that worked for me was "sudo service apache2 restart".  I tried using what you posted, but I think you made a typo, "services" should be "service".  That, coupled with the fact that I had not been updating the email.yml in the /var/www/onebody/config (was working with the one in the /home/onebody/onebody/config/ directory) fixed my issue.  I'm still wondering why the guide on github says to run the command "touch tmp/restart.txt" to restart your webserver.  Running that command did not seem to have any impact on my system.
Reply all
Reply to author
Forward
0 new messages