Sending mail stopped working

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
bjkluft
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Mon Dec 11, 2017 1:15 pm

Sending mail stopped working

Post by bjkluft » Thu Mar 04, 2021 7:18 pm

Hi,

Since this morning (around 12h) we aren't able to send mail from our website anymore, the control panel shows the following messages after trying to send a test mail, I've double checked everything including the password (even resetting it):

Notice
SMTP Error! Could not authenticate.

Error
Test mail could not be sent.

The error log gives me this:

Code: Select all

2021-03-04T19:10:12+00:00	CRITICAL 54.36.149.54	error	Uncaught \Throwable of type Joomla\CMS\Component\Exception\MissingComponentException thrown. Stack trace: #0 E:\HostingSpaces\Scouting\2021.scoutingalphen.nl\wwwroot\libraries\src\Application\SiteApplication.php(194): Joomla\CMS\Component\ComponentHelper::renderComponent()
#1 E:\HostingSpaces\Scouting\2021.scoutingalphen.nl\wwwroot\libraries\src\Application\SiteApplication.php(233): Joomla\CMS\Application\SiteApplication->dispatch()
#2 E:\HostingSpaces\Scouting\2021.scoutingalphen.nl\wwwroot\libraries\src\Application\CMSApplication.php(203): Joomla\CMS\Application\SiteApplication->doExecute()
#3 E:\HostingSpaces\Scouting\2021.scoutingalphen.nl\wwwroot\index.php(49): Joomla\CMS\Application\CMSApplication->execute()
#4 {main}
Does anybody have an idea on why we suddenly have this problem?

Kind regards,
Jeroen
Last edited by toivo on Thu Mar 04, 2021 7:34 pm, edited 1 time in total.
Reason: mod note: moved, not related to 3.x Performance

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 13421
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Sending mail stopped working

Post by toivo » Thu Mar 04, 2021 8:00 pm

Is the time stamp in the error, 19:10:12+00:00, exactly when you tried to send the test mail?

It looks like at least one component has gone missing from the Joomla folder. Sometimes the filesystem can get corrupted for one reason or another.

Did you update Joomla to 3.9.25? If you still have the previous version, run the update but read the Version 3.9.25 FAQ first.

Otherwise, go to Components - Joomla! Update and run the update again to refresh the core files.
Toivo Talikka, Global Moderator

bjkluft
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Mon Dec 11, 2017 1:15 pm

Re: Sending mail stopped working

Post by bjkluft » Thu Mar 04, 2021 9:31 pm

Hello toivo,

I did like you suggested, I reinstalled the 3.9.25 core files but the error remains.
The time zone is Amsterdam (I stated this in Joomla as well).
Any other suggestions?

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 13421
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Sending mail stopped working

Post by toivo » Thu Mar 04, 2021 9:48 pm

Does the error occur only when you try to sent the test mail?

You can troubleshoot in Joomla and get full details of the SMTP connection attempt and the mail server authentication process, including SMTP status codes and messages.

First go to Extensions - Plugins, enable the system plugin 'System - Debug' and configure it with the following settings, which limit the debug output to back end sessions:
  • Allowed Groups: Super Users
  • Log Priorities: All
  • Log Categories: mail
  • Log Almost Everything
Save these settings.

Now go to Global Configuration - System tab - Debug Settings and set Debug System to Yes.
Then go to the Server tab and change the level of error reporting from 'Default' to 'Maximum', in case PHP errors occur and save the settings.

Finally go to Mail Settings and push the button Send Test Mail.

The result, success or failure, will be displayed as a system message, but you can now download the detailed log file 'everything.php' from the Joomla log folder, usually administrator/logs. If the site was originally installed several years ago, check the /logs sub folder in the main Joomla folder.

The log will contain all the details of the connection attempt and the authentication dialogue between Joomla and the SMTP server. Post the relevant error lines here for advice and sort out the issues with your host or the team maintaining your mail server.
Toivo Talikka, Global Moderator

bjkluft
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Mon Dec 11, 2017 1:15 pm

Re: Sending mail stopped working

Post by bjkluft » Thu Mar 04, 2021 10:04 pm

It started with the fact that filled forms where not send by mail, from there I contacted the provider but they said nothing was wrong on their side. So I checked the settings in the admin part, nothing seems to be wrong. However you mentioned the time stamp issue so I went to the control panel of the provider and there I saw the SSL certificate was past due, so I tried to update it, however now the complete site is un reachable because the SSL certificate is now invalid.
I can't try your last suggestions but will as soon as possible.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 13421
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Sending mail stopped working

Post by toivo » Thu Mar 04, 2021 10:13 pm

The expired SSL certificate explains why the SMTP authentication failed but it does not explain the critical error message.
Toivo Talikka, Global Moderator

bjkluft
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Mon Dec 11, 2017 1:15 pm

Re: Sending mail stopped working

Post by bjkluft » Fri Mar 05, 2021 10:47 am

The site is back online again (after the SSL issues) and I've done as you stated, The following lines appear in the error log:

Code: Select all

2021-03-05T10:40:26+00:00	ERROR 217.62.241.29	mail	Error in Mail API: Connection: opening to smtp.mijnhostingpartner.nl:25, timeout=300, options=array (
)
2021-03-05T10:40:27+00:00	ERROR 217.62.241.29	mail	Error in Mail API: Connection: opened
2021-03-05T10:40:27+00:00	ERROR 217.62.241.29	mail	Error in Mail API: SMTP -> get_lines(): $data is ""
2021-03-05T10:40:27+00:00	ERROR 217.62.241.29	mail	Error in Mail API: SMTP -> get_lines(): $str is  "421 Server is busy, try again later."
2021-03-05T10:40:27+00:00	ERROR 217.62.241.29	mail	Error in Mail API: SERVER -> CLIENT: 421 Server is busy, try again later.
2021-03-05T10:40:27+00:00	ERROR 217.62.241.29	mail	Error in Mail API: SMTP NOTICE: EOF caught while checking if connected
2021-03-05T10:40:27+00:00	ERROR 217.62.241.29	mail	Error in Mail API: Connection: closed
2021-03-05T10:40:27+00:00	ERROR 217.62.241.29	mail	Error in Mail API: SMTP Error! Could not authenticate.
2021-03-05T10:40:27+00:00	ERROR 217.62.241.29	mail	Error in Mail API: SMTP Error! Could not authenticate.
Is this something from within Joomla that is going wrong or is it on the provider side?

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 13421
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Sending mail stopped working

Post by toivo » Fri Mar 05, 2021 11:00 am

According to the SMTP status code 421 and the message, the server is busy. It is definitely on the provider side.
Toivo Talikka, Global Moderator

bjkluft
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Mon Dec 11, 2017 1:15 pm

Re: Sending mail stopped working

Post by bjkluft » Fri Mar 05, 2021 11:10 am

Thank you for the response.
It seems that somehow a mass mail is blocking things.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 13421
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Sending mail stopped working

Post by toivo » Fri Mar 05, 2021 11:22 am

The mail provider may have a limit how many emails can be sent inside a particular unit of time.
Toivo Talikka, Global Moderator

bjkluft
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Mon Dec 11, 2017 1:15 pm

Re: Sending mail stopped working

Post by bjkluft » Fri Mar 05, 2021 11:41 am

They have: 100 connections in 10 minutes, but I didn't send that many mails from the site so there must be something else going wrong. What I'm trying to find is if we are blocked for how long. I'll take this with the provider.
Again thanks for your help.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 13421
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Sending mail stopped working

Post by toivo » Fri Mar 05, 2021 11:55 am

Cheers, good to hear that you made progress in sorting it out.
Toivo Talikka, Global Moderator


Post Reply

Return to “General Questions/New to Joomla! 3.x”