I've just configured a new Elgg instance and all seems to be working correctly with one exception - it is not sending emails.
I've configured elgg to send email via SMTP using mailgun, which is a service I already use for another site which I run. However, the new user email confirmation and other emails are not being sent from Elgg.
Here are the settings I am using (password blacked out):
I've been fiddling with it for a while but I just can't see what is wrong with it.
When a user clicks to register, they see the spinning circle for about ten seconds then Elgg displays the message about clicking on the email it just sent them but no email ever arrives.
I've tried looking in the nginx error log but I don't see anything specific to the emails, and I really can't think of what else to try.
Mark
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Never used this service but I think that you need an additional option - Mailgun API Key.
Look at this plugin (for Elgg 2 only).
Also, how to check your configuration.
Hi, did you check whether mailgun accepts connections without TLS on port 25 ? I know a lot of mail services that don't accept this anymore ...
Hi guys. Thanks for the replies. I use mailgun with my Mastodon instance and use plain authentication with that as well and it seems to work. Mastodon's SMTP server listens on serveral ports and I've tried a couple of them. Just can't seem to get it to work for some reason. It really is just plain SMTP, I'm not using the API at all.
Any errors in the systemlog, mail.log etc?
This may be a stupid question and please excuse my lack of knowledge. Do I need some additional server software such as sendmail installed?
http://learn.elgg.org/en/3.x/appendix/faqs.html#missing-email
Don't forget to edit your settings.php by default
I'm confused as to why I would need to configure Elgg to use a third-party SMTP provider AND also have my own SMTP installed and running (I have postfix). But anyway, I did it. I also tried that page (https://online.canberrasocial.net/test.php). Page page says it worked but the mail ever arrives. What I see in the mail.log is some message about the mail being deferred. Looks like the remote mail hosts are refusing the connection from my local SMTP, but Elgg is configured to use a different SMTP - I've tried mailgun as well as my ISP's SMTP server. I'm totally lost at this point as to what Elgg is actually trying to do - use my SMTP server or my ISP? Why do I need SMTP installed on my server? Why is mail being deferred?
I'm beginning to strongly suspect that SMTP in Elgg is just broken. Anyway, for now I have removed postfix from my server as I do not intend to relay mail directly but to use third party SMTP. Is it possible to verify that this works in Elgg?
Maybe, you need to verify your domain?
Also, from Mailgun:
No. We use the same settings for another site running on our server. It works fine. Again, I am not running a local SMTP server, I am using a third-party SMTP service.
I suspect that SMTP integration in Elgg is broken. I have raised a support ticket in Git:
https://github.com/ColdTrick/group_tools/issues/156
- Previous
- 1
- 2
- Next
You must log in to post replies.