Issue with mail after install

(Chagara) #1


I just installed discourse in DO and I’m having issues sending email: This is what I see in the logs:

Processing by Admin::EmailController#index as JSON
  Parameters: {"_"=>"1486273924108"}
Completed 200 OK in 18ms (Views: 0.6ms | ActiveRecord: 12.0ms)
Started GET "/about/live_post_counts.json?_=1486273924109" for at 2017-02-05 05:52:04 +0000
Processing by AboutController#live_post_counts as JSON
  Parameters: {"_"=>"1486273924109"}
Completed 200 OK in 20ms (Views: 0.3ms | ActiveRecord: 9.7ms)
Started POST "/admin/email/test" for at 2017-02-05 05:52:18 +0000
Processing by Admin::EmailController#test as */*
  Parameters: {"email_address"=>""}

so not sure where Is the problem. I’m using mailgun and I have added all the records required and my domain is verified.

This is what is on my app file:


(Régis Hanol) #2

DISCOURSE_SMTP_PORT should be 587 instead of 576.

(Chagara) #3

thank you! I must had misstype it. Now I got it to send the email but, the mailgun logs give me this info:

 "reject": {
    "reason": "Free accounts are for test purposes only. Please upgrade or add the address to authorized recipients in Account Settings.",
    "description": ""

I have added the postmaster email as the authorized recipients and I thought mailgun offered free services?

(Jay Pfaffman) #4

A few weeks ago they changed their policy. It is still free for the first 10k messages per month, but you must give them a credit card to be able to send mail.

(Chagara) #5

oh wow :neutral_face: thank you for mentioning. Its mailgun still a better option? It was easier to use them than the other options.

(Chagara) #6

so yeah I added my CC and everything worked. Thanks for the information. The support did not even mentioned that.

(Régis Hanol) #8