Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#49815 closed feature request (invalid)

Suggestion for adding site health test

Reported by: agla's profile agla Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.3.2
Component: Site Health Keywords:
Focuses: Cc:



sendmail in linux takes 1 minute sleep when the hostname is not qualified:

sendmail[3841]: My unqualified host name (<hostname here>) unknown; sleeping for retry
sendmail[3841]: unable to qualify my own domain name (<hostname here>) -- using short name

The side effect is two minutes to register a user or to put an woocommerce order (which send mail about the new user to the user and also to the admin; third mail about the new order).

I suggest to test this issue in the site health.


Change History (2)

#1 @SergeyBiryukov
4 years ago

  • Component changed from General to Site Health

#2 @Clorith
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi there, and welcome to the WordPress trac!

Unfortunately, to test emails, you need to actually send a message. There's no reliable way to send an email automatically and verify that it was sent as expected. It would be possible to time it, but then you'd still need a recipient, and it could not be a scheduled event like other checks.

As for the hostname being qualified or not, this is also different from server to server, as it is possible to set up a server to work wit ha non-qualified one for internal reference purpose.

This is a prime opportunity to test through a plugin though, the Health Check plugin already has a tool for testing email functionality, and extending it to test for timing as well seems like a good direction.

I've opened for this purpose.

As the issue it self is not really solvable by core, I'm closing the ticket it self (unfortunately the keyword for that resolution is invalid, although the intent and problem are both valid, so apologies for the confusing terminology there).

Note: See TracTickets for help on using tickets.