Sub OnHELO(oClient) progress?

Use this forum if you want to discuss a problem or ask a question related to a hMailServer beta release.
ralfik
New user
New user
Posts: 8
Joined: 2007-12-16 02:41

Re: Sub OnHELO(oClient) progress?

Post by ralfik » 2022-05-11 08:35

RvdH: Great job again! I use your HmailServer build, there is no mistake. Just an idea, wouldn't you like to start a new thread that only applies to your builds? It's so hidden here and I think it's a shame. The improvements you have made are worth letting others know about. :wink: (Too bad it can't be offered in the download section. :) )

Thank you for the work you do.

shortlets
New user
New user
Posts: 1
Joined: 2022-05-15 15:48

Re: Sub OnHELO(oClient) progress?

Post by shortlets » 2022-05-15 15:51

Hello,

I tried to download the latest version, but it says error 404.

Could you check it please!
Thank you,
RvdH wrote:
2022-05-10 16:46
Latest is 5.6.9-B2587.47 (forgot to post :oops: )
Simplyinstall the latest production and/or beta artifact from the URL below, then copy and overwrite files in this archive in hmailserver '/bin' directory
https://build.hmailserver.com/viewLog.h ... =artifacts (login as guest)
  1. Added: OnHELO(oClient) event, issue #153
  2. Fix: Incorrect DEBUG logging for event 'OnDeliverMessage', issue #181
  3. Added: Include HTMLBody into IMAP TEXT search, pull #193
  4. Fix: implicit conversion: "int" to "unsigned char" pull #204
  5. Fix: Faulty SMTP 'Disconnect client after too many invalid commands' pull issue #160
  6. Fix: SMTP server error "550 Unsupported ESMTP extension" on MAIL FROM:... AUTH=<> [with fix] issue #164
  7. Fix: Removed warning if backup was more than 1,5GB and 15GB limit. There's no longer a recommended max-size - the time will vary with the installation size. issue #69
  8. Fix: Speed up 'update hm_messages set messageflags' issue #221
  9. Added: threat authenticated users as localsender if the sender is authenticated and AuthUserIsLocal=1 INI setting Office 2016/2019 Bug
  10. Added: Return-Path header as topmost header before sending the message to SA (+ delete Return-Path header after the SA check completes) issue #116
  11. Added: Event OnClientLogon(oClient), New ClientInfo property oClient.Authenticated (Boolean)
  12. Fix: Handling of long UIDL response lists was too slow. issue #93
  13. Fix: When calling SpamAssassin and there was a connection failure, sometimes temporary files were left behind issue #100
  14. Fix: SURBL detection properly fails to detect url's ending with a query string issue #108
  15. Fix: If a route is set up, but the recipient does not match an address in the route address list, the domain catch-all should be used if specified. issue #74
  16. Fix: ExternalFetcher DELE when no RETR, pull pull #254
  17. Fix: SMTP multiply max message size with 1024 issue #267
  18. Added: email address variable to SignatureAdder.cpp pull #265
  19. Fix: DKIM on acccount-rule 'reply' not applied #172 issue #172
  20. Fix: preserve RewriteEnvelopeFromWhenForwarding setting when forwarding from account rule
  21. Fix: The logical flow should be to disregard "Require SMTP authentication" if "Allow deliveries from" is unselected issue #287
  22. Added: ability to DKIM sign NDR messages (forwarded to external) pull #301
  23. Added: Use custom daemonaddressdomain from INI pull #301
  24. Fix: SURBL regex pull #320
  25. A̶d̶d̶e̶d̶:̶ ̶R̶M̶S̶P̶F̶ ̶l̶i̶b̶r̶a̶r̶y̶ ̶S̶p̶a̶m̶T̶e̶s̶t̶S̶P̶F̶ ̶R̶e̶s̶u̶l̶t̶ ̶t̶o̶ ̶D̶E̶B̶U̶G̶ ̶l̶o̶g̶g̶i̶n̶g̶,̶ ̶s̶e̶e̶ ̶t̶h̶i̶s̶ ̶f̶o̶r̶u̶m̶ ̶t̶o̶p̶i̶c̶
  26. Fix: Ignore SpamTestSPF and SpamTestHeloHost when send thru local IP Address, see this forum topic
  27. Added: SPF test to include "HELO/EHLO host" used by DNS macros pull 353
  28. Fix: 'Unencrypted Cleartext Login' vulnerability detection pull 242
  29. Fix: Anti-spam; Maximum message to scan (KB) is now limited to 256MB, see this forum topic
  30. Added: "UseDNSCache" INI setting. 1 = Use cache in DNS Client service (default). 0 = Bypass cache in DNS Client service. pull 396
  31. Fix: AWStats::LogDeliveryFailure was called twice for each message in OnDeliveryFailed pull 368
  32. Fix: oMessage object was empty (in some circumstances) when called from OnDeliveryFailed pull 369
  33. Added: Experimental events OnRecipientUnknown(oClient, oMessage) and OnTooManyInvalidCommands(oClient, oMessage) pull #390
  34. Added: TLS server cipher preference support and support for prioritizing ChaCha20Poly1305 pull 379
  35. Added: DKIM signature for domain aliases pull 383
  36. Added: "DNSServer" INI setting. Single (local) DNS server IPv4 addresses to use within hMailServer instead of default system DNS. pull 396
  37. Added: Auto-Submitted header for auto-generated messages pull 386
  38. Added: New ClientInfo properties oClient.EncryptedConnection (Boolean), oClient.CipherVersion, oClient.CipherName and oClient.CipherBits pull #391
  39. Added: DomainMembers DistributionList mode pull #392
  40. Added: X-hMailServer-Envelope-From header, grouping off all X-hMailServer-* headers, For consistency equalize Return-Path format used within hMailServer, eg: Return-Path: <return-route-addr> (always use angle brackets)
  41. Fix: integer overflow check for SPF macro segment count pull #399
  42. Added: New ClientInfo property oClient.SessionID (long) issue #401
  43. Added: New Status property oApp.Status.ThreadID (long) this forum topic
  44. Added: rDNS/PTR AntiSpam Check pull #413
  45. Added: Prefer IPv6 over IPv4 pull #415
  46. Fix: SpamTestHeloHost IPv6 Fix pull #416
  47. Fix: Changed ClamAV Scan from STREAM to INSTREAM. issue #420
  48. Added: MIME Recipient Headers as configurable comma delimited string pull #428

Important! This fork requires you to add an additional entries to the hm_settings database table, eg:

MariaDB, MySQL

Code: Select all

insert into hm_settings (settingname, settingstring, settinginteger) 
  select 'TlsOptions', '', 0 from dual
where not exists 
  (select settingname from hm_settings where settingname='TlsOptions');

insert into hm_settings (settingname, settingstring, settinginteger) 
  select 'ascheckptr', '', 0 from dual
where not exists 
  (select settingname from hm_settings where settingname='ascheckptr');

insert into hm_settings (settingname, settingstring, settinginteger) 
  select 'ascheckptrscore', '', 1 from dual
where not exists 
  (select settingname from hm_settings where settingname='ascheckptrscore');

insert into hm_settings (settingname, settingstring, settinginteger) 
  select 'IPv6Preferred', '', 0 from dual
where not exists 
  (select settingname from hm_settings where settingname='IPv6Preferred');

alter table hm_fetchaccounts add column if not exists famimerecipientheaders varchar(255) not null default 'To,CC,X-RCPT-TO,X-Envelope-To';

update hm_dbversion set value = 5606;
MSSQL

Code: Select all

IF NOT EXISTS(SELECT settingname FROM hm_settings WHERE settingname = 'TlsOptions')
INSERT INTO hm_settings(settingname, settingstring, settinginteger) VALUES ('TlsOptions','','0')
GO
IF NOT EXISTS(SELECT settingname FROM hm_settings WHERE settingname = 'ascheckptr')
insert into hm_settings (settingname, settingstring, settinginteger) values ('ascheckptr', '', 0)
GO
IF NOT EXISTS(SELECT settingname FROM hm_settings WHERE settingname = 'ascheckptrscore')
insert into hm_settings (settingname, settingstring, settinginteger) values ('ascheckptrscore', '', 1)
GO
IF NOT EXISTS(SELECT settingname FROM hm_settings WHERE settingname = 'IPv6Preferred')
insert into hm_settings (settingname, settingstring, settinginteger) values ('IPv6Preferred', '', 0)
GO
IF NOT EXISTS (
  SELECT
    *
  FROM
    INFORMATION_SCHEMA.COLUMNS
  WHERE
    TABLE_NAME = 'hm_fetchaccounts' AND COLUMN_NAME = 'famimerecipientheaders')
BEGIN
  ALTER TABLE hm_fetchaccounts
    ADD famimerecipientheaders nvarchar(255) NOT NULL DEFAULT 'To,CC,X-RCPT-TO,X-Envelope-To'
END;
GO
UPDATE hm_dbversion SET value = 5606
GO
Download
https://d-fault.nl/files/hMailServer-Bu ... 2587.47.7z

* Included hMailAdmin.exe fixes sorting of DateTime and IPAddress (IP4) values, not reflected in server application version numbering

User avatar
fjansen04
Normal user
Normal user
Posts: 50
Joined: 2008-08-30 15:49
Location: The Netherlands

Re: Sub OnHELO(oClient) progress?

Post by fjansen04 » 2022-05-17 15:11

404.

Unable to download; the whole file section seems to be gone.
HMS 5.6.9-B2587.46 on Windows Server 2019

glenluo
Senior user
Senior user
Posts: 271
Joined: 2011-07-03 12:10

Re: Sub OnHELO(oClient) progress?

Post by glenluo » 2022-05-22 15:07

All return 404 error now......

User avatar
SorenR
Senior user
Senior user
Posts: 5442
Joined: 2006-08-21 15:38
Location: Denmark

Re: Sub OnHELO(oClient) progress?

Post by SorenR » 2022-05-22 15:27

He's not been on here since May 12 ... Holiday, Corona or simply time off ?
SørenR.

There are two types of people in this world:
1) Those who can extrapolate from incomplete data

User avatar
SorenR
Senior user
Senior user
Posts: 5442
Joined: 2006-08-21 15:38
Location: Denmark

Re: Sub OnHELO(oClient) progress?

Post by SorenR » 2022-05-22 20:32

Well... RvdH's code and my own private code are probably 90% the same.

Until this "thing" with RvdH is resolved, I have put up a provisionary release to deal with the ClamAV 0.104+ thing. I run this release on my two servers.

The binary is a complete install/upgrade and will also manage database changes. I believe RvdH at some point was using a different scheme of versioning Database changes. If you run into issues with updating the database please have a look in the ..\hMailServer\DBScripts\ for SQL files versioned 5600 and above for your installed database server.

PLEASE REMEMBER TO BACKUP EVERYTHING in case it is a full moon and the Gremlins are out. Pay special attention to hMailServer.ini AND EventHandlers.vbs.

****> IF in doubt, install on test server first! <****

Following events are NOT - repeat; NOT implemented i this code!
Experimental events OnRecipientUnknown(oClient, oMessage) and OnTooManyInvalidCommands(oClient, oMessage) pull #390

Please note that API Object "oClient.Passwd" will NOT reveal the password of a successful authentication. 8)

The code:
https://github.com/SorenRR/hmailserver/ ... 9-2587.M56
  1. Supports Sub OnHELO(oClient) event, issue #153
  2. Fixed Incorrect DEBUG logging for event 'OnDeliverMessage', issue #181
  3. Include HTMLBody into IMAP TEXT search, pull #193
  4. Fixed implicit conversion: "int" to "unsigned char" pull #204
  5. Faulty: SMTP 'Disconnect client after too many invalid commands' pull issue #160
  6. SMTP server error "550 Unsupported ESMTP extension" on MAIL FROM:... AUTH=<> [with fix] issue #164
  7. Removed warning if backup was more than 1,5GB and 15GB limit. There's no longer a recommended max-size - the time will vary with the installation size. issue #69
  8. Speed up 'update hm_messages set messageflags' issue #221
  9. Treat authenticated users as localsender if the sender is authenticated and AuthUserIsLocal=1 INI setting Office 2016/2019 Bug
  10. Add Return-Path header as topmost header before sending the message to SA (+ delete Return-Path header after the SA check completes) issue #116
  11. Experimental eventhandler OnClientLogon(oClient), New ClientInfo property oClient.Authenticated (Boolean)
  12. Handling of long UIDL response lists was too slow. issue #93
  13. When calling SpamAssassin and there was a connection failure, sometimes temporary files were left behind issue #100
  14. SURBL detection properly fails to detect url's ending with a query string issue #108
  15. If a route is set up, but the recipient does not match an address in the route address list, the domain catch-all should be used if specified. issue #74
  16. Fix ExternalFetcher DELE when no RETR, pull pull #254
  17. SMTP multiply max message size with 1024 issue #267
  18. Add email address variable to SignatureAdder.cpp pull #265
  19. DKIM on acccount-rule 'reply' not applied #172 issue #172
  20. preserve RewriteEnvelopeFromWhenForwarding setting when forwarding from account rule
  21. The logical flow should be to disregard "Require SMTP authentication" if "Allow deliveries from" is unselected issue #287
  22. Add ability to DKIM sign NDR messages (forwarded to external) pull #301
  23. Use custom daemonaddressdomain from INI pull #301
  24. Fix SURBL regex pull #320
  25. Add RMSPF library SpamTestSPF Result to DEBUG logging, see this forum topic
  26. Ignore SpamTestSPF and SpamTestHeloHost when send thru local IP Address, see this forum topic
  27. SPF test to include "HELO/EHLO host" used by DNS macros pull 353
  28. Fix 'Unencrypted Cleartext Login' vulnerability detection pull 242
  29. Add SMTP MAIL FROM header: X-hMailServer-Envelope-From. Add following to SpamAssassin local.cf: envelope_sender_header X-hMailServer-Envelope-From
  30. New ClientInfo properties oClient.ESMTP(boolean), oClient.TLS(boolean) and oClient.Passwd(string)
  31. Added "UseDNSCache" option to [Settings]. 1 = Use cache in DNS Client service. 0 = Bypass cache in DNS Client service.
  32. "UseDNSCache" control temporary fix; Messages bouncing immediately due to no mail servers due to DNS issue "ExternalDelivery.cpp"
  33. Anti-spam; Maximum message to scan (KB) is now limited to 5 MB if entered value = 0, otherwise whatever is entered into GUI.
  34. AWStats::LogDeliveryFailure was called twice for each message in OnDeliveryFailed
  35. oMessage object was empty when called from OnDeliveryFailed in SMTPDeliverer.cpp
  36. Fix Auto Submitted header for auto-generated messages
  37. Sub OnClientLogon(oClient) only show password for failed login
  38. Added: "DNSServer" INI setting. Single (local) DNS server IPv4 addresses to use within hMailServer instead of default system DNS.
  39. Added: #251 External Fetch - First try (X-)Envelope-To and X-RCPT-TO headers and ExternalFetcher DELE when no RETR
  40. Added: #337 Set the JScript version to use
  41. Added: #383 DKIM signature for domain aliases
  42. Added: New ClientInfo properties oClient.EncryptedConnection (Boolean), oClient.CipherVersion, oClient.CipherName and oClient.CipherBits
  43. Added: DomainMembers DistributionList mode pull #392
  44. Added: oClient.SessionID "The SessionID for TCP/IP connection."
  45. Added: X-hMailServer-Envelope-From header, grouping off all X-hMailServer-* headers, For consistency equalize Return-Path format used within hMailServer, eg: Return-Path: <return-route-addr> (always use angle brackets)
  46. Added: TLS server cipher preference support and support for prioritizing ChaCha20Poly1305 pull 379
  47. Added: rDNS/PTR AntiSpam Check pull #413
  48. Added: Prefer IPv6 over IPv4 pull #415
  49. Fix: SpamTestHeloHost IPv6 Fix pull #416
  50. Mod: Changed ClamAV Scan from STREAM to INSTREAM.
  51. Added: MIME Recipient Headers as configurable comma delimited string pull #428
SørenR.

There are two types of people in this world:
1) Those who can extrapolate from incomplete data

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

Re: Sub OnHELO(oClient) progress?

Post by jimimaseye » 2022-05-22 23:00

Initial post link updated.
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

glenluo
Senior user
Senior user
Posts: 271
Joined: 2011-07-03 12:10

Re: Sub OnHELO(oClient) progress?

Post by glenluo » 2022-05-23 05:14

Just test hMailServer-5.6.9-B2587.M56,and it works fine with ClamAV 0.105.0

User avatar
bagu
Senior user
Senior user
Posts: 257
Joined: 2005-06-17 03:08
Location: France
Contact:

Re: Sub OnHELO(oClient) progress?

Post by bagu » 2022-05-23 09:38

All the interest of the version proposed in this thread does not lie in the only support of clamav.
hMailServer 5.6.8 With SpamAssassin 3.4.4

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

Re: Sub OnHELO(oClient) progress?

Post by jimimaseye » 2022-05-23 09:44

bagu wrote:
2022-05-23 09:38
All the interest of the version proposed in this thread does not lie in the only support of clamav.
I dont understand your comment. What are you trying to say? What do you mean?
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
bagu
Senior user
Senior user
Posts: 257
Joined: 2005-06-17 03:08
Location: France
Contact:

Re: Sub OnHELO(oClient) progress?

Post by bagu » 2022-05-23 09:48

Hello, I was responding to glenluo.
Indeed, I understood from his comment that there was no need for the version proposed in this thread.
It is possible that I misunderstood ¯\_(ツ)_/¯
hMailServer 5.6.8 With SpamAssassin 3.4.4

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

Re: Sub OnHELO(oClient) progress?

Post by jimimaseye » 2022-05-23 12:13

Ah right. He is correct - an update is required to be able to connect to v0.105 and the only version currently available to provide this is Sorens.
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

glenluo
Senior user
Senior user
Posts: 271
Joined: 2011-07-03 12:10

Re: Sub OnHELO(oClient) progress?

Post by glenluo » 2022-05-23 14:06

old version only support 0.103.X.Maybe soon,old clamav can not update the database one day.
And this one support 0.104.X and 0.105.X.

palinka
Senior user
Senior user
Posts: 3588
Joined: 2017-09-12 17:57

Re: Sub OnHELO(oClient) progress?

Post by palinka » 2022-06-01 16:18

RvdH wrote:
2022-05-10 16:46
Latest is 5.6.9-B2587.47 (forgot to post :oops: )
  1. Fix: Changed ClamAV Scan from STREAM to INSTREAM. issue #420
Has this made its way into 5.7 yet?

User avatar
SorenR
Senior user
Senior user
Posts: 5442
Joined: 2006-08-21 15:38
Location: Denmark

Re: Sub OnHELO(oClient) progress?

Post by SorenR » 2022-06-01 20:23

palinka wrote:
2022-06-01 16:18
RvdH wrote:
2022-05-10 16:46
Latest is 5.6.9-B2587.47 (forgot to post :oops: )
  1. Fix: Changed ClamAV Scan from STREAM to INSTREAM. issue #420
Has this made its way into 5.7 yet?
Not that I know of.
SørenR.

There are two types of people in this world:
1) Those who can extrapolate from incomplete data

palinka
Senior user
Senior user
Posts: 3588
Joined: 2017-09-12 17:57

Re: Sub OnHELO(oClient) progress?

Post by palinka » 2022-06-01 22:03

SorenR wrote:
2022-06-01 20:23
palinka wrote:
2022-06-01 16:18
RvdH wrote:
2022-05-10 16:46
Latest is 5.6.9-B2587.47 (forgot to post :oops: )
  1. Fix: Changed ClamAV Scan from STREAM to INSTREAM. issue #420
Has this made its way into 5.7 yet?
Not that I know of.
:(

hoover
New user
New user
Posts: 2
Joined: 2022-06-15 02:19

Re: Sub OnHELO(oClient) progress?

Post by hoover » 2022-06-15 02:58

Hi

I've just setup a testlab to test out hMailServer 5.6.9-B2587.M56 with ClamAV 0.105.0
using a simple sendmail.exe to throw emails with attachments at the mail server, I seem to be getting some errors when email should be scanned.

mail log:
"DEBUG" 96356 "2022-06-15 01:01:42.718" "Connecting to ClamAV virus scanner..."
"ERROR" 96356 "2022-06-15 01:01:42.718" "Severity: 3 (Medium), Code: HM5406, Source: ClamAVVirusScanner::Scan, Description: Unable to read response (after streaming)."
"DEBUG" 96356 "2022-06-15 01:01:42.718" "Connecting to ClamAV virus scanner..."
"ERROR" 96356 "2022-06-15 01:01:42.733" "Severity: 3 (Medium), Code: HM5406, Source: ClamAVVirusScanner::Scan, Description: Unable to write packet data to stream port."
"DEBUG" 96356 "2022-06-15 01:01:42.733" "Applying rules"
error log
"ERROR" 96356 "2022-06-15 01:05:46.520" "Severity: 3 (Medium), Code: HM5406, Source: ClamAVVirusScanner::Scan, Description: Unable to read response (after streaming)."
"ERROR" 96356 "2022-06-15 01:05:46.536" "Severity: 3 (Medium), Code: HM5406, Source: ClamAVVirusScanner::Scan, Description: Unable to write packet data to stream port."
"ERROR" 96356 "2022-06-15 01:11:49.201" "Severity: 3 (Medium), Code: HM5406, Source: ClamAVVirusScanner::Scan, Description: Unable to write packet size to stream port."
"ERROR" 96356 "2022-06-15 01:11:49.404" "Severity: 3 (Medium), Code: HM5406, Source: ClamAVVirusScanner::Scan, Description: Unable to write packet data to stream port."

server settings
Domains > Limits > Max message size 20000
Settings > protocols > SMTP > Max message size 20000

clamd.conf
StreamMaxLength 20M
MaxScanSize 20M
MaxFileSize 20M
( nothing is set to scan over 20 MB )
I also get the error when running a test through the GUI
AVtest.png
AVtest.png (11.57 KiB) Viewed 2832 times
I've tried changing settings and restarting clamd, but cant seem to remove the errors
also done a bit of googling HM5406 and there are some posts for that error, but even when I follow them to match the settings, I'm still getting the errors.
Any ideas would be appreciated..

glenluo
Senior user
Senior user
Posts: 271
Joined: 2011-07-03 12:10

Re: Sub OnHELO(oClient) progress?

Post by glenluo » 2022-06-15 04:37

hoover wrote:
2022-06-15 02:58
Hi

I've just setup a testlab to test out hMailServer 5.6.9-B2587.M56 with ClamAV 0.105.0
using a simple sendmail.exe to throw emails with attachments at the mail server, I seem to be getting some errors when email should be scanned.

mail log:
"DEBUG" 96356 "2022-06-15 01:01:42.718" "Connecting to ClamAV virus scanner..."
"ERROR" 96356 "2022-06-15 01:01:42.718" "Severity: 3 (Medium), Code: HM5406, Source: ClamAVVirusScanner::Scan, Description: Unable to read response (after streaming)."
"DEBUG" 96356 "2022-06-15 01:01:42.718" "Connecting to ClamAV virus scanner..."
"ERROR" 96356 "2022-06-15 01:01:42.733" "Severity: 3 (Medium), Code: HM5406, Source: ClamAVVirusScanner::Scan, Description: Unable to write packet data to stream port."
"DEBUG" 96356 "2022-06-15 01:01:42.733" "Applying rules"
error log
"ERROR" 96356 "2022-06-15 01:05:46.520" "Severity: 3 (Medium), Code: HM5406, Source: ClamAVVirusScanner::Scan, Description: Unable to read response (after streaming)."
"ERROR" 96356 "2022-06-15 01:05:46.536" "Severity: 3 (Medium), Code: HM5406, Source: ClamAVVirusScanner::Scan, Description: Unable to write packet data to stream port."
"ERROR" 96356 "2022-06-15 01:11:49.201" "Severity: 3 (Medium), Code: HM5406, Source: ClamAVVirusScanner::Scan, Description: Unable to write packet size to stream port."
"ERROR" 96356 "2022-06-15 01:11:49.404" "Severity: 3 (Medium), Code: HM5406, Source: ClamAVVirusScanner::Scan, Description: Unable to write packet data to stream port."

server settings
Domains > Limits > Max message size 20000
Settings > protocols > SMTP > Max message size 20000

clamd.conf
StreamMaxLength 20M
MaxScanSize 20M
MaxFileSize 20M
( nothing is set to scan over 20 MB )
I also get the error when running a test through the GUI
AVtest.png

I've tried changing settings and restarting clamd, but cant seem to remove the errors
also done a bit of googling HM5406 and there are some posts for that error, but even when I follow them to match the settings, I'm still getting the errors.
Any ideas would be appreciated..
Enanle below setting then restart clamav

TCPSocket 3310
TCPAddr 127.0.0.1

hoover
New user
New user
Posts: 2
Joined: 2022-06-15 02:19

Re: Sub OnHELO(oClient) progress?

Post by hoover » 2022-06-15 12:43

yep that did the trick
I also got caught out by permissions on the temp dir
perms.png
All working fine now :lol:
Many thanks

vidiot
New user
New user
Posts: 12
Joined: 2015-03-16 21:18

Re: Sub OnHELO(oClient) progress?

Post by vidiot » 2022-06-16 19:59

Nothing against your build, Soren, but it appears RvdH has returned, as I see posts in other areas. I'm posting to hopefully catch his attention (as download link still broken) and also to thank him for his builds and agree with a previous poster who said there should be a new, better titled, thread for his version (and one for 5.7 too?)

Thanks

User avatar
RvdH
Senior user
Senior user
Posts: 2155
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: Sub OnHELO(oClient) progress?

Post by RvdH » 2022-06-16 23:49

palinka wrote:
2022-06-01 22:03
SorenR wrote:
2022-06-01 20:23
palinka wrote:
2022-06-01 16:18


Has this made its way into 5.7 yet?
Not that I know of.
:(
https://github.com/hmailserver/hmailserver/pull/433
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

User avatar
SorenR
Senior user
Senior user
Posts: 5442
Joined: 2006-08-21 15:38
Location: Denmark

Re: Sub OnHELO(oClient) progress?

Post by SorenR » 2022-06-17 00:08

vidiot wrote:
2022-06-16 19:59
Nothing against your build, Soren, but it appears RvdH has returned, as I see posts in other areas. I'm posting to hopefully catch his attention (as download link still broken) and also to thank him for his builds and agree with a previous poster who said there should be a new, better titled, thread for his version (and one for 5.7 too?)

Thanks
No problem.
SørenR.

There are two types of people in this world:
1) Those who can extrapolate from incomplete data

User avatar
RvdH
Senior user
Senior user
Posts: 2155
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: Sub OnHELO(oClient) progress?

Post by RvdH » 2022-06-17 10:21

Latest is 5.6.9-B2593.46
Nothing changed compared with the previous version, only .9 is reverted/removed :!:
Simply install the latest production and/or beta artifact from the URL below, then copy and overwrite files in this archive in hmailserver '/bin' directory
https://build.hmailserver.com/viewLog.h ... =artifacts (login as guest)
  1. Added: OnHELO(oClient) event, issue #153
  2. Fix: Incorrect DEBUG logging for event 'OnDeliverMessage', issue #181
  3. Added: Include HTMLBody into IMAP TEXT search, pull #193
  4. Fix: implicit conversion: "int" to "unsigned char" pull #204
  5. Fix: Faulty SMTP 'Disconnect client after too many invalid commands' pull issue #160
  6. Fix: SMTP server error "550 Unsupported ESMTP extension" on MAIL FROM:... AUTH=<> [with fix] issue #164
  7. Fix: Removed warning if backup was more than 1,5GB and 15GB limit. There's no longer a recommended max-size - the time will vary with the installation size. issue #69
  8. Fix: Speed up 'update hm_messages set messageflags' issue #221
  9. A̶d̶d̶e̶d̶:̶ ̶t̶h̶r̶e̶a̶t̶ ̶a̶u̶t̶h̶e̶n̶t̶i̶c̶a̶t̶e̶d̶ ̶u̶s̶e̶r̶s̶ ̶a̶s̶ ̶l̶o̶c̶a̶l̶s̶e̶n̶d̶e̶r̶ ̶i̶f̶ ̶t̶h̶e̶ ̶s̶e̶n̶d̶e̶r̶ ̶i̶s̶ ̶a̶u̶t̶h̶e̶n̶t̶i̶c̶a̶t̶e̶d̶ ̶a̶n̶d̶ ̶A̶u̶t̶h̶U̶s̶e̶r̶I̶s̶L̶o̶c̶a̶l̶=̶1̶ ̶I̶N̶I̶ ̶s̶e̶t̶t̶i̶n̶g̶ ̶O̶f̶f̶i̶c̶e̶ ̶2̶0̶1̶6̶/̶2̶0̶1̶9̶ ̶B̶u̶g̶
  10. Added: Return-Path header as topmost header before sending the message to SA (+ delete Return-Path header after the SA check completes) issue #116
  11. Added: Event OnClientLogon(oClient), New ClientInfo property oClient.Authenticated (Boolean)
  12. Fix: Handling of long UIDL response lists was too slow. issue #93
  13. Fix: When calling SpamAssassin and there was a connection failure, sometimes temporary files were left behind issue #100
  14. Fix: SURBL detection properly fails to detect url's ending with a query string issue #108
  15. Fix: If a route is set up, but the recipient does not match an address in the route address list, the domain catch-all should be used if specified. issue #74
  16. Fix: ExternalFetcher DELE when no RETR, pull pull #254
  17. Fix: SMTP multiply max message size with 1024 issue #267
  18. Added: email address variable to SignatureAdder.cpp pull #265
  19. Fix: DKIM on acccount-rule 'reply' not applied #172 issue #172
  20. Fix: preserve RewriteEnvelopeFromWhenForwarding setting when forwarding from account rule
  21. Fix: The logical flow should be to disregard "Require SMTP authentication" if "Allow deliveries from" is unselected issue #287
  22. Added: ability to DKIM sign NDR messages (forwarded to external) pull #301
  23. Added: Use custom daemonaddressdomain from INI pull #301
  24. Fix: SURBL regex pull #320
  25. A̶d̶d̶e̶d̶:̶ ̶R̶M̶S̶P̶F̶ ̶l̶i̶b̶r̶a̶r̶y̶ ̶S̶p̶a̶m̶T̶e̶s̶t̶S̶P̶F̶ ̶R̶e̶s̶u̶l̶t̶ ̶t̶o̶ ̶D̶E̶B̶U̶G̶ ̶l̶o̶g̶g̶i̶n̶g̶,̶ ̶s̶e̶e̶ ̶t̶h̶i̶s̶ ̶f̶o̶r̶u̶m̶ ̶t̶o̶p̶i̶c̶
  26. Fix: Ignore SpamTestSPF and SpamTestHeloHost when send thru local IP Address, see this forum topic
  27. Added: SPF test to include "HELO/EHLO host" used by DNS macros pull 353
  28. Fix: 'Unencrypted Cleartext Login' vulnerability detection pull 242
  29. Fix: Anti-spam; Maximum message to scan (KB) is now limited to 256MB, see this forum topic
  30. Added: "UseDNSCache" INI setting. 1 = Use cache in DNS Client service (default). 0 = Bypass cache in DNS Client service. pull 396
  31. Fix: AWStats::LogDeliveryFailure was called twice for each message in OnDeliveryFailed pull 368
  32. Fix: oMessage object was empty (in some circumstances) when called from OnDeliveryFailed pull 369
  33. Added: Experimental events OnRecipientUnknown(oClient, oMessage) and OnTooManyInvalidCommands(oClient, oMessage) pull #390
  34. Added: TLS server cipher preference support and support for prioritizing ChaCha20Poly1305 pull 379
  35. Added: DKIM signature for domain aliases pull 383
  36. Added: "DNSServer" INI setting. Single (local) DNS server IPv4 addresses to use within hMailServer instead of default system DNS. pull 396
  37. Added: Auto-Submitted header for auto-generated messages pull 386
  38. Added: New ClientInfo properties oClient.EncryptedConnection (Boolean), oClient.CipherVersion, oClient.CipherName and oClient.CipherBits pull #391
  39. Added: DomainMembers DistributionList mode pull #392
  40. Added: X-hMailServer-Envelope-From header, grouping off all X-hMailServer-* headers, For consistency equalize Return-Path format used within hMailServer, eg: Return-Path: <return-route-addr> (always use angle brackets)
  41. Fix: integer overflow check for SPF macro segment count pull #399
  42. Added: New ClientInfo property oClient.SessionID (long) issue #401
  43. Added: New Status property oApp.Status.ThreadID (long) this forum topic
  44. Added: rDNS/PTR AntiSpam Check pull #413
  45. Added: Prefer IPv6 over IPv4 pull #415
  46. Fix: SpamTestHeloHost IPv6 Fix pull #416
  47. Fix: Changed ClamAV Scan from STREAM to INSTREAM. issue #420
  48. Added: MIME Recipient Headers as configurable comma delimited string pull #428
Important! This fork requires you to add an additional entries to the hm_settings database table, eg:

MariaDB, MySQL

Code: Select all

insert into hm_settings (settingname, settingstring, settinginteger) 
  select 'TlsOptions', '', 0 from dual
where not exists 
  (select settingname from hm_settings where settingname='TlsOptions');

insert into hm_settings (settingname, settingstring, settinginteger) 
  select 'ascheckptr', '', 0 from dual
where not exists 
  (select settingname from hm_settings where settingname='ascheckptr');

insert into hm_settings (settingname, settingstring, settinginteger) 
  select 'ascheckptrscore', '', 1 from dual
where not exists 
  (select settingname from hm_settings where settingname='ascheckptrscore');

insert into hm_settings (settingname, settingstring, settinginteger) 
  select 'IPv6Preferred', '', 0 from dual
where not exists 
  (select settingname from hm_settings where settingname='IPv6Preferred');

alter table hm_fetchaccounts add column if not exists famimerecipientheaders varchar(255) not null default 'To,CC,X-RCPT-TO,X-Envelope-To';

update hm_dbversion set value = 5606;
MSSQL

Code: Select all

IF NOT EXISTS(SELECT settingname FROM hm_settings WHERE settingname = 'TlsOptions')
INSERT INTO hm_settings(settingname, settingstring, settinginteger) VALUES ('TlsOptions','','0')
GO
IF NOT EXISTS(SELECT settingname FROM hm_settings WHERE settingname = 'ascheckptr')
insert into hm_settings (settingname, settingstring, settinginteger) values ('ascheckptr', '', 0)
GO
IF NOT EXISTS(SELECT settingname FROM hm_settings WHERE settingname = 'ascheckptrscore')
insert into hm_settings (settingname, settingstring, settinginteger) values ('ascheckptrscore', '', 1)
GO
IF NOT EXISTS(SELECT settingname FROM hm_settings WHERE settingname = 'IPv6Preferred')
insert into hm_settings (settingname, settingstring, settinginteger) values ('IPv6Preferred', '', 0)
GO
IF NOT EXISTS (
  SELECT
    *
  FROM
    INFORMATION_SCHEMA.COLUMNS
  WHERE
    TABLE_NAME = 'hm_fetchaccounts' AND COLUMN_NAME = 'famimerecipientheaders')
BEGIN
  ALTER TABLE hm_fetchaccounts
    ADD famimerecipientheaders nvarchar(255) NOT NULL DEFAULT 'To,CC,X-RCPT-TO,X-Envelope-To'
END;
GO
UPDATE hm_dbversion SET value = 5606
GO
Download
https://d-fault.nl/files/hMailServer-Bu ... 2593.46.7z

* Included hMailAdmin.exe fixes sorting of DateTime and IPAddress (IP4) values, not reflected in server application version numbering
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

User avatar
RvdH
Senior user
Senior user
Posts: 2155
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: Sub OnHELO(oClient) progress?

Post by RvdH » 2022-06-17 11:13

RvdH wrote:
2022-06-17 10:21
Nothing changed compared with the previous version, only .9 is reverted/removed :!:
Why? Read here
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

User avatar
RvdH
Senior user
Senior user
Posts: 2155
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: Sub OnHELO(oClient) progress?

Post by RvdH » 2022-06-19 11:02

RvdH wrote:
2022-06-16 23:49
palinka wrote:
2022-06-01 22:03
SorenR wrote:
2022-06-01 20:23


Not that I know of.
:(
https://github.com/hmailserver/hmailserver/pull/433
hMailServer-5.7.0-B2594-x64.exe (login as guest :!: )
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

palinka
Senior user
Senior user
Posts: 3588
Joined: 2017-09-12 17:57

Re: Sub OnHELO(oClient) progress?

Post by palinka » 2022-06-19 13:42

SorenR wrote:
2022-06-01 20:23
palinka wrote:
2022-06-01 16:18
RvdH wrote:
2022-05-10 16:46
Latest is 5.6.9-B2587.47 (forgot to post :oops: )
  1. Fix: Changed ClamAV Scan from STREAM to INSTREAM. issue #420
Has this made its way into 5.7 yet?
Not that I know of.
https://github.com/hmailserver/hmailser ... 6834434773

Looks like Martin merged it into 5.7 today.

User avatar
RvdH
Senior user
Senior user
Posts: 2155
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: Sub OnHELO(oClient) progress?

Post by RvdH » 2022-06-19 15:40

:ike I said in the post above? :wink:
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

palinka
Senior user
Senior user
Posts: 3588
Joined: 2017-09-12 17:57

Re: Sub OnHELO(oClient) progress?

Post by palinka » 2022-06-19 19:00

RvdH wrote:
2022-06-19 15:40
:ike I said in the post above? :wink:
Yes, exactly, except in English. :D

User avatar
RvdH
Senior user
Senior user
Posts: 2155
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: Sub OnHELO(oClient) progress?

Post by RvdH » 2022-06-20 11:39

palinka wrote:
2022-06-19 19:00
RvdH wrote:
2022-06-19 15:40
:ike I said in the post above? :wink:
Yes, exactly, except in English. :D
I ran "hMailServer-5.7.0-B2594-x64.exe (login as guest :!: )" though as spellchecker and it reported nothing was wrong :wink: :lol:
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-24 02:00

I upgraded from hMailServer 5.6.8 Build 2574 to 5.7 Build 2595 and I have two problems:

1. After the upgrade, the account rules are applied but not processed (messages are not moved).
Global rules are processed.
Is it a bug or do I need other settings?

2. I tried to overwrite the files in the bin folder with those at https://d-fault.nl/files/hMailServer-Bu ... 2593.46.7z.
After that, hMailServer service starts but hMailAdmin does not start and rouncube does not connect.
I did not find very clearly on the forum what conditions are needed to correctly overwrite the files.
I gave up and went back to the initial bin folder from 5.7 Build 2595 with the rules issue.

"DEBUG" 1424 "2022-06-24 01:24:45.244" "No virus detected: stream: OK"
"DEBUG" 1424 "2022-06-24 01:24:45.244" "Applying rules"
"DEBUG" 1424 "2022-06-24 01:24:45.244" "Applying rule Spam"
"DEBUG" 1424 "2022-06-24 01:24:45.244" "Executing event OnDeliverMessage"
"DEBUG" 1424 "2022-06-24 01:24:45.337" "Event completed"
"DEBUG" 1424 "2022-06-24 01:24:45.337" "Performing local delivery"
"DEBUG" 1424 "2022-06-24 01:24:45.337" "Applying rules"
"DEBUG" 1424 "2022-06-24 01:24:45.337" "Applying rule Sent"
"DEBUG" 1424 "2022-06-24 01:24:45.337" "Saving message: {2359F58C-6FD2-4E0F-A553-634276E325D6}.eml"
"DEBUG" 1424 "2022-06-24 01:24:45.353" "AWStats::LogDeliverySuccess"
"DEBUG" 1424 "2022-06-24 01:24:45.353" "Local delivery completed"

*Spam is a global rule (processed)
*Sent is a account rule (not processed)
No errors

Please help ... maybe I did something wrong
Attachments
ScreenShot832.png
ScreenShot832.png (8.01 KiB) Viewed 2525 times

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-24 09:29

laurscr wrote:
2022-06-24 02:00
2. I tried to overwrite the files in the bin folder with those at https://d-fault.nl/files/hMailServer-Bu ... 2593.46.7z.
After that, hMailServer service starts but hMailAdmin does not start and rouncube does not connect.
Oh, now I see .. 5.6.9 (not 5.7) is the correct version to overwrite files ... apff

The problem with the rules in version 5.7 Build 2595 remains. Global rules apply but account rules do not work.
Please let me know if you tested this version and you have the same problem. Thx!
Last edited by laurscr on 2022-06-24 09:31, edited 1 time in total.

User avatar
mattg
Moderator
Moderator
Posts: 21972
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Sub OnHELO(oClient) progress?

Post by mattg » 2022-06-24 09:30

#1 Account rules work for me in 5.7
Please show your rule

#2 RvDH builds are only for the 5.6.X versions I think, not for the 5.7 Versions
Most of the changes are already implemented in 5.7
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-24 09:45

mattg wrote:
2022-06-24 09:30
#1 Account rules work for me in 5.7
Same build 2595?
My one account rule (first) is: if From wildcard is *@domain.com then move to Sent folder and stop rule processing
I have several account rules. None are processed.
Before the upgrade all the rules worked well.
mattg wrote:
2022-06-24 09:30
Most of the changes are already implemented in 5.7
I read in the latest versions I can index the body of messages (for searching from the roundcube), but I do not notice that I have this setting active
Attachments
ScreenShot834.png
ScreenShot834.png (8.57 KiB) Viewed 2512 times

User avatar
mattg
Moderator
Moderator
Posts: 21972
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Sub OnHELO(oClient) progress?

Post by mattg » 2022-06-24 10:35

Yes, same version
I move to a Shared folder

Which folder are you moving to?

Code: Select all

"DEBUG"	15144	"2022-06-24 04:05:12.311"	"Executing event OnDeliverMessage"
"DEBUG"	15144	"2022-06-24 04:05:12.311"	"Event completed"
"DEBUG"	15144	"2022-06-24 04:05:12.311"	"Performing local delivery"
"DEBUG"	15144	"2022-06-24 04:05:12.311"	"Copying mail contents"
"DEBUG"	15144	"2022-06-24 04:05:12.326"	"Applying rules"
"DEBUG"	15144	"2022-06-24 04:05:12.326"	"Applying rule move to shared folder"
"DEBUG"	15144	"2022-06-24 04:05:12.326"	"Performing rule action"
"DEBUG"	15144	"2022-06-24 04:05:12.326"	"Performing rule action"
"DEBUG"	15144	"2022-06-24 04:05:12.326"	"Executing event Unknown"
"DEBUG"	15144	"2022-06-24 04:05:12.326"	"Saving message: {9B1024C4-3687-40F9-84A3-7F9FF6AF8A43}.eml"
"DEBUG"	15144	"2022-06-24 04:05:12.326"	"Event completed"
"DEBUG"	15144	"2022-06-24 04:05:12.326"	"Performing rule action"
"DEBUG"	15144	"2022-06-24 04:05:12.326"	"Executing event Unknown"
"DEBUG"	15144	"2022-06-24 04:05:12.342"	"Event completed"
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
mattg
Moderator
Moderator
Posts: 21972
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Sub OnHELO(oClient) progress?

Post by mattg » 2022-06-24 10:37

Also account rules are only for incoming mail to THAT account
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-24 10:46

To Sent folder in same account for incoming mail.
"Performing rule action" does not appear in my log ... :(
Attachments
ScreenShot835.png

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-24 11:19

When it worked (before upgrade) I had it in the log:

"DEBUG" 5964 "2022-06-21 04:07:52.257" "Performing local delivery"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Applying rules"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Applying rule Sent"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Moving message to Sent"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Message moved to folder 51"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Saving message: {6F004A6D-B16D-4A7E-AEBC-2AE8B4E9AB94}.eml"

palinka
Senior user
Senior user
Posts: 3588
Joined: 2017-09-12 17:57

Re: Sub OnHELO(oClient) progress?

Post by palinka » 2022-06-24 11:46

laurscr wrote:
2022-06-24 09:45
I read in the latest versions I can index the body of messages (for searching from the roundcube), but I do not notice that I have this setting active
It doesn't exist. Its a much requested feature.

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-24 12:40

palinka wrote:
2022-06-24 11:46
... index the body of messages ...
It doesn't exist. Its a much requested feature.
Bad news ..

In the meantime, I performed several tests. I downgraded to version 5.6.9-B2593, then uninstall all and install version 5.6.8-B2574, then again upgrade to the latest version 5.7.0-B2595-x64. I encountered some small problems, but I performed the operations without affecting anything. Surprise ... in none of the versions the account rules no longer work. Ufff! Global rules work. ... I'm missing something

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

Re: Sub OnHELO(oClient) progress?

Post by jimimaseye » 2022-06-24 16:01

laurscr wrote:
2022-06-24 11:19
When it worked (before upgrade) I had it in the log:

"DEBUG" 5964 "2022-06-21 04:07:52.257" "Performing local delivery"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Applying rules"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Applying rule Sent"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Moving message to Sent"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Message moved to folder 51"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Saving message: {6F004A6D-B16D-4A7E-AEBC-2AE8B4E9AB94}.eml"

That highlighted entry looks like the rule 'SENT' did operate as expected. The message has been moved.
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

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-24 20:14

jimimaseye wrote:
2022-06-24 16:01
laurscr wrote:
2022-06-24 11:19
When it worked (before upgrade) I had it in the log:
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Performing local delivery"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Applying rules"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Applying rule Sent"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Moving message to Sent"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Message moved to folder 51"
"DEBUG" 5964 "2022-06-21 04:07:52.257" "Saving message: {6F004A6D-B16D-4A7E-AEBC-2AE8B4E9AB94}.eml"
That highlighted entry looks like the rule 'SENT' did operate as expected. The message has been moved.
Before upgrade!

Now:
"DEBUG" 1424 "2022-06-24 01:24:45.337" "Applying rules"
"DEBUG" 1424 "2022-06-24 01:24:45.337" "Applying rule Sent"
"DEBUG" 1424 "2022-06-24 01:24:45.337" "Saving message: {2359F58C-6FD2-4E0F-A553-634276E325D6}.eml"

User avatar
katip
Senior user
Senior user
Posts: 1049
Joined: 2006-12-22 07:58
Location: Istanbul

Re: Sub OnHELO(oClient) progress?

Post by katip » 2022-06-24 21:44

laurscr wrote:
2022-06-24 10:46
To Sent folder in same account for incoming mail.
"Performing rule action" does not appear in my log ... :(
just curious..
how do your wildcard expressions end?
Katip
--
HMS 5.7, MariaDB 10.4.10, SA 3.4.4, ClamAV 0.103.5

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-24 23:01

Simple rules: like *@domain.com

Because I tried with several versions, even with reinstallation from scratch, it means that something is different in the database, because it is the only constant ... What can be different so that the global rules work and those for the user do not? Is there a "debug" mode to see more in logs?

User avatar
SorenR
Senior user
Senior user
Posts: 5442
Joined: 2006-08-21 15:38
Location: Denmark

Re: Sub OnHELO(oClient) progress?

Post by SorenR » 2022-06-24 23:30

laurscr wrote:
2022-06-24 23:01
Simple rules: like *@domain.com

Because I tried with several versions, even with reinstallation from scratch, it means that something is different in the database, because it is the only constant ... What can be different so that the global rules work and those for the user do not? Is there a "debug" mode to see more in logs?
Just had a quick look at the source code ... No _official_ code with "rule" in the filename (.h or .cpp file) has been modified since 2014.
SørenR.

There are two types of people in this world:
1) Those who can extrapolate from incomplete data

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-24 23:33

News! I replaced rule "wildcard" *@domain.com with "contain" @domain.com and it worked. In conclusion, the wildcard and regex rules do not work ... The global Spam rule worked because it is a "Custom header field" equal rule. What is different about wildcard and regex rules?

User avatar
SorenR
Senior user
Senior user
Posts: 5442
Joined: 2006-08-21 15:38
Location: Denmark

Re: Sub OnHELO(oClient) progress?

Post by SorenR » 2022-06-25 00:14

laurscr wrote:
2022-06-24 23:33
News! I replaced rule "wildcard" *@domain.com with "contain" @domain.com and it worked. In conclusion, the wildcard and regex rules do not work ... The global Spam rule worked because it is a "Custom header field" equal rule. What is different about wildcard and regex rules?
Trying to validate; From: "Wile E. Coyote" <coyote@acme.inc>
From Contains "@acme.inc" = From Wildcard "*@acme.inc*" <== I bet you forgot the wildcard in the end ;-)

RegEx is a completely different beast :mrgreen:
Custom header "Received" RegEx "(?i:^.*\s(!ESMTP|!ESMTPS|ESMTPA|ESMTPSA)\s.*$)" will identify the email as AUTHENTICATED!
SørenR.

There are two types of people in this world:
1) Those who can extrapolate from incomplete data

palinka
Senior user
Senior user
Posts: 3588
Joined: 2017-09-12 17:57

Re: Sub OnHELO(oClient) progress?

Post by palinka » 2022-06-25 00:14

laurscr wrote:
2022-06-24 23:33
News! I replaced rule "wildcard" *@domain.com with "contain" @domain.com and it worked. In conclusion, the wildcard and regex rules do not work ... The global Spam rule worked because it is a "Custom header field" equal rule. What is different about wildcard and regex rules?
* means something in regex... :roll: ...and its not "wildcard".

Forget the * - just use contains "@domain.com"

If you want to use regex, its ".*@domain.com" or ".+@domain.com".

Also, you can test the query in the same criteria dialogue box.

User avatar
SorenR
Senior user
Senior user
Posts: 5442
Joined: 2006-08-21 15:38
Location: Denmark

Re: Sub OnHELO(oClient) progress?

Post by SorenR » 2022-06-25 00:23

palinka wrote:
2022-06-25 00:14
laurscr wrote:
2022-06-24 23:33
News! I replaced rule "wildcard" *@domain.com with "contain" @domain.com and it worked. In conclusion, the wildcard and regex rules do not work ... The global Spam rule worked because it is a "Custom header field" equal rule. What is different about wildcard and regex rules?
* means something in regex... :roll: ...and its not "wildcard".

Forget the * - just use contains "@domain.com"

If you want to use regex, its ".*@domain.com" or ".+@domain.com".

Also, you can test the query in the same criteria dialogue box.
When you don't use ^ or $ then you don't need to use .* or .+ in RegEx. You only use .* and .+ to match a specific string, thus you would use "^.*@domain\.com.*$"

Remember the raw format of "From" is "name" <address@domain>
SørenR.

There are two types of people in this world:
1) Those who can extrapolate from incomplete data

palinka
Senior user
Senior user
Posts: 3588
Joined: 2017-09-12 17:57

Re: Sub OnHELO(oClient) progress?

Post by palinka » 2022-06-25 00:30

SorenR wrote:
2022-06-25 00:23
palinka wrote:
2022-06-25 00:14
laurscr wrote:
2022-06-24 23:33
News! I replaced rule "wildcard" *@domain.com with "contain" @domain.com and it worked. In conclusion, the wildcard and regex rules do not work ... The global Spam rule worked because it is a "Custom header field" equal rule. What is different about wildcard and regex rules?
* means something in regex... :roll: ...and its not "wildcard".

Forget the * - just use contains "@domain.com"

If you want to use regex, its ".*@domain.com" or ".+@domain.com".

Also, you can test the query in the same criteria dialogue box.
When you don't use ^ or $ then you don't need to use .* or .+ in RegEx. You only use .* and .+ to match a specific string, thus you would use "^.*@domain\.com.*$"

Remember the raw format of "From" is "name" <address@domain>
I'm rusty after just a few weeks. :mrgreen:

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-25 00:52

Thank you very much for your attention! Ok! After the upgrade, if the first rule is a wildcard rule, then it does not work and the following rules do not work either. That is certainly clear. After the upgrade, all the messages remained in the inbox and not even one was moved to another folder. I had a wildcard rule and several regex rules. All have worked smoothly before. None worked after the upgrade. Then, after I replaced "wildcard" with "contain" in the first rule, all the rules worked. I didn't touch the rest of the regex rules. Bug or not?

Summary:
1. After upgrading hmail, all user account rules are not working
2. After I replaced the "wildcard" rule with "contain" rule, all rules start working
3. I put it back for testing wildcard rules. Wildcard still not working, but rest of regex rules working.

In the end, the wildcard rules don't work for me with any version anymore ... but it's okay if I use equal, contain and regex. However, I would like to understand the cause and solve the problem.

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-25 01:03

SorenR wrote:
2022-06-25 00:14
Trying to validate; From: "Wile E. Coyote" <coyote@acme.inc>
From Contains "@acme.inc" = From Wildcard "*@acme.inc*" <== I bet you forgot the wildcard in the end ;-)
Logically, you're right. I admit that I never used the star at the end. But it was all right. I tried it now and it works with wildcard if I add a star at the end. Strange that it worked without it. Even so, the question remains, why didn't the rest of the rules work? Anyway, in the end, wildcard also works if I add a star at the end :) Thx!

User avatar
SorenR
Senior user
Senior user
Posts: 5442
Joined: 2006-08-21 15:38
Location: Denmark

Re: Sub OnHELO(oClient) progress?

Post by SorenR » 2022-06-25 01:06

laurscr wrote:
2022-06-25 01:03
SorenR wrote:
2022-06-25 00:14
Trying to validate; From: "Wile E. Coyote" <coyote@acme.inc>
From Contains "@acme.inc" = From Wildcard "*@acme.inc*" <== I bet you forgot the wildcard in the end ;-)
Logically, you're right. I admit that I never used the star at the end. But it was all right. I tried it now and it works with wildcard if I add a star at the end. Strange that it worked without it. Even so, the question remains, why didn't the rest of the rules work? Anyway, in the end, wildcard also works if I add a star at the end :) Thx!
The reason for the wildcard at the end is the ">" terminating the "From:" header. Sometimes the "From:" header is flawed and only contain the address "coyote@acme.inc" and in that case your original wildcard will work.
SørenR.

There are two types of people in this world:
1) Those who can extrapolate from incomplete data

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-25 01:09

SorenR wrote:
2022-06-25 00:23
When you don't use ^ or $ then you don't need to use .* or .+ in RegEx. You only use .* and .+ to match a specific string, thus you would use "^.*@domain\.com.*$"
Remember the raw format of "From" is "name" <address@domain>
From the whole discussion, I conclude that it is not a bug. The difference is that in the initial version the characters "<>" do not matter. I knew about them, but it worked very well without treating them. After the upgrade it matters! :) This is the simple explanation for the whole problem.

User avatar
RvdH
Senior user
Senior user
Posts: 2155
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: Sub OnHELO(oClient) progress?

Post by RvdH » 2022-06-25 01:50

laurscr wrote:
2022-06-25 01:09
After the upgrade it matters! :) This is the simple explanation for the whole problem.
Doubt it, as previous told by SorenR nothing is changed in that specific code since 2014.
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-25 01:54

palinka wrote:
2022-06-25 00:30
When you don't use ^ or $ then you don't need to use .* or .+ in RegEx. You only use .* and .+ to match a specific string, thus you would use "^.*@domain\.com.*$"
Remember the raw format of "From" is "name" <address@domain>
I prefer "(?i).*(@|\.)domain\.com.?" which match any:
"name" <zzz@domain.com>
"name" <zzz@doMain.com>
"name" <hhh@sub.domain.com>
"name" <hhh@sub.doMain.com>
"name" zzz@domain.com
"name" zzz@doMain.com
"name" hhh@sub.domain.com
"name" hhh@sub.doMain.com
Last edited by laurscr on 2022-06-25 02:10, edited 1 time in total.

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-25 02:09

RvdH wrote:
2022-06-25 01:50
laurscr wrote:
2022-06-25 01:09
After the upgrade it matters! :) This is the simple explanation for the whole problem.
Doubt it, as previous told by SorenR nothing is changed in that specific code since 2014.
It definitely worked before the upgrade without treating the "<>" characters. After the first installation with MSSQLCE, I switched to MySQL and the rules worked very well. For me, only after the upgrade did this problem appear. Interestingly, the problem didn't go away even after I went back to the original version that worked well before. There are probably some circumstances when hms ignores these characters. At least now everything is clear.
Last edited by laurscr on 2022-06-25 02:16, edited 1 time in total.

User avatar
RvdH
Senior user
Senior user
Posts: 2155
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: Sub OnHELO(oClient) progress?

Post by RvdH » 2022-06-25 02:14

laurscr wrote:
2022-06-25 02:09
RvdH wrote:
2022-06-25 01:50
laurscr wrote:
2022-06-25 01:09
After the upgrade it matters! :) This is the simple explanation for the whole problem.
Doubt it, as previous told by SorenR nothing is changed in that specific code since 2014.
It definitely worked before the upgrade without treating the "<>" characters. After the first installation with MSSQLCE, I switched to MySQL and the rules worked very well. For me, only after the upgrade did this problem appear. Interestingly, the problem didn't go away even after I went back to the original version that worked well before.
That is simply impossible if you went back to exactly the same version you claim it worked on before, don't you agree :?:
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

laurscr
New user
New user
Posts: 15
Joined: 2022-05-26 21:02

Re: Sub OnHELO(oClient) progress?

Post by laurscr » 2022-06-25 02:25

RvdH wrote:
2022-06-25 02:14
That is simply impossible if you went back to exactly the same version you claim it worked on before, don't you agree :?:
I understand. I almost can't believe it either :). But it certainly was. I deleted everything except the ini file and even used the same file I originally downloaded ...
At least now it works very well with the latest version and I learned a lot on the hard way :)
Attachments
ScreenShot843.png
ScreenShot843.png (9.02 KiB) Viewed 2414 times
ScreenShot842.png

User avatar
RvdH
Senior user
Senior user
Posts: 2155
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: Sub OnHELO(oClient) progress?

Post by RvdH » 2022-08-13 00:38

Latest is 5.6.9-B2602.48
5.6.9-B2602.49 is on it's way, once i verify the winsock error 2 error is history :!:
Simply install the latest production and/or beta artifact from the URL below, then copy and overwrite files in this archive in hmailserver '/bin' directory
https://build.hmailserver.com/viewLog.h ... =artifacts (login as guest)
  1. Added: OnHELO(oClient) event, issue #153
  2. Fix: Incorrect DEBUG logging for event 'OnDeliverMessage', issue #181
  3. Added: Include HTMLBody into IMAP TEXT search, pull #193
  4. Fix: implicit conversion: "int" to "unsigned char" pull #204
  5. Fix: Faulty SMTP 'Disconnect client after too many invalid commands' pull issue #160
  6. Fix: SMTP server error "550 Unsupported ESMTP extension" on MAIL FROM:... AUTH=<> [with fix] issue #164
  7. Fix: Removed warning if backup was more than 1,5GB and 15GB limit. There's no longer a recommended max-size - the time will vary with the installation size. issue #69
  8. Fix: Speed up 'update hm_messages set messageflags' issue #221
  9. A̶d̶d̶e̶d̶:̶ ̶t̶h̶r̶e̶a̶t̶ ̶a̶u̶t̶h̶e̶n̶t̶i̶c̶a̶t̶e̶d̶ ̶u̶s̶e̶r̶s̶ ̶a̶s̶ ̶l̶o̶c̶a̶l̶s̶e̶n̶d̶e̶r̶ ̶i̶f̶ ̶t̶h̶e̶ ̶s̶e̶n̶d̶e̶r̶ ̶i̶s̶ ̶a̶u̶t̶h̶e̶n̶t̶i̶c̶a̶t̶e̶d̶ ̶a̶n̶d̶ ̶A̶u̶t̶h̶U̶s̶e̶r̶I̶s̶L̶o̶c̶a̶l̶=̶1̶ ̶I̶N̶I̶ ̶s̶e̶t̶t̶i̶n̶g̶ ̶O̶f̶f̶i̶c̶e̶ ̶2̶0̶1̶6̶/̶2̶0̶1̶9̶ ̶B̶u̶g̶
  10. Added: Return-Path header as topmost header before sending the message to SA (+ delete Return-Path header after the SA check completes) issue #116
  11. Added: Event OnClientLogon(oClient), New ClientInfo property oClient.Authenticated (Boolean)
  12. Fix: Handling of long UIDL response lists was too slow. issue #93
  13. Fix: When calling SpamAssassin and there was a connection failure, sometimes temporary files were left behind issue #100
  14. Fix: SURBL detection properly fails to detect url's ending with a query string issue #108
  15. Fix: If a route is set up, but the recipient does not match an address in the route address list, the domain catch-all should be used if specified. issue #74
  16. Fix: ExternalFetcher DELE when no RETR, pull pull #254
  17. Fix: SMTP multiply max message size with 1024 issue #267
  18. Added: email address variable to SignatureAdder.cpp pull #265
  19. Fix: DKIM on acccount-rule 'reply' not applied #172 issue #172
  20. Fix: preserve RewriteEnvelopeFromWhenForwarding setting when forwarding from account rule
  21. Fix: The logical flow should be to disregard "Require SMTP authentication" if "Allow deliveries from" is unselected issue #287
  22. Added: ability to DKIM sign NDR messages (forwarded to external) pull #301
  23. Added: Use custom daemonaddressdomain from INI pull #301
  24. Fix: SURBL regex pull #320
  25. A̶d̶d̶e̶d̶:̶ ̶R̶M̶S̶P̶F̶ ̶l̶i̶b̶r̶a̶r̶y̶ ̶S̶p̶a̶m̶T̶e̶s̶t̶S̶P̶F̶ ̶R̶e̶s̶u̶l̶t̶ ̶t̶o̶ ̶D̶E̶B̶U̶G̶ ̶l̶o̶g̶g̶i̶n̶g̶,̶ ̶s̶e̶e̶ ̶t̶h̶i̶s̶ ̶f̶o̶r̶u̶m̶ ̶t̶o̶p̶i̶c̶
  26. Fix: Ignore SpamTestSPF and SpamTestHeloHost when send thru local IP Address, see this forum topic
  27. Added: SPF test to include "HELO/EHLO host" used by DNS macros pull 353
  28. Fix: 'Unencrypted Cleartext Login' vulnerability detection pull 242
  29. Fix: Anti-spam; Maximum message to scan (KB) is now limited to 256MB, see this forum topic
  30. Added: "UseDNSCache" INI setting. 1 = Use cache in DNS Client service (default). 0 = Bypass cache in DNS Client service. pull 396
  31. Fix: AWStats::LogDeliveryFailure was called twice for each message in OnDeliveryFailed pull 368
  32. Fix: oMessage object was empty (in some circumstances) when called from OnDeliveryFailed pull 369
  33. Added: Experimental events OnRecipientUnknown(oClient, oMessage) and OnTooManyInvalidCommands(oClient, oMessage) pull #390
  34. Added: TLS server cipher preference support and support for prioritizing ChaCha20Poly1305 pull 379
  35. Added: DKIM signature for domain aliases pull 383
  36. Added: "DNSServer" INI setting. Single (local) DNS server IPv4 addresses to use within hMailServer instead of default system DNS. pull 396
  37. Added: Auto-Submitted header for auto-generated messages pull 386
  38. Added: New ClientInfo properties oClient.EncryptedConnection (Boolean), oClient.CipherVersion, oClient.CipherName and oClient.CipherBits pull #391
  39. Added: DomainMembers DistributionList mode pull #392
  40. Added: X-hMailServer-Envelope-From header, grouping off all X-hMailServer-* headers, For consistency equalize Return-Path format used within hMailServer, eg: Return-Path: <return-route-addr> (always use angle brackets)
  41. Fix: integer overflow check for SPF macro segment count pull #399
  42. Added: New ClientInfo property oClient.SessionID (long) issue #401
  43. Added: New Status property oApp.Status.ThreadID (long) this forum topic
  44. Added: rDNS/PTR AntiSpam Check pull #413
  45. Added: Prefer IPv6 over IPv4 pull #415
  46. Fix: SpamTestHeloHost IPv6 Fix pull #416
  47. Fix: Changed ClamAV Scan from STREAM to INSTREAM. issue #420
  48. Added: MIME Recipient Headers as configurable comma delimited string pull #428
  49. Fix: AUTH PLAIN followed by base64 encoded username and password (on same line) in log exposed account password. pull #437
  50. Fix: rfc4954 After a successful AUTH command completes, a server MUST reject any further AUTH commands with a 503 reply. pull #438
Important! This fork requires you to add an additional entries to the hm_settings database table, eg:

MariaDB, MySQL

Code: Select all

insert into hm_settings (settingname, settingstring, settinginteger) 
  select 'TlsOptions', '', 0 from dual
where not exists 
  (select settingname from hm_settings where settingname='TlsOptions');

insert into hm_settings (settingname, settingstring, settinginteger) 
  select 'ascheckptr', '', 0 from dual
where not exists 
  (select settingname from hm_settings where settingname='ascheckptr');

insert into hm_settings (settingname, settingstring, settinginteger) 
  select 'ascheckptrscore', '', 1 from dual
where not exists 
  (select settingname from hm_settings where settingname='ascheckptrscore');

insert into hm_settings (settingname, settingstring, settinginteger) 
  select 'IPv6Preferred', '', 0 from dual
where not exists 
  (select settingname from hm_settings where settingname='IPv6Preferred');

alter table hm_fetchaccounts add column if not exists famimerecipientheaders varchar(255) not null default 'To,CC,X-RCPT-TO,X-Envelope-To';

update hm_dbversion set value = 5606;
MSSQL

Code: Select all

IF NOT EXISTS(SELECT settingname FROM hm_settings WHERE settingname = 'TlsOptions')
INSERT INTO hm_settings(settingname, settingstring, settinginteger) VALUES ('TlsOptions','','0')
GO
IF NOT EXISTS(SELECT settingname FROM hm_settings WHERE settingname = 'ascheckptr')
insert into hm_settings (settingname, settingstring, settinginteger) values ('ascheckptr', '', 0)
GO
IF NOT EXISTS(SELECT settingname FROM hm_settings WHERE settingname = 'ascheckptrscore')
insert into hm_settings (settingname, settingstring, settinginteger) values ('ascheckptrscore', '', 1)
GO
IF NOT EXISTS(SELECT settingname FROM hm_settings WHERE settingname = 'IPv6Preferred')
insert into hm_settings (settingname, settingstring, settinginteger) values ('IPv6Preferred', '', 0)
GO
IF NOT EXISTS (
  SELECT
    *
  FROM
    INFORMATION_SCHEMA.COLUMNS
  WHERE
    TABLE_NAME = 'hm_fetchaccounts' AND COLUMN_NAME = 'famimerecipientheaders')
BEGIN
  ALTER TABLE hm_fetchaccounts
    ADD famimerecipientheaders nvarchar(255) NOT NULL DEFAULT 'To,CC,X-RCPT-TO,X-Envelope-To'
END;
GO
UPDATE hm_dbversion SET value = 5606
GO
Download
https://d-fault.nl/files/hMailServer-Bu ... 2602.48.7z

* Included hMailAdmin.exe fixes sorting of DateTime and IPAddress (IP4) values, not reflected in server application version numbering
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

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

Re: Sub OnHELO(oClient) progress?

Post by jimimaseye » 2022-08-13 10:27

Thread opening post updated to point to .48

[Entered by mobile. Excuse my spelling.]
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

Post Reply