Amitoj Hi, Im trying to register in my forums but for some reason it is not sending verification email link (Not even in the spam folder). In Admin Console, my current settings: mail driver Flarum version: 1.0.2 PHP 7.4.20 I can't use SMTP because I'm using cloudflare and it is causing some issues with SMTP. Only Send Test Mail is working. Edit: I used 3rd party SMTP services, still it is not working.
clarkwinkelmann Amitoj is there any error message? A red popup when registering for example, or a message in Flarum log file at <flarum>/storage/logs Cloudflare shouldn't be able to interfere with SMTP since it's only a proxy for inbound requests. Make sure your hosting allows outbound SMTP. On DigitalOcean for example you must request for outbound SMTP to be enabled on your account. If SMTP is blocked there should be an error message in the Flarum log as well that will explain what is happening.
Atreatis Amitoj SMTP is likely not an issue with CloudFlare you just need to set those records without a proxy and your problem is solved. Could you provide your community domainname so people can help you further. Also your mail doesn’t arive anywhere if you do not have an SPF Record published so better check that first 🙂
Amitoj clarkwinkelmann Sorry there is no red error or logs related to it. Except that there are other logs that, I believe, were written when I set the mail driver as log i.e.: [2021-06-21 13:31:07] flarum.DEBUG: Message-ID: c288500ab2394a417d233744155cddd9@example.com Date: Mon, 21 Jun 2021 13:31:07 +0000 Subject: Activate Your New Account From: Example Forums noreply@example.com To: someemail@gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hey AmitojAlt! Someone (hopefully you!) has signed up to Example Forums with this email address. If this was you, simply click the following link and your account will be activated: https://example.com/confirm/<hash> If you did not sign up, please ignore this email. Atreatis Im sorry, the SMTP wasn't the issue, later I tested it with 3rd party SMTPs and it didnt work either. But for your information, the forum is hosted on [removed] and this issue only arrived when I updated the flarum from Beta (I dont remember what exact version) to v1.0.2 . Although, "Send Test Mail" is only functional feature which is sending mail when mail drive is used.
Atreatis Amitoj Remove that link from your logs immediately people can now login with your account and mess with your forums. Please double check your settings within your forums and check your account including changing your password so other sessions are logged out. Regarding your SMTP Issues I will dig into that as soon or possible, I will have to look into that more throughfully when I got a bit more time.
Atreatis Been looking into the the domain name that you have provided earlier which seems to be removed after a while. It looks like that your mail servers are proxied through cloudflare which is something that should not be done. Here's a full guide on troubleshooting your mailing problems with your email behind cloudflare. Some things may get a bit technical but the guide is pretty surfaced if you asked me. If this has solved your problem please mark this topic as solved so others know that this is the solution behind this. https://community.cloudflare.com/t/email-troubleshooting/60720
Amitoj Atreatis Sorry for the late reply, this is not the problem. All other mail functions are working in my other php programs. I think I will need to reinstall the flarum and reimport the database.