FIX: Code: HM5015, Source: PropertySet::GetProperty_(),***

Use this forum if you want to discuss a problem or ask a question related to a hMailServer beta release.
Post Reply
User avatar
Dravion
Senior user
Senior user
Posts: 2071
Joined: 2015-09-26 11:50
Location: Germany
Contact:

FIX: Code: HM5015, Source: PropertySet::GetProperty_(),***

Post by Dravion » 2019-04-23 19:16

If your hMailServer 5.x Installation creates ERROR Logfiles like for example: ERROR_hmailserver_2019-04-23.log

And logs Errors like this:

"ERROR" 8472 "2019-04-23 18:27:10.687" "Severity: 3 (Medium), Code: HM5015, Source: PropertySet::GetProperty_(), Description: The property EnableImapSASLPlain could not be found."

"ERROR" 8472 "2019-04-23 18:27:10.736" "Severity: 3 (Medium), Code: HM5015, Source: PropertySet::GetProperty_(), Description: The property EnableImapSASLInitialResponse could not be found."

You can fix this Errors by running two simple SQL-Commands.
This Errors are triggered mostly if you try to fetch Emails from your hMailServer with Thunderbird or Outlook (or any other POP3/IMAP-Client)

The Error is non critical and can be fixed if you add 2 records to your hm_settingstable:

INSERT INTO hm_settings (settingname, settingstring, settinginteger)
VALUES ('EnableImapSASLPlain', 'none', 0);



INSERT INTO hm_settings (settingname, settingstring, settinginteger)
VALUES ('EnableImapSASLInitialResponse', 'none', 0);


If you run the original 32-Bit version of hMailServer you can use hMSSql.exe to insert it
https://github.com/Dravion/hMSSqlPad/re ... hMSSql.exe or you can insert it via MySQL-Workbench or any other
SQL-Tool which lets you execute SQL-Satements against your hMailServer Database.

Howto (for example MySQL)

1) Download attached Ziparchive, unzip it and Open MySQL Workbench
2) Login to your MySQL-Server and opoen hMailServer Database with Admin permissions
3) In File menue click "Run SQL Script" add hMailServer Schema from the bottom dropdown
4) Click run

If you see "Operation completed successfully" everything is fine. Now stop hMailServer, goto to hMailServer logfiles and
delete all logfiles and restart hMailServer Windows Service, now no Error Logs regarding this Error will come up anymore.

PS: The fix above will be integrated in next LTS Release.
Attachments
FIX_SASL_errors.zip
(291 Bytes) Downloaded 297 times
Last edited by Dravion on 2019-04-23 19:42, edited 2 times in total.

User avatar
jimimaseye
Moderator
Moderator
Posts: 10053
Joined: 2011-09-08 17:48

Re: FIX: Code: HM5015, Source: PropertySet::GetProperty_(),***

Post by jimimaseye » 2019-04-23 19:23

These errors should not be happening to anything that is not 5.7 as they belong to new functionality (SASL) written and introduced in the unreleased 5.7 alpha. If you are seeing these errors then your upgrade to the version of hms running has not been followed correctly.
5.7 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

User avatar
Dravion
Senior user
Senior user
Posts: 2071
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: FIX: Code: HM5015, Source: PropertySet::GetProperty_(),***

Post by Dravion » 2019-04-23 19:37

jimimaseye wrote:
2019-04-23 19:23
These errors should not be happening to anything that is not 5.7 as they belong to new functionality (SASL) written and introduced in the unreleased 5.7 alpha. If you are seeing these errors then your upgrade to the version of hms running has not been followed correctly.
I noticed this peace of code as i was coding the new TCP/IP TLS 1.2 based Remote protocol for HCD.
However, its just a way to get rid of the extra Error logs, you dont lose anything if you apply the fix.

Post Reply