Lost password reset produces mail.php error

Post

Posted
Rating:
#6912 (In Topic #1634)

Hello,

When people try to reset their passwords:

1) Nothing happens

2) Upon attempting to reset their password a second time, the following error is produced:

PHP NOTICE [8] fwrite() [<a href='http://php.net/manual/en/function.fwrite.php'>function.fwrite.php</a>]: send of 12 bytes failed with errno=32 Broken pipe in sources/mail.php on line 1180 (version: 10.0.37, PHP version: 7.4.20, URL: /index.php?page=lost-password&type=step2)

Any idea what might be wrong? Thanks.

Post

Posted
Rating:
#6913
You have configured email to use a custom SMTP server, and that server is dropping the connection before any emails are sent.

Post

Posted
Rating:
#6918
Thanks you.

I talked to the host provider with that information and they sent a new port for SMTP.

The original error message went away, but was replaced by a new error message:

SMTP authentication not supported (530 5.7.0 Must issue a STARTTLS command first )


Any advice?

Post

Posted
Rating:
#6919
Ideally the server should support PHP being able to send emails natively. Even if the emails are going out via a different email server, a good webhost should be able to configure a local relay on the web server so that PHP can just use that.

In this specific case - the server is trying (in a cryptic way) to tell you that you are only allowed to use SMTP authentication if you use the Start-TLS SMTP protocol.

The custom SMTP server support in Composr is very basic and doesn't support SSL, which requires a lot of code.

There is a Composr addon called BetterMail (which integrates SwiftMailer) that may be able to solve it. If you install this addon and set the SMTP port in the configurable to the server's SSL/TLS SMTP port, and if that port is either 419 or 465 or 587 (which the addon recognises as an SSL/TLS port), then that may resolve it.

Post

Posted
Rating:
#6934
BetterMail/SwiftMailer worked! Thank you! We are in your debt.

 It might be worth adding a couple of lines to one of the tutorials explaining the possible benefit (even if it is officially unsupported).

Post

Posted
Rating:
#6936

Post

Posted
Rating:
#7087
I am also having trouble resetting my password.   The error I get is not related to email …
"You must either enter a username or an e-mail address".   I believe the upgrade didn't inish successfully.  Is there any other way to recover?

Post

Posted
Rating:
#7088
By what you wrote, it sounds like you've done an upgrade, and had some problem with it. You didn't post any context/information about that though, and it seems like an unrelated problem (maybe you assumed a broken upgrade also led to a broken reset process, I'm not sure?) – so I can't really address it right now. If you think necessary, please post about that in another topic.

As for resetting the password, again there is a lack of context here. At what point did you get that error message. Is it after filling in a link in the reset email after getting it? That link should fill in the username for you, but if the link is corrupted in the email somehow there should be a problem and you should be able to use a separate manual link in the email to proceed. Some email readers/servers/configurations could potentially corrupt links in emails.

But resetting your admin account should not even be possible, if that's what you are trying to do. It is secured from that as it's a high security account. If you are somehow locked out of your site by forgetting your password, you need to follow a password reset process from

Composr Tutorial: Disaster recovery

Open Source CMS with advanced social, interactive and dynamic features. Fully flexible, themeable and extendible: suitable for building powerful websites.

View

1 guest and 0 members have recently viewed this.