Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • Mark replied on the discussion topic Emails not being sent
    It has been a long road figuring out how to solve this problem so I figure I may as well post my solution for those who come after me. Please bear in mind that I'm in no way an expert linux admin so what I'm about to say may seem obvious... view reply
  • Mark replied on the discussion topic Emails not being sent
    That's right iionly. There are too many issues with SMTP being blocked from my VPS. So I am using a third-party SMTP service called mailgun which works very well and comes with some great reporting and management tools. I'm using mailgun... view reply
  • Mark replied on the discussion topic Emails not being sent
    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... view reply
  • Mark replied on the discussion topic Emails not being sent
    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? view reply
  • Mark replied on the discussion topic Emails not being sent
    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).... view reply
  • Mark replied on the discussion topic Emails not being sent
    This may be a stupid question and please excuse my lack of knowledge. Do I need some additional server software such as sendmail installed? view reply
  • Mark replied on the discussion topic Emails not being sent
    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... view reply
  • Mark added a new discussion topic Emails not being sent in the group Elgg Technical Support
    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...
    • You would use SMTP only if you can't (or do not want) to set up an MTA (e.g. postfix) on your server. If the mailserver is correctly set up on your server Elgg can likely make use of it without any configuration necessary. When sending mail from your own mailserver it might be necessary to use a from mail address (site email) from the same domain and maybe also some authentification functionality is necessary for your mails not getting blocked by mail providers (sender server domain and mail domain being different is not very trustworhty after all).

      I don't know what the rules regarding mail address domains are with SMTP. But I would imagine that a mail provider offering sending mails via SMTP over their servers would not like being miused by spammers either and therefore will requite usage of a mail address of their domain.

    • That's right iionly. There are too many issues with SMTP being blocked from my VPS. So I am using a third-party SMTP service called mailgun which works very well and comes with some great reporting and management tools.

      I'm using mailgun for another two websites that I admin, which also run on the same VPS, so I know that the configuration works just fine.

      However, for some reason Elgg is not communicating correctly with mailgun. I've checked the logs on mailgun and I can not see any rejected emails or anything like that so having isolated everything else to the best of my ability I have to assume that the problem is with Elgg's implementation of sending mail via SMTP.

      When I get some time I'll look at the code (hooray for open source) but I'm no expert on PHP/Zend. If I do come up with a solution I'll feed it back in the comments. I do like the layout and functionality of Elgg so I'll do a bit more work to try and get the email working before I junk it for something else.

    • It has been a long road figuring out how to solve this problem so I figure I may as well post my solution for those who come after me.

      Please bear in mind that I'm in no way an expert linux admin so what I'm about to say may seem obvious to others.

      What I didn't realise is that postfix can be used to relay mail to a third-party SMTP service rather than trying to send it directly. There are some instructions and a sample config on this page:

      https://www.cyberciti.biz/faq/how-to-configure-postfix-relayhost-smarthost-to-send-email-using-an-external-smptd/

      So what I did was the following:

      1. Install postfix.
      2. Install libsasl2-modules.
      3. Edit /etc/postfix/main.cf
      4. Made the changes to relay mail via mailgun (my SMTP server).
      5. systemctl restart postfix
      6. Edit /path/to/elgg/elgg-config/settings.php
      7. Set $CONFIG->emailer_transport = 'sendmail';
      8. Commented out the SMTP settings.
      9. Send a test email with mutt. It works!
      10. Send a test verification with Elgg. It works!

      I hope this helps someone out there avoid some frustration and good luck!