Sub OnHELO(oClient) progress?
Re: Sub OnHELO(oClient) progress?
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. (Too bad it can't be offered in the download section. )
Thank you for the work you do.
Thank you for the work you do.
Re: Sub OnHELO(oClient) progress?
Hello,
I tried to download the latest version, but it says error 404.
Could you check it please!
Thank you,
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:46Latest is 5.6.9-B2587.47 (forgot to post )
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)
- Added: OnHELO(oClient) event, issue #153
- Fix: Incorrect DEBUG logging for event 'OnDeliverMessage', issue #181
- Added: Include HTMLBody into IMAP TEXT search, pull #193
- Fix: implicit conversion: "int" to "unsigned char" pull #204
- Fix: Faulty SMTP 'Disconnect client after too many invalid commands' pull issue #160
- Fix: SMTP server error "550 Unsupported ESMTP extension" on MAIL FROM:... AUTH=<> [with fix] issue #164
- 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
- Fix: Speed up 'update hm_messages set messageflags' issue #221
- Added: threat authenticated users as localsender if the sender is authenticated and AuthUserIsLocal=1 INI setting Office 2016/2019 Bug
- Added: Return-Path header as topmost header before sending the message to SA (+ delete Return-Path header after the SA check completes) issue #116
- Added: Event OnClientLogon(oClient), New ClientInfo property oClient.Authenticated (Boolean)
- Fix: Handling of long UIDL response lists was too slow. issue #93
- Fix: When calling SpamAssassin and there was a connection failure, sometimes temporary files were left behind issue #100
- Fix: SURBL detection properly fails to detect url's ending with a query string issue #108
- 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
- Fix: ExternalFetcher DELE when no RETR, pull pull #254
- Fix: SMTP multiply max message size with 1024 issue #267
- Added: email address variable to SignatureAdder.cpp pull #265
- Fix: DKIM on acccount-rule 'reply' not applied #172 issue #172
- Fix: preserve RewriteEnvelopeFromWhenForwarding setting when forwarding from account rule
- Fix: The logical flow should be to disregard "Require SMTP authentication" if "Allow deliveries from" is unselected issue #287
- Added: ability to DKIM sign NDR messages (forwarded to external) pull #301
- Added: Use custom daemonaddressdomain from INI pull #301
- Fix: SURBL regex pull #320
- 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̶
- Fix: Ignore SpamTestSPF and SpamTestHeloHost when send thru local IP Address, see this forum topic
- Added: SPF test to include "HELO/EHLO host" used by DNS macros pull 353
- Fix: 'Unencrypted Cleartext Login' vulnerability detection pull 242
- Fix: Anti-spam; Maximum message to scan (KB) is now limited to 256MB, see this forum topic
- Added: "UseDNSCache" INI setting. 1 = Use cache in DNS Client service (default). 0 = Bypass cache in DNS Client service. pull 396
- Fix: AWStats::LogDeliveryFailure was called twice for each message in OnDeliveryFailed pull 368
- Fix: oMessage object was empty (in some circumstances) when called from OnDeliveryFailed pull 369
- Added: Experimental events OnRecipientUnknown(oClient, oMessage) and OnTooManyInvalidCommands(oClient, oMessage) pull #390
- Added: TLS server cipher preference support and support for prioritizing ChaCha20Poly1305 pull 379
- Added: DKIM signature for domain aliases pull 383
- Added: "DNSServer" INI setting. Single (local) DNS server IPv4 addresses to use within hMailServer instead of default system DNS. pull 396
- Added: Auto-Submitted header for auto-generated messages pull 386
- Added: New ClientInfo properties oClient.EncryptedConnection (Boolean), oClient.CipherVersion, oClient.CipherName and oClient.CipherBits pull #391
- Added: DomainMembers DistributionList mode pull #392
- 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)
- Fix: integer overflow check for SPF macro segment count pull #399
- Added: New ClientInfo property oClient.SessionID (long) issue #401
- Added: New Status property oApp.Status.ThreadID (long) this forum topic
- Added: rDNS/PTR AntiSpam Check pull #413
- Added: Prefer IPv6 over IPv4 pull #415
- Fix: SpamTestHeloHost IPv6 Fix pull #416
- Fix: Changed ClamAV Scan from STREAM to INSTREAM. issue #420
- 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, MySQLMSSQLCode: 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;
DownloadCode: 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
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
Re: Sub OnHELO(oClient) progress?
404.
Unable to download; the whole file section seems to be gone.
Unable to download; the whole file section seems to be gone.
HMS 5.6.9-B2587.46 on Windows Server 2019
Re: Sub OnHELO(oClient) progress?
All return 404 error now......
Re: Sub OnHELO(oClient) progress?
He's not been on here since May 12 ... Holiday, Corona or simply time off ?
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.
Re: Sub OnHELO(oClient) progress?
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.
The code:
https://github.com/SorenRR/hmailserver/ ... 9-2587.M56
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.
The code:
https://github.com/SorenRR/hmailserver/ ... 9-2587.M56
- Supports Sub OnHELO(oClient) event, issue #153
- Fixed Incorrect DEBUG logging for event 'OnDeliverMessage', issue #181
- Include HTMLBody into IMAP TEXT search, pull #193
- Fixed implicit conversion: "int" to "unsigned char" pull #204
- Faulty: SMTP 'Disconnect client after too many invalid commands' pull issue #160
- SMTP server error "550 Unsupported ESMTP extension" on MAIL FROM:... AUTH=<> [with fix] issue #164
- 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
- Speed up 'update hm_messages set messageflags' issue #221
- Treat authenticated users as localsender if the sender is authenticated and AuthUserIsLocal=1 INI setting Office 2016/2019 Bug
- Add Return-Path header as topmost header before sending the message to SA (+ delete Return-Path header after the SA check completes) issue #116
- Experimental eventhandler OnClientLogon(oClient), New ClientInfo property oClient.Authenticated (Boolean)
- Handling of long UIDL response lists was too slow. issue #93
- When calling SpamAssassin and there was a connection failure, sometimes temporary files were left behind issue #100
- SURBL detection properly fails to detect url's ending with a query string issue #108
- 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
- Fix ExternalFetcher DELE when no RETR, pull pull #254
- SMTP multiply max message size with 1024 issue #267
- Add email address variable to SignatureAdder.cpp pull #265
- DKIM on acccount-rule 'reply' not applied #172 issue #172
- preserve RewriteEnvelopeFromWhenForwarding setting when forwarding from account rule
- The logical flow should be to disregard "Require SMTP authentication" if "Allow deliveries from" is unselected issue #287
- Add ability to DKIM sign NDR messages (forwarded to external) pull #301
- Use custom daemonaddressdomain from INI pull #301
- Fix SURBL regex pull #320
- Add RMSPF library SpamTestSPF Result to DEBUG logging, see this forum topic
- Ignore SpamTestSPF and SpamTestHeloHost when send thru local IP Address, see this forum topic
- SPF test to include "HELO/EHLO host" used by DNS macros pull 353
- Fix 'Unencrypted Cleartext Login' vulnerability detection pull 242
- Add SMTP MAIL FROM header: X-hMailServer-Envelope-From. Add following to SpamAssassin local.cf: envelope_sender_header X-hMailServer-Envelope-From
- New ClientInfo properties oClient.ESMTP(boolean), oClient.TLS(boolean) and oClient.Passwd(string)
- Added "UseDNSCache" option to [Settings]. 1 = Use cache in DNS Client service. 0 = Bypass cache in DNS Client service.
- "UseDNSCache" control temporary fix; Messages bouncing immediately due to no mail servers due to DNS issue "ExternalDelivery.cpp"
- Anti-spam; Maximum message to scan (KB) is now limited to 5 MB if entered value = 0, otherwise whatever is entered into GUI.
- AWStats::LogDeliveryFailure was called twice for each message in OnDeliveryFailed
- oMessage object was empty when called from OnDeliveryFailed in SMTPDeliverer.cpp
- Fix Auto Submitted header for auto-generated messages
- Sub OnClientLogon(oClient) only show password for failed login
- Added: "DNSServer" INI setting. Single (local) DNS server IPv4 addresses to use within hMailServer instead of default system DNS.
- Added: #251 External Fetch - First try (X-)Envelope-To and X-RCPT-TO headers and ExternalFetcher DELE when no RETR
- Added: #337 Set the JScript version to use
- Added: #383 DKIM signature for domain aliases
- Added: New ClientInfo properties oClient.EncryptedConnection (Boolean), oClient.CipherVersion, oClient.CipherName and oClient.CipherBits
- Added: DomainMembers DistributionList mode pull #392
- Added: oClient.SessionID "The SessionID for TCP/IP connection."
- 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)
- Added: TLS server cipher preference support and support for prioritizing ChaCha20Poly1305 pull 379
- Added: rDNS/PTR AntiSpam Check pull #413
- Added: Prefer IPv6 over IPv4 pull #415
- Fix: SpamTestHeloHost IPv6 Fix pull #416
- Mod: Changed ClamAV Scan from STREAM to INSTREAM.
- Added: MIME Recipient Headers as configurable comma delimited string pull #428
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.
- jimimaseye
- Moderator
- Posts: 10053
- Joined: 2011-09-08 17:48
Re: Sub OnHELO(oClient) progress?
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
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829
Re: Sub OnHELO(oClient) progress?
Just test hMailServer-5.6.9-B2587.M56,and it works fine with ClamAV 0.105.0
Re: Sub OnHELO(oClient) progress?
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
- jimimaseye
- Moderator
- Posts: 10053
- Joined: 2011-09-08 17:48
Re: Sub OnHELO(oClient) progress?
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
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829
Re: Sub OnHELO(oClient) progress?
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 ¯\_(ツ)_/¯
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
- jimimaseye
- Moderator
- Posts: 10053
- Joined: 2011-09-08 17:48
Re: Sub OnHELO(oClient) progress?
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
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829
Re: Sub OnHELO(oClient) progress?
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.
And this one support 0.104.X and 0.105.X.
Re: Sub OnHELO(oClient) progress?
Has this made its way into 5.7 yet?RvdH wrote: ↑2022-05-10 16:46Latest is 5.6.9-B2587.47 (forgot to post )
- Fix: Changed ClamAV Scan from STREAM to INSTREAM. issue #420
Re: Sub OnHELO(oClient) progress?
Not that I know of.palinka wrote: ↑2022-06-01 16:18Has this made its way into 5.7 yet?RvdH wrote: ↑2022-05-10 16:46Latest is 5.6.9-B2587.47 (forgot to post )
- Fix: Changed ClamAV Scan from STREAM to INSTREAM. issue #420
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.
Re: Sub OnHELO(oClient) progress?
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 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..
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 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..
Re: Sub OnHELO(oClient) progress?
Enanle below setting then restart clamavhoover wrote: ↑2022-06-15 02:58Hi
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..
TCPSocket 3310
TCPAddr 127.0.0.1
Re: Sub OnHELO(oClient) progress?
yep that did the trick
I also got caught out by permissions on the temp dir All working fine now
Many thanks
I also got caught out by permissions on the temp dir All working fine now
Many thanks
Re: Sub OnHELO(oClient) progress?
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
Thanks
Re: Sub OnHELO(oClient) progress?
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
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup
Re: Sub OnHELO(oClient) progress?
No problem.vidiot wrote: ↑2022-06-16 19:59Nothing 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
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.
Re: Sub OnHELO(oClient) progress?
Latest is 5.6.9-B2593.46
Nothing changed compared with the previous version, only .9 is reverted/removed
MariaDB, MySQL
MSSQL
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
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)
- Added: OnHELO(oClient) event, issue #153
- Fix: Incorrect DEBUG logging for event 'OnDeliverMessage', issue #181
- Added: Include HTMLBody into IMAP TEXT search, pull #193
- Fix: implicit conversion: "int" to "unsigned char" pull #204
- Fix: Faulty SMTP 'Disconnect client after too many invalid commands' pull issue #160
- Fix: SMTP server error "550 Unsupported ESMTP extension" on MAIL FROM:... AUTH=<> [with fix] issue #164
- 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
- Fix: Speed up 'update hm_messages set messageflags' issue #221
- 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̶
- Added: Return-Path header as topmost header before sending the message to SA (+ delete Return-Path header after the SA check completes) issue #116
- Added: Event OnClientLogon(oClient), New ClientInfo property oClient.Authenticated (Boolean)
- Fix: Handling of long UIDL response lists was too slow. issue #93
- Fix: When calling SpamAssassin and there was a connection failure, sometimes temporary files were left behind issue #100
- Fix: SURBL detection properly fails to detect url's ending with a query string issue #108
- 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
- Fix: ExternalFetcher DELE when no RETR, pull pull #254
- Fix: SMTP multiply max message size with 1024 issue #267
- Added: email address variable to SignatureAdder.cpp pull #265
- Fix: DKIM on acccount-rule 'reply' not applied #172 issue #172
- Fix: preserve RewriteEnvelopeFromWhenForwarding setting when forwarding from account rule
- Fix: The logical flow should be to disregard "Require SMTP authentication" if "Allow deliveries from" is unselected issue #287
- Added: ability to DKIM sign NDR messages (forwarded to external) pull #301
- Added: Use custom daemonaddressdomain from INI pull #301
- Fix: SURBL regex pull #320
- 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̶
- Fix: Ignore SpamTestSPF and SpamTestHeloHost when send thru local IP Address, see this forum topic
- Added: SPF test to include "HELO/EHLO host" used by DNS macros pull 353
- Fix: 'Unencrypted Cleartext Login' vulnerability detection pull 242
- Fix: Anti-spam; Maximum message to scan (KB) is now limited to 256MB, see this forum topic
- Added: "UseDNSCache" INI setting. 1 = Use cache in DNS Client service (default). 0 = Bypass cache in DNS Client service. pull 396
- Fix: AWStats::LogDeliveryFailure was called twice for each message in OnDeliveryFailed pull 368
- Fix: oMessage object was empty (in some circumstances) when called from OnDeliveryFailed pull 369
- Added: Experimental events OnRecipientUnknown(oClient, oMessage) and OnTooManyInvalidCommands(oClient, oMessage) pull #390
- Added: TLS server cipher preference support and support for prioritizing ChaCha20Poly1305 pull 379
- Added: DKIM signature for domain aliases pull 383
- Added: "DNSServer" INI setting. Single (local) DNS server IPv4 addresses to use within hMailServer instead of default system DNS. pull 396
- Added: Auto-Submitted header for auto-generated messages pull 386
- Added: New ClientInfo properties oClient.EncryptedConnection (Boolean), oClient.CipherVersion, oClient.CipherName and oClient.CipherBits pull #391
- Added: DomainMembers DistributionList mode pull #392
- 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)
- Fix: integer overflow check for SPF macro segment count pull #399
- Added: New ClientInfo property oClient.SessionID (long) issue #401
- Added: New Status property oApp.Status.ThreadID (long) this forum topic
- Added: rDNS/PTR AntiSpam Check pull #413
- Added: Prefer IPv6 over IPv4 pull #415
- Fix: SpamTestHeloHost IPv6 Fix pull #416
- Fix: Changed ClamAV Scan from STREAM to INSTREAM. issue #420
- Added: MIME Recipient Headers as configurable comma delimited string pull #428
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;
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
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
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup
Re: Sub OnHELO(oClient) progress?
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
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup
Re: Sub OnHELO(oClient) progress?
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
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup
Re: Sub OnHELO(oClient) progress?
Re: Sub OnHELO(oClient) progress?
:ike I said in the post above?
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
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup
Re: Sub OnHELO(oClient) progress?
I ran "hMailServer-5.7.0-B2594-x64.exe (login as guest )" though as spellchecker and it reported nothing was wrong
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
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup
Re: Sub OnHELO(oClient) progress?
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
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 (8.01 KiB) Viewed 31402 times
Re: Sub OnHELO(oClient) progress?
Oh, now I see .. 5.6.9 (not 5.7) is the correct version to overwrite files ... apfflaurscr wrote: ↑2022-06-24 02:002. 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.
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.
Re: Sub OnHELO(oClient) progress?
#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
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
https://www.hmailserver.com/documentation
Re: Sub OnHELO(oClient) progress?
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.
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 (8.57 KiB) Viewed 31389 times
Re: Sub OnHELO(oClient) progress?
Yes, same version
I move to a Shared folder
Which folder are you moving to?
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
https://www.hmailserver.com/documentation
Re: Sub OnHELO(oClient) progress?
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
https://www.hmailserver.com/documentation
Re: Sub OnHELO(oClient) progress?
To Sent folder in same account for incoming mail.
"Performing rule action" does not appear in my log ...
"Performing rule action" does not appear in my log ...
Re: Sub OnHELO(oClient) progress?
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"
"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"
Re: Sub OnHELO(oClient) progress?
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
- jimimaseye
- Moderator
- Posts: 10053
- Joined: 2011-09-08 17:48
Re: Sub OnHELO(oClient) progress?
laurscr wrote: ↑2022-06-24 11:19When 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
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829
Re: Sub OnHELO(oClient) progress?
Before upgrade!jimimaseye wrote: ↑2022-06-24 16:01That highlighted entry looks like the rule 'SENT' did operate as expected. The message has been moved.laurscr wrote: ↑2022-06-24 11:19When 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"
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"
Re: Sub OnHELO(oClient) progress?
just curious..
how do your wildcard expressions end?
Katip
--
HMS 5.7, MariaDB 10.4.10, SA 4.0.0, ClamAV 0.103.8
--
HMS 5.7, MariaDB 10.4.10, SA 4.0.0, ClamAV 0.103.8
Re: Sub OnHELO(oClient) progress?
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?
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?
Re: Sub OnHELO(oClient) progress?
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.laurscr wrote: ↑2022-06-24 23:01Simple 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?
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.
Re: Sub OnHELO(oClient) progress?
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?
Re: Sub OnHELO(oClient) progress?
Trying to validate; From: "Wile E. Coyote" <coyote@acme.inc>laurscr wrote: ↑2022-06-24 23:33News! 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?
From Contains "@acme.inc" = From Wildcard "*@acme.inc*" <== I bet you forgot the wildcard in the end
RegEx is a completely different beast
Custom header "Received" RegEx "(?i:^.*\s(!ESMTP|!ESMTPS|ESMTPA|ESMTPSA)\s.*$)" will identify the email as AUTHENTICATED!
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.
Re: Sub OnHELO(oClient) progress?
* means something in regex... ...and its not "wildcard".laurscr wrote: ↑2022-06-24 23:33News! 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?
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.
Re: Sub OnHELO(oClient) progress?
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.*$"palinka wrote: ↑2022-06-25 00:14* means something in regex... ...and its not "wildcard".laurscr wrote: ↑2022-06-24 23:33News! 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?
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.
Remember the raw format of "From" is "name" <address@domain>
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.
Re: Sub OnHELO(oClient) progress?
I'm rusty after just a few weeks.SorenR wrote: ↑2022-06-25 00:23When 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.*$"palinka wrote: ↑2022-06-25 00:14* means something in regex... ...and its not "wildcard".laurscr wrote: ↑2022-06-24 23:33News! 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?
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.
Remember the raw format of "From" is "name" <address@domain>
Re: Sub OnHELO(oClient) progress?
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.
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.
Re: Sub OnHELO(oClient) progress?
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!SorenR wrote: ↑2022-06-25 00:14Trying 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
Re: Sub OnHELO(oClient) progress?
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.laurscr wrote: ↑2022-06-25 01:03Logically, 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!SorenR wrote: ↑2022-06-25 00:14Trying 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
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.
Re: Sub OnHELO(oClient) progress?
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.
Re: Sub OnHELO(oClient) progress?
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
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup
Re: Sub OnHELO(oClient) progress?
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.
Re: Sub OnHELO(oClient) progress?
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.
Re: Sub OnHELO(oClient) progress?
That is simply impossible if you went back to exactly the same version you claim it worked on before, don't you agreelaurscr wrote: ↑2022-06-25 02:09It 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.
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
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup
Re: Sub OnHELO(oClient) progress?
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
Re: Sub OnHELO(oClient) progress?
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
MariaDB, MySQL
MSSQL
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
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)
- Added: OnHELO(oClient) event, issue #153
- Fix: Incorrect DEBUG logging for event 'OnDeliverMessage', issue #181
- Added: Include HTMLBody into IMAP TEXT search, pull #193
- Fix: implicit conversion: "int" to "unsigned char" pull #204
- Fix: Faulty SMTP 'Disconnect client after too many invalid commands' pull issue #160
- Fix: SMTP server error "550 Unsupported ESMTP extension" on MAIL FROM:... AUTH=<> [with fix] issue #164
- 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
- Fix: Speed up 'update hm_messages set messageflags' issue #221
- 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̶
- Added: Return-Path header as topmost header before sending the message to SA (+ delete Return-Path header after the SA check completes) issue #116
- Added: Event OnClientLogon(oClient), New ClientInfo property oClient.Authenticated (Boolean)
- Fix: Handling of long UIDL response lists was too slow. issue #93
- Fix: When calling SpamAssassin and there was a connection failure, sometimes temporary files were left behind issue #100
- Fix: SURBL detection properly fails to detect url's ending with a query string issue #108
- 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
- Fix: ExternalFetcher DELE when no RETR, pull pull #254
- Fix: SMTP multiply max message size with 1024 issue #267
- Added: email address variable to SignatureAdder.cpp pull #265
- Fix: DKIM on acccount-rule 'reply' not applied #172 issue #172
- Fix: preserve RewriteEnvelopeFromWhenForwarding setting when forwarding from account rule
- Fix: The logical flow should be to disregard "Require SMTP authentication" if "Allow deliveries from" is unselected issue #287
- Added: ability to DKIM sign NDR messages (forwarded to external) pull #301
- Added: Use custom daemonaddressdomain from INI pull #301
- Fix: SURBL regex pull #320
- 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̶
- Fix: Ignore SpamTestSPF and SpamTestHeloHost when send thru local IP Address, see this forum topic
- Added: SPF test to include "HELO/EHLO host" used by DNS macros pull 353
- Fix: 'Unencrypted Cleartext Login' vulnerability detection pull 242
- Fix: Anti-spam; Maximum message to scan (KB) is now limited to 256MB, see this forum topic
- Added: "UseDNSCache" INI setting. 1 = Use cache in DNS Client service (default). 0 = Bypass cache in DNS Client service. pull 396
- Fix: AWStats::LogDeliveryFailure was called twice for each message in OnDeliveryFailed pull 368
- Fix: oMessage object was empty (in some circumstances) when called from OnDeliveryFailed pull 369
- Added: Experimental events OnRecipientUnknown(oClient, oMessage) and OnTooManyInvalidCommands(oClient, oMessage) pull #390
- Added: TLS server cipher preference support and support for prioritizing ChaCha20Poly1305 pull 379
- Added: DKIM signature for domain aliases pull 383
- Added: "DNSServer" INI setting. Single (local) DNS server IPv4 addresses to use within hMailServer instead of default system DNS. pull 396
- Added: Auto-Submitted header for auto-generated messages pull 386
- Added: New ClientInfo properties oClient.EncryptedConnection (Boolean), oClient.CipherVersion, oClient.CipherName and oClient.CipherBits pull #391
- Added: DomainMembers DistributionList mode pull #392
- 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)
- Fix: integer overflow check for SPF macro segment count pull #399
- Added: New ClientInfo property oClient.SessionID (long) issue #401
- Added: New Status property oApp.Status.ThreadID (long) this forum topic
- Added: rDNS/PTR AntiSpam Check pull #413
- Added: Prefer IPv6 over IPv4 pull #415
- Fix: SpamTestHeloHost IPv6 Fix pull #416
- Fix: Changed ClamAV Scan from STREAM to INSTREAM. issue #420
- Added: MIME Recipient Headers as configurable comma delimited string pull #428
- Fix: AUTH PLAIN followed by base64 encoded username and password (on same line) in log exposed account password. pull #437
- Fix: rfc4954 After a successful AUTH command completes, a server MUST reject any further AUTH commands with a 503 reply. pull #438
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;
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
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
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup
- jimimaseye
- Moderator
- Posts: 10053
- Joined: 2011-09-08 17:48
Re: Sub OnHELO(oClient) progress?
Thread opening post updated to point to .48
[Entered by mobile. Excuse my spelling.]
[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
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829