Hello, everything worked fine, till one day, I just stopped receiving any emails, for like week, then suddenly it started to work again, BUT now I can’t send emails (but receive them). If I try to send email I get this message
"This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
all hosts for ‘gmail’ have been failing for a long time (and retry time not reached)
Little bit about setup, I am quite new to this server things, so I did everything like in this tutorial
What I used following this, Oracle Free Tier + Namecheap + Putty + Hestia + Brevo as SMTP relay. Due to limits in my knowledge, I tried to follow this video one more time (because it worked when I setup website first time) made sure that my DNS records setup is correct, tried to remove SPF (because read that Brevo does not require that), then add it back, but no luck.
Sahsanu recommended to do hostname -f, only one place where I remember there was command prompt, was actually Putty, so I tried that command in there, result is hcpDOTmydomainDOTcom (mydomain is just for privacy, there is actually my domain). To make it easier I will put some screenshots
Yes, I just had to replace it, because forum does not let me to use many links in my post. Sorry for stupid question but
“The first you should do is check your exim log `/var/log/exim4/mainlog”
How to do that?
“Did you configure smtp relay globally or per mail domain?”
Login to your server using ssh and as root use cat, vi, nano, tail, etc. commands to view the contents of the file.
Try to send an email and just after that run this command:
tail -n20 /var/log/exim4/mainlog
Or better use exigrep like I wrote in my last post:
To check if you enabled it globally from Web UI: Click on Server settings -> Configure -> Mail Server and check if you enabled Global SMTP Relay and filled the right data.
To check if you enabled it per mail domain, Select the user -> Click on Mail -> Click on your mail domain -> Button Edit mail domain and here you will see if you enabled SMTP Relay for that domain.
SMTP Relay activated, but Password was missing, I add it, but email still not sending, I will show what command exigrep ‘[email protected]’ /var/log/exim4/mainlog*
Printed, and will do it one more time, to see if anything changes
Well yes I have correct login (I used to have wrong one, with which for some reason everything worked, till one day), and I have correct SMTP key, one I generated (like in tutorial I mentioned in the first post), with which everything worked (but not master password).
If all your domains will use the same smtp relay, yes, and remove the smtp relay conf per domain.
Sorry but it isn’t clear to me whether it works now or not. If you are using the right credentials and you have validated your domain in Brevo but you still see the authentication failed issue, better contact direcctly to Brevo’s support.
After I did this change (or probably when I changed user credentials again), email is getting sent and receive, but there is a bigger problem now (because no one will see my emails now), all my emails goes into spam folder (no matter to who I send email or what actually in there)…When I just setup this website via that tutorial, my emails never get into spam…PS - I never used this email, I used it once, to test if it’s working, and it worked fine.