solved mailgun stopped working

soaringeagle
@soaringeagle
10 years ago
3,304 posts
i dont know wheres best place to put these sort of posts
maybe we need a bug report general tech support section

but mailgun seems set up right but cant send mail with mailgun set as the default mail handler


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 01/28/16 04:27:07PM
michael
@michael
10 years ago
7,799 posts
Check in the mailgun interface to see if it has any warnings or things that need doing like confirming the server.

Then check in the Jamroom activity logs, and failing all that, check your server logs.

Best guess is mailgun is expecting the domain to be confirmed and it hasn't been yet.
soaringeagle
@soaringeagle
10 years ago
3,304 posts
that was done long ago
in fact last week i got a email from them saying they noticed i stopped using it
i then saw it was turned off
turned it on and ..everyone stopped getting activation emails
so i tested it
it didnt work

it used to not sure when the setting was changed to stop using it...


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
hmm might be after migrating to new server tho..ill check that


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
domains verified
no errors found


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
may have found the issue dreadlockssite.com is verified but not www.dreadlockssite.com


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,149 posts
soaringeagle:
may have found the issue dreadlockssite.com is verified but not www.dreadlockssite.com

You should not have BOTH in Mailgun - you should only have one.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
10 years ago
3,304 posts
actualy the real issue is
they have the wrong ip!
when searching the ip the ip belongs to rackspace
i use hivelocity and have never used rackspace
i deleted and recreated the domain and it still says rackspace ip


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Only place I could ever get mailgun to work properly was on JR servers...I have fought it and fought it on my current VPS and finally gave up- if anyone becomes knowledgeable about how to make it work i would love to hear from them-for now its beyond my skill set
soaringeagle
@soaringeagle
10 years ago
3,304 posts
eventually mailgun will figure it out
its definately the wrong ip being resolved wich is weird since it should get that right from dns


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
found out thats the ip they use rackspace owns mailgun now
they think the issues in the module


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,149 posts
soaringeagle:
actualy the real issue is
they have the wrong ip!
when searching the ip the ip belongs to rackspace
i use hivelocity and have never used rackspace
i deleted and recreated the domain and it still says rackspace ip

Mailgun is part of Rackspace - that IP address is the Mailgun IP Address that your email sent FROM mailgun will be sent OUT.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,149 posts
soaringeagle:
they think the issues in the module

The Mailgun module? Are you sending email using the Mailgun module? If so, you really need to configure Postfix on your server to use Mailgun as a "smart host" - it's very easy:

https://community.rackspace.com/products/f/28/t/63

While the mailgun module CAN be used to send email for Jamroom, it's going to be much, much slower than using your local SMTP server (since every request is an HTTPS API call). The main purpose for the Mailgun module is to provide Mailgun parsing and support for INCOMING email (i.e. Support Tickets).

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 10/02/15 02:55:27PM
soaringeagle
@soaringeagle
10 years ago
3,304 posts
i thought the whole purpose was to avoid any possibility that your ip is flagged as spam and messages going to spam box
alsoo to handle outgoing mail that is bounced back as undeliverable

thats my main reason why i want to use it everytime i send a broadcast message i get about 1500 or more message not deliverable emails flooding my inbox

if its mostly for incoming i have a contact us thingy that i use wich works great
so i wouldnt need it


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,149 posts
soaringeagle:
i thought the whole purpose was to avoid any possibility that your ip is flagged as spam and messages going to spam box
alsoo to handle outgoing mail that is bounced back as undeliverable

thats my main reason why i want to use it everytime i send a broadcast message i get about 1500 or more message not deliverable emails flooding my inbox

if its mostly for incoming i have a contact us thingy that i use wich works great
so i wouldnt need it

You misunderstand how Mailgun works. When you configure your local SMTP server to use a "smarthost" (that's what the guide I linked to above is basically doing) what happens is that your server SENDS outgoing email to Mailgun, and they THEY deliver it. Your server only ever talks to Mailgun. If a message bounces, it will come back to Mailgun's servers - NOT yours - since Mailgun does all the delivery. You need to think of your local SMTP server as simply being a local queue system that you can dump email into, and it will in turn forward it all over to Mailgun. This is MUCH faster than using a web API, since Postfix is designed to handle hundreds of emails being added to it's delivery queue in a matter of seconds. It will then properly forward those over to Mailgun for delivery.

https://en.wikipedia.org/wiki/Smart_host


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
10 years ago
3,304 posts
cant get postfix to install


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,149 posts
soaringeagle:
cant get postfix to install

You'll need to contact your sysadmin for help with that.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
10 years ago
3,304 posts
yea ill do that thnx


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
they dont support postfix so wont install it ill just remove the whole mailgun module and say screw it


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,149 posts
soaringeagle:
they dont support postfix so wont install it ill just remove the whole mailgun module and say screw it

The idea is the same whether you use postfix, sendmail, exim, etc.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
derrickhand300
@derrickhand300
10 years ago
1,353 posts
I feel your pain man...I also removed it...and now have no real way to message my members which is around 15,000....I just gave up....the site with 15,000 members is now dead...I just keep it hosted in case someone wants to buy it. But with no consistent way to email members unless I pay a third party $400-$500 per month the site is toast.
ONLY thing I miss about NING was the ability to message members as often as you wanted for FREE...losing that was a stake through the heart for my site
soaringeagle
@soaringeagle
10 years ago
3,304 posts
wait why cant you message your members without mailgun? just use php mailer
you can easily message your members without using mailgun and why would you have to pay anyone when your server handles al mail requets for you


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Apparently my server wont send out 15,000 emails? Honestly I have been confused since moving here on what the purpose of mailgun actually is and why I cant just message members like before
I don't mind taking this opportunity to look like an idiot and ask.."why cant I send out 15,000 messages to my members? :) look forward to learning more because not being able to message my members is why I gave up on the site.
Hey i love the platform-In fact I have built 2 more sites using it.. I played with other platforms for the sites but each time came back to JR because it offers so much more in multi media handling...but the messaging has ALWAYS been a sticking point for me. I wish someone from Jamroom would dedicate an entire blog to messaging/emails etc to members and the purpose of Mailgun...Constant Contact etc....
soaringeagle
@soaringeagle
10 years ago
3,304 posts
are you using a shared server vps or dedicated even shared should send them out and jr has an email throttling system so it sends out only so many per hour or day
if your server wont send out the emails its cause you are skimping on a decent server if your spending 5 bucks a month on a shared server and it wont do what u need it to then spend 15 or 20 or 100 whatever you need to get the job done im spending alot on a dedicated server or just that reason i had sp;ecific needs and only a more expensive server filled the needs

i think you should just move to a real server theres no reason why your server shouldnt send out 15,000 mails a month mine i could send out that many an hour if i neede4d to


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
what servers are you using and who told you that it wont send out the emails


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Im using Knownhost servers (VPS) tried sending an email to 15,000 members earlier...and they all started getting sent back

I got this message concerning increasing my emails per hour limit...and it sounds like they can just erase my data from their VPS if they dont like me emailing so i just cant risk it

"Hello,

"Maximum Hourly Email by Domain Relayed" is a cPanel account-level setting which can be adjusted in WHM at Home->Account Functions->Modify an Account.

The setting is currently 300. You are free to raise this higher, or I can do this for you, but please ensure that you're complying with our bulk email policies for VPS hosting:
--
All Bulk Emailing must be limited to send no more than 60 emails per minute.
Your intended recipients have given their consent to receive e-mail via some affirmative means, such as an opt-in procedure;
Your procedures for soliciting consent include reasonable means to ensure that the person giving consent is the owner of the e-mail address for which the consent is given;
You retain evidence of the recipient's consent in a form that may be promptly produced on request, and you honor recipient's and KnownHost's requests to produce consent evidence within 72 hours of receipt of the request.
You have procedures in place that allow a recipient to easily revoke their consent - such as a link in the body of the e-mail, or instructions to reply with the word "Remove" in the subject line. Revocations of consent are honored within 72 hours, and you notify recipients that their revocation of their consent will be honored in 72 hours;
You must have a Privacy Policy posted for each domain associated with the mailing;
You have the means to track anonymous complaints;
You may not obscure the source of your e-mail in any manner. Your e-mail must include the recipients e-mail address in the body of the message or in the "TO" line of the e-mail; and You otherwise comply with the CAN SPAM Act and other applicable law.
--
"
soaringeagle
@soaringeagle
10 years ago
3,304 posts
you can set that limit higher in whm as stated
in jamroom set a mail per hour limit thats below the limit the server allows
the defaults unlimited so all emails are sent at om]nce
you can set it to say 50 per hoiur the rest remain in the job queue And are sent out 50 every hour


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Thanks...2;30 am here and i am still trying to get Mailgun Module to work- had a VPS tech configure everything on the server ( says he has lots of customers that use mailgun so he seems familiar with the settings...but Ill be damned if i can get it to work...IO will most likely spend the rest of the night on it again until time to take the kids to school
michael
@michael
10 years ago
7,799 posts
Your right though, with 15,000 member, if you used mailgun to send them 1 email per day, then thats $220 bill for the month.

If you send them 2 emails per day its $386.50 so it is getting a bit pricey.

I have the MailGun docs for the module here:

"Mailgun STMP"
https://www.jamroom.net/the-jamroom-network/documentation/modules/282/mailgun-smtp

What is it missing? What do you want to know that is not there but should be? Thanks.
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Thanks Michael
Yes I have been through those docs although I see they have been added to a bit since I slept
Here is the issue
1-I install the mailgun module and email modules
2- add the API Key and the Url to the module from mailgun
3- Create a txt file at the DNS host to verify the site ownership for mailgun
4-send a test email which does not work
5-go back to DOCS and read that If I am not using Jamroom hosting I may need to install POSTFIX
6-Contact VPS server support and ask them to install POSTFIX according to the JR DOCS
7-Reply from server support that POSTFIX cannot be installed on sites that have cPanel ( like mine)
8-Try to input all the settings manually into the email config file instead of using the API/mailgun module
9-Repeat the above 8 steps several times

Steps include the following which is in a reply from server support
"Hello,

Postfix installation is not supported on cPanel servers. The only supported Mail Transfer Agent is Exim. Changing the MTA isn't necessary since you intend to connect directly to Mailgun's own MTA via SMTP. The documentation you found is probably intended for a different situation.

Did you try using the settings I suggested based on your screenshot?
--
SMTP Host:
smtp.mailgun.org

SMTP Port Number:
587

SMTP User Name:
postmaster@drillingahead.com

SMTP Password:
Whatever password you've set for this user. You can reset the user's password by following the "Manage SMTP credentials" link after you log in to your Mailgun account.

SMTP Encryption:
I personally recommend enabling STARTTLS if this is available as an option, but "no encryption" should still work.
--

If this didn't work, did you try setting up Mailgun to allow mail to be sent by curtis@drillingahead.com?

I look forward to your reply.

Regards,
"

Anyways I cannot send ANY emails from my site to members...I cannot sende a simple test email to myself using the site software

I CAN send myself an email from this address if I use Yahoo mail and noit the JR/mailgun combo
brian
@brian
10 years ago
10,149 posts
This is not going to work like this - Mailgun does NOT expose a direct SMTP port for you to use. Since you cannot modify the EXIM config, you need to:

- install and enable the Mailgun SMTP module
- configure the Mailgun SMTP Global Config with your Mailgun API Key and Domain
- in the Email Support -> Global Config set the "Active Email System" to "Mailgun HTTP API" and save

Email should work. HOWEVER, be aware that this is not going to work really well as a HIGH volume email solution, since for every email it has to send it has to establish a new HTTP connection.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Thanks Brian
In GLOBAL SETTINGS.Mailgun domain
Would I use
api.mailgun.net/v3/drillingahead.com
or would I use simply drillingahead.com?

Also I am configuring this because of my need to SEND emails OUTSIDE my server-I like the UNSUBSCRIBE link that Mailgun includes and that its automated in that it removes the person automatically from my lists AND it seems to keep a SUPPRESSION list in that if a email is undeliverable for what ever reason it does not send to that particular email in future emailings..

With all that said I still need it to be a solution for higher volume emailings...I would probably use it to send 4 emails per month as a newsletter on what happened on the site that week BUT I need them delivered quickly and reliably

I think from my understanding of what you explained is that we actually need POSTFIX on the server to make this happen...which apparently it cannot be configured on sites with cPanel...

Is this a correct understanding? If correct- then can you tell me if their is a similar program to POSTFIX that will work on cPanel sites?
Sorry for all the questions but this has been a real struggle
brian
@brian
10 years ago
10,149 posts
derrickhand300:
Thanks Brian
In GLOBAL SETTINGS.Mailgun domain
Would I use
api.mailgun.net/v3/drillingahead.com
or would I use simply drillingahead.com?

Just drillingahead.com ...

Quote:
Also I am configuring this because of my need to SEND emails OUTSIDE my server-I like the UNSUBSCRIBE link that Mailgun includes and that its automated in that it removes the person automatically from my lists AND it seems to keep a SUPPRESSION list in that if a email is undeliverable for what ever reason it does not send to that particular email in future emailings..

With all that said I still need it to be a solution for higher volume emailings...I would probably use it to send 4 emails per month as a newsletter on what happened on the site that week BUT I need them delivered quickly and reliably

I think from my understanding of what you explained is that we actually need POSTFIX on the server to make this happen...which apparently it cannot be configured on sites with cPanel...

Is this a correct understanding? If correct- then can you tell me if their is a similar program to POSTFIX that will work on cPanel sites?
Sorry for all the questions but this has been a real struggle

Postfix is not required, BUT you will need to be able to configure EXIM at the server level so you can configure EXIM to use a "smart host". Looks like there is a guide here:

http://3sq.re/blog/2014/07/configure-exim-cpanel-use-mailgun/

You definitely do not want to send high volume using the Mailgun API - you need to get EXIM configured properly if you need to send high volume.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Ok...I have discovered it works if i change
api.mailgun.net/v3/drillingahead.com
to
drillingahead.com
at least i can receive the emails using this setting and I can see that it has gone THROUGH mailgun by looking at Mailgun LOGS....this part was actually pretty confusing because the docs "seem" to ask for the mailgun.net address provided in the mailgun settings...Now If I can config this with something similar to POSTFIX then i should be on my way?
Sorry this is so lengthy but I actually think this post will help others understand who are experiencing similar confusion as myself
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Thanks for the fast response Brian...yes it works using the mailgun API key AND just using 'mydomain.com" and NOT using the "api.mailgun.net/v3/drillingahead.com" I am going to study up on EXIM now and contact my VPS concerning it- THANKS AGAIN MAN!

As a note- it would be helpful if the docs also explain about setting up the ROUTES in mailgun...I worked this out myself but it took me quite a bit of time to find/understand it..

I think making the following clear for folks not so savy like me

1- install the mailgun module
2-open a mailgun account
3-add the mailgun API key to the Jamroom mailgun module
4-enter your sites domain using mydomain.com ( noit using the https or mailgun.org address)
5- configure the ROUTES in mailgun using the ROUTES tab

Then your explanation about how POSTFIX works like a mailbox and mailgun just picks the mail up at the mailbox is actually a great analogy that helped me understand its purpose-so i would keep that the same in the DOCS but maybe explain also that if your site uses cPanel then POSTFIX wont work and the user will nee3d to find something similar and compatible with their server set up like the EXIM...

Anyways man- thanks again
updated by @derrickhand300: 10/29/15 09:09:17AM
derrickhand300
@derrickhand300
10 years ago
1,353 posts
The VPS says that EXIM is now configured ( was already installed) so now I have tested and the emails are still sending through mailgun and my sites newsletter module...so fingers crossed and about to send a 1st email...
brian
@brian
10 years ago
10,149 posts
derrickhand300:
The VPS says that EXIM is now configured ( was already installed) so now I have tested and the emails are still sending through mailgun and my sites newsletter module...so fingers crossed and about to send a 1st email...

If you have updated EXIM, you need to reconfigure Jamroom to NOT use the Mailgun HTTP API...


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags