Search found 658 matches

by RvdH
2019-05-24 16:04
Forum: General discussions
Topic: Code: HM4403
Replies: 25
Views: 289

Re: Code: HM4403

SorenR wrote:
2019-05-24 15:45
I still fail to see why a 20 second wait would cause this. The script trigger is done and control is returned to core.
If a supposed 20 second delay is delayed for 40 seconds I can not see why the issue is not within that call :mrgreen:
by RvdH
2019-05-24 15:31
Forum: General discussions
Topic: Code: HM4403
Replies: 25
Views: 289

Re: Code: HM4403

Fingers crossed then ;)

I have been running test since this morning ...i haven't been able to reproduce the HM4403 error (yet)
by RvdH
2019-05-24 15:25
Forum: General discussions
Topic: Code: HM4403
Replies: 25
Views: 289

Re: Code: HM4403

So we can conclude the issue you had was indeed introduced by using the Wait(20) and caused by some incompatibilities with sleep/timeout on Server Core?
Or with this change, the issue still is not resolved?
by RvdH
2019-05-24 13:22
Forum: General discussions
Topic: Code: HM4403
Replies: 25
Views: 289

Re: Code: HM4403

Function Wait(tSec) With CreateObject("WScript.Shell") .Run "timeout /T " & Int(tSec), 0, True '.Run "sleep -m " & Int(tSec * 1000), 0, True '.Run "powershell Start-Sleep -Milliseconds " & Int(tSec * 1000), 0, True End With End Function Some incompatible with timeout.exe on Server Core maybe? Could...
by RvdH
2019-05-24 10:12
Forum: General discussions
Topic: Code: HM4403
Replies: 25
Views: 289

Re: Code: HM4403

"DEBUG" 2740 "2019-04-25 14:11:20.142" "Executing event OnSMTPData"

"DEBUG" 2740 "2019-04-25 14:12:00.166" "Event completed"
that looks more like a 40 sec delay...something else get triggered there?
by RvdH
2019-05-23 23:18
Forum: General discussions
Topic: Code: HM4403
Replies: 25
Views: 289

Re: Code: HM4403

@tunis Does SURBL detection work correctly? In both cases? (eg: with and without the wait(20)) I am thinking the problem might be related to: SURBL detection properly fails to detect url's ending with a query string issue #108 Hmm... Could this be the temporary file sent to SA that is not supposed t...
by RvdH
2019-05-21 12:44
Forum: Scripting
Topic: Mail Header Received from Unknown via GMAIL
Replies: 9
Views: 105

Re: Mail Header Received from Unknown via GMAIL

@w3ph
Are you sure it's because of the missing PTR record or could it possibly be the actual IP address it origination from is on one or more blacklists?

Maybe you could anonymise the offending ip in the 'Receiver from' header
https://www.hmailserver.com/forum/viewtopic.php?t=18467
by RvdH
2019-05-17 13:03
Forum: General discussions
Topic: Time to say good bye ...
Replies: 20
Views: 505

Re: Time to say good bye ...

@jim.bus
Not entirely sure, but i think you can use 32-bit ODBC 5.3.13 dll without problems to connect to a 64-bit Mysql 8.x instance (I am still on Mysql 5.7.x though)
by RvdH
2019-05-17 10:30
Forum: General discussions
Topic: Time to say good bye ...
Replies: 20
Views: 505

Re: Time to say good bye ...

I agree, hMailserver still serves my needs brilliantly, people demanding instant TLS 1.3 support....wow!!! Half the internet doesn't support TLS 1.3 at this stage...even Windows 10 to my knowledge still has no build-in support for it (yet), and TLS 1.2 and lower are still suitable for most user cases.
by RvdH
2019-05-17 08:53
Forum: Development & alpha discussions
Topic: hMailServer 5.7.0 64-Bit (LTS) - April Release with OpenSSL 1.0.2r update
Replies: 38
Views: 1271

Re: hMailServer 5.7.0 64-Bit (LTS) - April Release with OpenSSL 1.0.2r update

@mattg
That pull request seems incomplete.... where have all the "Return.Value" entries gone?
As per https://www.hmailserver.com/forum/viewt ... 68#p188768 it is known this function can use "Return.Value"
by RvdH
2019-05-16 23:12
Forum: General discussions
Topic: Time to say good bye ...
Replies: 20
Views: 505

Re: Time to say good bye ...

Nice story...a lot of questions though... I understand exactly what you trying ask, answering is another thing without knowing Martin's plans and ambitions in this project. A few answers are obvious though...all forks, like dravions and mine are never to be released through the official hmailserver....
by RvdH
2019-05-10 17:03
Forum: General discussions
Topic: Attack by SYN_RCVD
Replies: 19
Views: 373

Re: Attack by SYN_RCVD

I see the same IP's (the above mentioned ones) only not SYN_RCVD connected to hmailserver.exe, but to "FileZilla Server.exe"
Weird stuff
by RvdH
2019-05-10 11:22
Forum: General discussions
Topic: Error 7760 / HM4406 - Could not read the message header, since the file was not available
Replies: 21
Views: 327

Re: Error 7760 / HM4406 - Could not read the message header, since the file was not available

That leaves orphaned data, that really is not the best practice...but as Matt already pointed out, it is not recommended to alter database directly in the first place
by RvdH
2019-05-10 09:01
Forum: General discussions
Topic: Error 7760 / HM4406 - Could not read the message header, since the file was not available
Replies: 21
Views: 327

Re: Error 7760 / HM4406 - Could not read the message header, since the file was not available

You also can stop hMailServer, login into your DB and delete the orphaned DB Records yourself For example like this: DELETE FROM 'hmailserver'.'hm_messages' WHERE messagefilename like '{8F79335E-A0A3-4B0A-9099-6F802E6737D0}.eml' After this, restart hMailServer, the Error should be gone. And what ab...
by RvdH
2019-05-09 14:25
Forum: General discussions
Topic: DKIM on reply from rule
Replies: 5
Views: 179

Re: DKIM on reply from rule

Fix... added check if it is a global rule or an account rule global rule = not DKIM signed, Empty return-path header (this is the current behaviour!) account rule = DKIM signed (if enabled), Non empty return-path header Replace the whole: void RuleApplier::ApplyAction_Reply(std::shared_ptr<RuleActio...
by RvdH
2019-05-09 14:11
Forum: General discussions
Topic: SMTP 25 POORT NOT WORKING
Replies: 3
Views: 70

Re: SMTP 25 POORT NOT WORKING

Perhaps you used anything other then STARTTLS (optional) or None in the security settings
by RvdH
2019-05-09 10:48
Forum: General discussions
Topic: DKIM on reply from rule
Replies: 5
Views: 179

Re: DKIM on reply from rule

I think this Reply rule is kinda weird anyway....why would one allow to Reply from another account other then the account this rule is applied to in the first place??? @weinberk, how are your coding skills? Changes below DKIM Sign messages using account-level reply rules RuleApplier.h replace: void ...
by RvdH
2019-05-08 13:34
Forum: General discussions
Topic: DKIM on reply from rule
Replies: 5
Views: 179

Re: DKIM on reply from rule

The problem with such rule is that the filled in email address in Reply rule doesn't have to be a local address/domain. You can type anything you like there.
That, as well as the missing SMTPFromAddress (empty due to Auto-Submitted header) is responsible for not signing the message (i think ;) )
by RvdH
2019-05-03 11:03
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 180
Views: 32882

Re: Sub OnHELO(oClient) progress?

Weird. Nothing worked. Finally I uninstalled and reinstalled official 5.6.7-b2425 hmailserver. Now its working again (OnClientConnect). So conclusion? You f***ked up your scripting, and still you need to rollback to the official build? That doesn't make sense :!: :?: Nothing is changed in OnClientC...
by RvdH
2019-04-25 09:13
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 180
Views: 32882

Re: Sub OnHELO(oClient) progress?

Should I assume that this is your most recent build (obvious question, i know..) RvdH? @insomniac2k2 5.6.8-B2437.17 i think is latest: https://d-fault.nl/files , i have a private build with updated OpenSSL libs but that isn't shared publicly (yet) @mattg, just curious, what server you are looking i...
by RvdH
2019-04-24 11:01
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 180
Views: 32882

Re: Sub OnHELO(oClient) progress?

Downloads should be fixed, sorry i didn't even noticed something was wrong until you guys here made me aware of this
by RvdH
2019-03-23 18:37
Forum: General discussions
Topic: File extension whitelisting an adress or domain
Replies: 8
Views: 805

Re: File extension whitelisting an adress or domain

Example: ifplugin mail::SpamAssassin::Plugin::MIMEHeader mimeheader ZIP_ATTACHED Content-Type =~ /\bzip\b/i describe ZIP_ATTACHED email contains a ZIP file attachment score ZIP_ATTACHED 0.5 # mimeheader PDF_ATTACHED Content-Type =~ /\bpdf\b/i # describe PDF_ATTACHED email contains a PDF file attachm...
by RvdH
2019-03-23 02:47
Forum: General discussions
Topic: About SMTP port?
Replies: 9
Views: 923

Re: About SMTP port?

If this option under the IP Internet Range would accomplish the same thing then this might be more preferable to change than changing the hMailAdmin.ini configuration file because it would make installing upgrades to hMailServer less complicated because you would not have to make an additional chan...
by RvdH
2019-03-08 10:13
Forum: General discussions
Topic: DKIM Error Shown In Outlook Message Header
Replies: 19
Views: 1152

Re: DKIM Error Shown In Outlook Message Header

palinka wrote:
2019-03-07 12:58
How long ago did you set up the dns record? Could be a propagation issue.

Also, this is handy for testing: https://dkimvalidator.com

There are other sites that help you test as well.
Alternative: https://www.port25.com/authentication-checker/
by RvdH
2019-03-01 19:26
Forum: SpamAssassin implementation discussions
Topic: Usefull SA Plugins
Replies: 2
Views: 402

Re: Usefull SA Plugins

SorenR wrote:
2019-03-01 17:27
NOTE: HashBL is already part of SA 3.4.2 standard plugins. All you need to do is create the config HashBL.cf
Nah, it isn't...SA 3.4.2 uses 0.001 and the github link for HASHBL above is 0.003 that includes the splitting into BLACK/GREY rules
by RvdH
2019-03-01 14:29
Forum: SpamAssassin implementation discussions
Topic: Usefull SA Plugins
Replies: 2
Views: 402

Usefull SA Plugins

Useful SpamAssassin Plugins The purpose of this topic is to share information on (custom) plugins that can be used with SpamAssassin used by forum members here DecodeShortURLs This plugin looks for URLs shortened by a list of URL shortening services and upon finding a matching URL will connect usin...
by RvdH
2019-02-21 21:10
Forum: SpamAssassin implementation discussions
Topic: Spamassassin 3.4.2 released
Replies: 63
Views: 6016

Re: Spamassassin 3.4.2 released

"Severity: 3 (Medium), Code: HM5157, Source: SpamAssassinClient::OnReadError, Description: There was a communication error with SpamAssassin. hMailServer tried to retrieve data from SpamAssassin but the connection to SpamAssassin was lost. The WinSock error code is 2. Enable debug logging to retrie...
by RvdH
2019-02-20 10:33
Forum: SpamAssassin implementation discussions
Topic: Spamassassin 3.4.2 released
Replies: 63
Views: 6016

Re: Spamassassin 3.4.2 released

jimimaseye wrote:
2019-02-20 10:11
Woo hoo.

So, who is the first to go for it and report back?
So far so good.... make a backup off your \etc\spamassassin folder, as it seems the installer overwrites all .pre files inside (luckily i did that)
by RvdH
2019-02-15 20:07
Forum: Off-topic discussions
Topic: ClamAV hangs server
Replies: 15
Views: 1264

Re: ClamAV hangs server

I too use ClamAV via SpamAssassin and must admit that I am thinking of killing ClamAV via hMailServer as 99% of my ClamAV hits come via SpamAssassin. Does SA delete the attachment? I thought it just assigned a score. I rather prefer the slightly safer road of deleting the attachment. I changed my s...
by RvdH
2019-02-15 11:20
Forum: Off-topic discussions
Topic: ClamAV hangs server
Replies: 15
Views: 1264

Re: ClamAV hangs server

Yes, I installed updates this week...yesterday after 23:00, so that can't be the issue ;) I have enabled debug login for clamd for the time being...lets see what happens Btw, memory usage on this particular server is almost constantly somewhere between 80 and 84%, could it be a lack of free memory? ...
by RvdH
2019-02-15 09:09
Forum: Off-topic discussions
Topic: ClamAV hangs server
Replies: 15
Views: 1264

Re: ClamAV hangs server

FYI: I have both VirusScan and Spam checking Maximums set to: 2048 for Maximum message size to virus scan (KB) in hmailServer Now i think of it, isn't it a bit of waste of resources on the server to use both ClamAV in hmailserver and enable clamav.pm in SpamAssassin? Each message is checked twice th...
by RvdH
2019-02-15 09:05
Forum: Off-topic discussions
Topic: ClamAV hangs server
Replies: 15
Views: 1264

ClamAV hangs server

Yesterday ClamAV has hung the SMTP traffic on our server for a unknown reason, it seem to have started after ClamAV correctly reloaded Databases After that (21:06) almost no SMTP traffic was possible until about an hour later (22:09) when ClamAV detected a Database modification but could not correct...
by RvdH
2019-02-07 18:03
Forum: Scripting
Topic: Delete attachment in spam
Replies: 5
Views: 741

Re: Delete attachment in spam

SorenR wrote:
2019-02-07 18:00
Major flaw... You are not passing the "oMessage" object to the function. AND you need to save the oMessage object after any changes.
Oops...even I did not see that :oops:
by RvdH
2019-02-07 17:23
Forum: Scripting
Topic: Delete attachment in spam
Replies: 5
Views: 741

Re: Delete attachment in spam

Remove all Attachments oMessage.Attachments.Clear() Remove individual Attachments for i = 0 to oMessage.attachments.count ' attachment oMessage.attachments(i).Delete() next 'i or for i = 0 to oMessage.attachments.count ' attachment oMessage.attachments.Item(i).Delete() next 'i And last oMessage.Save
by RvdH
2019-02-06 16:20
Forum: General discussions
Topic: Problem. Sometimes HMailServer behaves like an open relay!!!
Replies: 1
Views: 419

Re: Problem. Sometimes HMailServer behaves like an open relay!!!

"SMTPD" 652 11001 "2019-02-06 02:10:42.132" "185.231.245.49" "RECEIVED: AUTH PLAIN" "SMTPD" 652 11001 "2019-02-06 02:10:42.133" "185.231.245.49" "SENT: 334 Log on" "SMTPD" 3044 11001 "2019-02-06 02:10:42.188" "185.231.245.49" "RECEIVED: admin@mydomen.net ***" "SMTPD" 3044 11001 "2019-02-06 02:10:42...
by RvdH
2019-02-05 10:27
Forum: Scripting
Topic: Want to Autoban some special spammer
Replies: 38
Views: 4525

Re: Want to Autoban some special spammer

@SorenR I used ASN logging as in your example above and have found prove some listed are used to send spam only I decided to score various ASN entries higher (using spamassassin) Example ### ASN scores ### ifplugin Mail::SpamAssassin::Plugin::ASN # AS16276 OVH SAS header ASN_AS16276 X-ASN =~ /\b(162...
by RvdH
2019-02-02 03:15
Forum: General discussions
Topic: Urgent help please, spammers using my server
Replies: 25
Views: 4452

Re: Urgent help please, spammers using my server

For the ones who already downloaded fail2ban.zip, i pushed a new version (1.1.0.2) that fixes a NullReferenceException
by RvdH
2019-01-31 09:43
Forum: General discussions
Topic: Urgent help please, spammers using my server
Replies: 25
Views: 4452

Re: Urgent help please, spammers using my server

In the OnClientLogon(oClient) event, oClient.Username always holds the value passed when authenticating the user, in later events like OnSmtpData, OnAcceptMessage the oClient.Username is empty when authentication has failed (to be compatible with current behavior/scripts) OnSmtpData, OnAcceptMessag...
by RvdH
2019-01-30 18:11
Forum: General discussions
Topic: Urgent help please, spammers using my server
Replies: 25
Views: 4452

Re: Urgent help please, spammers using my server

i can share a program i wrote if you wish to report to blocklist.de using their API Yes please How to use? First you need to register a account on blocklist.de, https://www.blocklist.de/en/register.html to get your own API key Download fail2ban.zip (Requires Net 4.5) fail2ban Options: -a, --apikey=...
by RvdH
2019-01-30 01:06
Forum: General discussions
Topic: Urgent help please, spammers using my server
Replies: 25
Views: 4452

Re: Urgent help please, spammers using my server

Not a direct instant help but do you and us a favor and report this Bastard to the Networkowners Antispam Department $ whois 221.237.208.10 % Information related to '221.236.0.0 - 221.237.255.255' inetnum: 221.236.0.0 - 221.237.255.255 netname: CHINANET-SC descr: CHINANET Sichuan province network d...
by RvdH
2019-01-29 17:59
Forum: General discussions
Topic: Fresh installed HMAIL server runs out of memory.
Replies: 12
Views: 1251

Re: Fresh installed HMAIL server runs out of memory.

Have you excluded the \Data\ and \Temp\ folder for realtime scanning in McAfee Livesafe?
by RvdH
2019-01-19 22:31
Forum: General discussions
Topic: Error download mail external pop
Replies: 37
Views: 3015

Re: Error download mail external pop

mic.max wrote:
2019-01-19 21:07
I downgrade to 5.6.7 latest production release and seems to work fine, no error log and minidump! Why this?
64-bit support is very experimental, hence the lack of a official 64-bit distribution on the official channel... could be as simple as a wrong int/size conversion
by RvdH
2019-01-19 19:45
Forum: General discussions
Topic: Linux port with .NET core - a possibility?
Replies: 4
Views: 1004

Re: Linux port with .NET core - a possibility?

hMailServer is a free, open source, e-mail server for Microsoft Windows.
But hey, the source is available...what is holding you back to try?
by RvdH
2019-01-19 14:08
Forum: General discussions
Topic: Upgrading Database and SSL
Replies: 2
Views: 758

Re: Upgrading Database and SSL

What is your question :?:
by RvdH
2019-01-16 19:09
Forum: Scripting
Topic: Want to Autoban some special spammer
Replies: 38
Views: 4525

Re: Want to Autoban some special spammer

Hi SorenR, Why the VARCHAR (192) And not simply use the default VARCHAR (255) Maybe Expecting uft8mb4? I also noticed you used that VARCHAR (192) in your IDS code, but there is a maximum of 15 chars for IPv4 and 45 for IPv6 addresses... https://stackoverflow.com/questions/1076714/max-length-for-clie...
by RvdH
2019-01-16 11:27
Forum: Scripting
Topic: Want to Autoban some special spammer
Replies: 38
Views: 4525

Re: Want to Autoban some special spammer

I have updated the lookup component (v1.3.0.1) The code below, should return everything now ********** strIP = "185.222.209.40" Dim a, b, element, group, strLookup a = Split(strIP, ".") With CreateObject("DNSLibrary.DNSResolver") strLookup = .TXT(a(3) & "." & a(2) & "." & a(1) & "." & a(0) & ".zz.co...
by RvdH
2019-01-16 00:11
Forum: Scripting
Topic: Want to Autoban some special spammer
Replies: 38
Views: 4525

Re: Want to Autoban some special spammer

Spamassassin is using it... c:\SpamAssassin\share\3.004000\updates_spamassassin_org\25_asn.cf Added header; X-Spam-ASN: AS57043 185.222.209.40/32 Since two or three versions back SpamAssassin started including ASN numbers in Bayesian data to identify Spammers by Internet router. I was just wonderin...
by RvdH
2019-01-15 19:26
Forum: Scripting
Topic: Want to Autoban some special spammer
Replies: 38
Views: 4525

Re: Want to Autoban some special spammer

Something seems off with that TXT record, it looks like a single string :shock: , see https://mxtoolbox.com/SuperTool.aspx?action=txt%3a40.209.222.185.asn.routeviews.org&run=networktools dig 40.209.222.185.asn.routeviews.org TXT ; <<>> DiG 9.11.0-P1 <<>> 40.209.222.185.asn.routeviews.org TXT ;; glob...
by RvdH
2019-01-15 12:30
Forum: Scripting
Topic: Want to Autoban some special spammer
Replies: 38
Views: 4525

Re: Want to Autoban some special spammer

Well Ruud, It seems as those pesky ISO 3166-1 alpha-3 IS the way to go. I reconfigured my system before I went to bed this morning and this is what I got... The "old" NerdLookup() is calling the "new" NerdLookupTXT() in order to get both solutions. I hate to say this to you, but you are wrong...and...
by RvdH
2019-01-13 12:40
Forum: General discussions
Topic: How to Use Rules to filter X-Google-Original-From for mail downloaded from External Account
Replies: 30
Views: 2110

Re: How to Use Rules to filter X-Google-Original-From for mail downloaded from External Account

Mail downloaded from external account?
What about the X-hMailServer-ExternalAccount header? Can't you do something with that?
by RvdH
2019-01-13 11:32
Forum: Scripting
Topic: Can i do an autban script based on this?
Replies: 43
Views: 3346

Re: Can i do an autban script based on this?

How about strict security to stop unauthorised persons looking at random script files on your server in the first place? I'm pretty sure that if anyone had gained access to your system and shouldn't be there, the last thing they will be looking at is some unknown script file in a 3rd party software...
by RvdH
2019-01-11 22:22
Forum: Scripting
Topic: Want to Autoban some special spammer
Replies: 38
Views: 4525

Re: Want to Autoban some special spammer

Another example: dig +short 180.227.49.37.zz.countries.nerd.dk TXT "is" "ee" That's a bug... The IP address belongs to Iceland. Get your own copy ... :mrgreen: mkdir -p rsync/dg rsync -a rsync://countries-ns.mdc.dk/zone/ rsync cat rsync/zz.countries.nerd.dk.rbldnsd zz.countries.nerd.dk.rbldnsd.add ...
by RvdH
2019-01-11 18:17
Forum: Scripting
Topic: Want to Autoban some special spammer
Replies: 38
Views: 4525

Re: Want to Autoban some special spammer

Another example:

Code: Select all

dig +short 180.227.49.37.zz.countries.nerd.dk TXT
"is"
"ee"
by RvdH
2019-01-11 17:36
Forum: Scripting
Topic: Want to Autoban some special spammer
Replies: 38
Views: 4525

Re: Want to Autoban some special spammer

No, not really...probably used that On Error Resume Next when debugging zz.countries.nerd.dk sometimes returns 2 TXT records, for example 'eu' and 'nl' for a single ip, as i prefer to allow the 'nl' and not the 'eu' i added that countryCodeAlt to filter out those duplicates, example: https://www.hma...
by RvdH
2019-01-11 13:48
Forum: Scripting
Topic: Want to Autoban some special spammer
Replies: 38
Views: 4525

Re: Want to Autoban some special spammer

Mmm, OK i see But why allow 3 attempts (using the IDS code) on any port other then port 25? I block those instantly Dim strRegEx : strRegEx = "^(nl|be|eu|zz)$" If (oClient.Port <> 25) Then If Not Lookup(strRegEx, NerdLookup(oClient.IPAddress)) Then ' countries.nerd.dk Call AutoBan(oClient.IPAddress,...
by RvdH
2019-01-11 12:21
Forum: Scripting
Topic: Want to Autoban some special spammer
Replies: 38
Views: 4525

Re: Want to Autoban some special spammer

Shouldn't this: Sub OnClientConnect(oClient) ' Only test SMTP traffic If (InStr("|25|587|465|", oClient.Port) > 0) Then ' IDS test for SYN flood etc. Call idsAddIP(oClient.IPAddress, 0) End If End Sub Be: Sub OnClientConnect(oClient) ' Only test SMTP traffic If (InStr("|25|587|465|", oClient.Port) >...