In a discussion titled “Can you use Yahoo mail SMTP for Discourse?” under the Self-hosting support category, charlie2112 seeks help configuring SMTP for Discourse on CentOS 7 using Yahoo Mail, but fails to receive registration emails. djcyry suggests alternatives like Mailgun (free for 10,000 emails/month), but charlie2112 explains budget constraints and preference for existing Yahoo. Steven notes DNS configuration complexities with some registrars. However, due to working in a DOD environment, charlie2112 cannot use cloud-based services. pfaffman confirms Yahoo/Gmail won’t work without internal SMTP access and advises testing connectivity to external SMTP servers like Mailgun or Gmail. charlie2112 considers installing Postfix or pointing to Gmail, but pfaffman warns that using Gmail violates its ToS and suggests Postfix is viable if it can relay mail. ljpp questions why Yahoo is treated differently from other third-party providers, prompting Bathinda to explain that using free providers like Yahoo or Gmail for bulk or relayed emails risks their reputation and violates their intended use — unlike paid services (e.g., Mailgun) that manage deliverability and compliance. The consensus is that cloud-based SMTP (Yahoo, Gmail) is unsuitable in restricted environments, and self-hosted Postfix or approved internal SMTP is the practical path forward.
I am trying to test using Discourse on CentOS 71. I have Docker and Discourse installed…but the problem is configuring SMTP for Email for the initial registration. After installation I can bring up the web interface, congratulating me for successful installation, but it wants an Email address for registration. I have put in the settings for Yahoo mail in the app.yml file, and tried to register with my Yahoo email account. After what I think is a successful registration, I never get the email to complete registration. Is what I am trying to accomplish possible?
Thanks for the quick reply. I am fairly, and obviously, new at all this (as well as CentOS 7). I don’t have any funding for this at the moment, and am trying to install and get this running for free so I can demo this to my boss for implementation. I don’t ‘need’ to use Yahoo, but I already had a Yahoo account.
It’s easier/quicker to use the registar to configure the email provider but it still works with DigitalOcean if this provider is a pain in the ass to use. I should add a little disclaimer to this howto
The worst that I encounter was internet.bs, they sell domain name but if you don’t use their servers, you can’t configure anything (txt, cname) other than the dns domains. I had to use Cloudflare to link mailgun to the domain. It was fun.
We do not have any control of our corporate SMTP server, and on top of that, probably could not use it as a relay. We can install Postfix. Is there a good way to configure it for Discourse? Do you think it would be possible to point it to gmail?
In that case, unless the folks who manage your network are doing a very bad job, the corporate network restricts outgoing mail to approved SMTP servers. Most well-run networks denied outgoing mail from lan clients to external SMTP servers 15 years ago to keep infected computers from being spam-bots.
Sorry for derailing the discussion, but are you suggesting that Yahoo is not cloud based? I don’t understand why a 3rd party email provider A is any different from a 3rd party provider B.
I’d like to answer.
When you use someone’s (Yahoo/Gmail etc) server to send your emails to some third party, you’re
using their (Yahoo/Gmail) resources without any benefit to them.
Their reputation gets on stake, because receiver would receive these/senders email thru Google/Yahoo servers. So, suppose some spammer sends thousands of emails using google or yahoo servers, then the receivers servers would start thinking that majority of yahoo/google mails are spam. So they (the receivers ISPs) will reduce their credibility accordingly. And this will in turn reduce the reputation of G/Y servers. And in effect will affect the other legitimate users of theirs also.
In contrast to this, someone, who especially provides these ‘sending’ capabilities to you, it is his job to ensure that you don’t use their resources to spam others. Also, he receives some payment from you, and thus can bear your misbehaves up to some extent.
Hope you understood, before I think of more reasons