You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the PHP builtin gethostname() can only return the non-qualified server host name. So what’s left is the function getParam.
getParam does things to a _params array. That takes us back to the top of the file where there is a constructor filling up a params array. And there is provision for a parameter named localhost. I figured I could play with the array too. So I added a line to force params(‘localhost’) to contain my fqdn:
The Mail App fails when sending to a server configured to reject hosts with no FQDN. Below are some notes from trying to solve that problem:
NextCloud uses the Horde libraries for the mail app. While I don’t know zilch about PHP I thought I would at least look at the code.
The interesting part is in apps/mail/vendor/pear-pear.horde.org/Horde_Smtp/Horde/Smtp.php.
First there is a function _hello that does the EHLO exchange:
We want the function _getHostname:
It appears that the PHP builtin gethostname() can only return the non-qualified server host name. So what’s left is the function getParam.
getParam does things to a _params array. That takes us back to the top of the file where there is a constructor filling up a params array. And there is provision for a parameter named localhost. I figured I could play with the array too. So I added a line to force params(‘localhost’) to contain my fqdn:
Save. Try sending. Bingo.
At best that’s a hack, not a fix; I’ll have to edit that file for every upgrade.
The text was updated successfully, but these errors were encountered: