Author |
|
solkmaaker Senior Member
Joined: 28 June 2020
Online Status: Offline Posts: 163
|
Posted: 30 June 2020 at 1:23am | IP Logged
|
|
|
afterlogic.mobileconfig contains actual IMAP and SMTP server addresses (the ones where webmail connects) that are declared in mail server settings for IMAP and SMTP connection, not those that are declared in "IMAP and SMTP hosts for external mail clients"
Example: SMTP and IMAP for webmail to connect is 127.0.0.1, for external mail clients servers are imap.example.com and smtp.example.com
afterlogic.mobileconfig contains in that case:
<key>IncomingMailServerHostName</key>
<string>127.0.0.1</string>
Also, when initially creating mail server definition, last block (IMAP and SMTP hosts for external mail clients) is not saved. It can be saved only if mail server is already defined.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 30 June 2020 at 2:16am | IP Logged
|
|
|
Thank you for your feedback. I've confirmed both the issues and have reported to the developers.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
solkmaaker Senior Member
Joined: 28 June 2020
Online Status: Offline Posts: 163
|
Posted: 23 September 2020 at 5:57am | IP Logged
|
|
|
Issue still exists in v8.5.1
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 23 September 2020 at 6:05am | IP Logged
|
|
|
Indeed, the issue with iOS profile wasn't corrected yet. This thread mentions another issue though, and I believe it was fixed in 8.5.0:
Quote:
when initially creating mail server definition, last block (IMAP and SMTP hosts for external mail clients) is not saved. It can be saved only if mail server is already defined. |
|
|
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
solkmaaker Senior Member
Joined: 28 June 2020
Online Status: Offline Posts: 163
|
Posted: 23 September 2020 at 6:59am | IP Logged
|
|
|
Yes, this is correct.
External mail clients block saving issue is fixed.
Remains just iOS profile issue.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 12 November 2020 at 6:16am | IP Logged
|
|
|
Just heard from the developers on this. "IMAP and SMTP hosts for external mail clients" section is of purely informative purpose and hosts there will be shown on user's Settings screen. For iOS profile, the following data from data/settings/modules/Mail.config.json file are used:
Code:
"ExternalHostNameOfLocalImap": [
"",
"string"
],
"ExternalHostNameOfLocalSmtp": [
"",
"string"
], |
|
|
and they're only used if mailserver hostname is set to 127.0.0.1 or localhost.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
solkmaaker Senior Member
Joined: 28 June 2020
Online Status: Offline Posts: 163
|
Posted: 22 November 2020 at 1:38pm | IP Logged
|
|
|
I see.
How this setting is used if certain mail server configuration has different data than other?
Example:
Webmail is located at webmail.domain.com
One IMAP server for domain.com is located at imap.domain.com accessible by webmail via internal network 10.0.0.10
Second IMAP server for domain.org is located at imap.domain.org accessible by webmail via internal network 10.10.10.20
Mail servers in aurora config, is configured to use internal addresses. External e-mail clients use FQDN for IMAP access.
In that setup (since there is multiple imap servers), there is no possibility to use Mail.config.json server definitions, server definitions must come from specific mail server config in aurora.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 22 November 2020 at 10:55pm | IP Logged
|
|
|
Currently, those settings only apply if IMAP server is set to either 127.0.0.1 or localhost.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
solkmaaker Senior Member
Joined: 28 June 2020
Online Status: Offline Posts: 163
|
Posted: 23 November 2020 at 3:44am | IP Logged
|
|
|
Yes, what i'm saying is:
If imap server for aurora is in internal network (10.10.10.20) it will be shown on iOS profile.
Wouldn't it be more correct way if external IMAP servers would be shown (on settings screen and iOS profile) if they are defined, regardless what actual IMAP server for aurora is?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 23 November 2020 at 3:57am | IP Logged
|
|
|
Well, it's more like a different approach. But I see the point, and it doesn't really conflict with the current behavior. We'll consider implementing it in the future versions.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
solkmaaker Senior Member
Joined: 28 June 2020
Online Status: Offline Posts: 163
|
Posted: 15 April 2022 at 8:52am | IP Logged
|
|
|
Seems to be broken on v 9.3.3
Mobileconfig file does contain IP address for IncomingMailServerHostName which is stated in mail server config in aurora admin panel.
Should contain host name that is set in Mail.config.json ExternalHostNameOfLocalImap
Outgoing (SMTP) definition is correct in mobileconfig file.
Both, ExternalHostNameOfLocalImap and ExternalHostNameOfLocalSmtp are set in Mail.config.json
Also, mobileconfig does not contain password for caldav and carddav.
Imap and smtp block do contain password, and IncludePasswordInProfile is "true" in Ios.config.json
|
Back to Top |
|
|
solkmaaker Senior Member
Joined: 28 June 2020
Online Status: Offline Posts: 163
|
Posted: 15 April 2022 at 9:02am | IP Logged
|
|
|
Another thing that is a bit confusing.
Mail server names for mobileconfig supposedly come from Mail.config.json but SSL configuration (to use it or not) comes from mail server configuration in admin panel.
This is a bit weird since usually webmail connects to imap on localhost where there is no need for SSL, but this setting (no ssl) gets used in mobileconfig which should use it.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 17 April 2022 at 4:51am | IP Logged
|
|
|
I believe that starting from 9.3.2, ExternalHostNameOfLocalImap and ExternalHostNameOfLocalSmtp values from Mail.config.json are no longer used for generating iOS profile. Instead, "IMAP and SMTP hosts for external mail clients" values from mail server configuration are used.
Quote:
Mail server names for mobileconfig supposedly come from Mail.config.json but SSL configuration (to use it or not) comes from mail server configuration in admin panel. |
|
|
That part doesn't seem to be related to the recent changes, the behavior probably was like that for a while, I'll discuss this with the developers - we'll probably be adding SSL options to "IMAP and SMTP hosts for external mail clients" section as well.
Quote:
Also, mobileconfig does not contain password for caldav and carddav.
Imap and smtp block do contain password, and IncludePasswordInProfile is "true" in Ios.config.json |
|
|
Interesting. Are you saying that this behavior was different in previous versions?
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
solkmaaker Senior Member
Joined: 28 June 2020
Online Status: Offline Posts: 163
|
Posted: 17 April 2022 at 10:09am | IP Logged
|
|
|
Hmmm, that's interesting.
I have correctly set server names in "IMAP and SMTP hosts for external mail clients" but mobileconfig file still contains ip addresses for internal network which are set up in "Mail servers settings" in admin panel.
>we'll probably be adding SSL options to "IMAP and SMTP hosts for external mail clients"
That would be great.
>Are you saying that this behavior was different in previous versions?
Not sure. I haven't tested mobileconfig for a while, but i remember that profile import did not ask for password in past at some point, i don't remember which version it was then.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 18 April 2022 at 12:01am | IP Logged
|
|
|
Quote:
I have correctly set server names in "IMAP and SMTP hosts for external mail clients" but mobileconfig file still contains ip addresses for internal network which are set up in "Mail servers settings" in admin panel. |
|
|
Just like previously with Mail.config.json settings used, "IMAP and SMTP hosts for external mail clients" settings would only apply if IMAP host equals localhost or 127.0.0.1, we didn't change that aspect of the feature.
Quote:
Also, mobileconfig does not contain password for caldav and carddav.
Imap and smtp block do contain password, and IncludePasswordInProfile is "true" in Ios.config.json |
|
|
I've just confirmed with the developers that DAV password should be included as well, but looks like there's a bug with IncludePasswordInProfile setting, getAuthenticatedAccountPassword() function wasn't updated to database model of v9. We'll have it corrected in one of the nearest releases.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 18 April 2022 at 12:07am | IP Logged
|
|
|
In fact, the fix is already here - replace getAuthenticatedAccountPassword() function in modules/Ios/Manager.php file with:
Code:
private function getAuthenticatedAccountPassword()
{
$aUserInfo = \Aurora\System\Api::getAuthenticatedUserInfo();
$sAccountPassword = '';
if (isset($aUserInfo['account']) && isset($aUserInfo['accountType']))
{
$oAccount = call_user_func_array([$aUserInfo['accountType'], 'find'], [(int)$aUserInfo['account']]);
if ($oAccount) {
$sAccountPassword = $oAccount->getPassword();
}
}
return $sAccountPassword;
} |
|
|
And of course, it'll be included in the next update. Thanks!
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
solkmaaker Senior Member
Joined: 28 June 2020
Online Status: Offline Posts: 163
|
Posted: 18 April 2022 at 2:31am | IP Logged
|
|
|
Igor wrote:
Just like previously with Mail.config.json settings used, "IMAP and SMTP hosts for external mail clients" settings would only apply if IMAP host equals localhost or 127.0.0.1, we didn't change that aspect of the feature.
|
|
|
Ah, yes, forgot about that.
Since i'm using private ip address on server config and it is not 127.0.0.1 or localhost, it is showing on mobileconfig file.
As for password, thank you for update on this.
|
Back to Top |
|
|