Search found 918 matches

by RvdH
2020-03-28 09:16
Forum: Development & alpha discussions
Topic: Saving attachments to a network location ?
Replies: 14
Views: 124

Re: Saving attachments to a network location ?

If he is using a self developed C# Application, i wouldn't rely on hmailserver's COM...but would use something like MailKit to those download attachments via IMAP MailKit is very neat and powerfull, I created that zipscanner with it and more recently a service that does cleanup bounces (NDR's) send ...
by RvdH
2020-03-27 19:01
Forum: Development & alpha discussions
Topic: Saving attachments to a network location ?
Replies: 14
Views: 124

Re: Saving attachments to a network location ?

mikedibella wrote:
2020-03-27 17:44
However, I stick with my original recommendation. Run you COM client in your desired security context and just copy the file from the local drop.
+1
by RvdH
2020-03-26 22:03
Forum: Development & alpha discussions
Topic: hMailServer 5.7
Replies: 128
Views: 37532

Re: hMailServer 5.7

Funny thing is i recreated the MX DNS setup mattg described but had no issue sending email whatsoever...weird stuff is going on with 5.7 and DNS lookups :shock:
by RvdH
2020-03-26 15:53
Forum: Development & alpha discussions
Topic: hMailServer 5.7
Replies: 128
Views: 37532

Re: hMailServer 5.7

Oops :oops:
7 mx records was right after all, 3 ip addresses (from backup mx) had a ipv6 equivalent


Weird, you didn't seem to have a issue with dkim sname's, and now I don't seem to have a issue with MX cname's....but i suspect it to be related
by RvdH
2020-03-26 11:09
Forum: Development & alpha discussions
Topic: hMailServer 5.7
Replies: 128
Views: 37532

Re: hMailServer 5.7

I just tried a setup like you described above, don't really had a problem sending mail out (5.7), it reported 7 ip addresses where it should report only 4 "TCPIP" 3392 "2020-03-26 09:33:16.919" "DNS MX lookup: domain.nl" "TCPIP" 3392 "2020-03-26 09:33:17.075" "DNS - MX Result: 7 IP addresses were fo...
by RvdH
2020-03-26 10:19
Forum: Development & alpha discussions
Topic: hMailServer 5.7
Replies: 128
Views: 37532

Re: hMailServer 5.7

came across an issue Poorly configured dns I think test@example.com mx record for example.com = priority=10, mail.example.com DNS lookup for mail.example.com shows a CNAME of mail.otherdomain.com DNS lookup for mail.otherdomain.com points to an A record with an IP hMailserver 5.7 logs "APPLICATION"...
by RvdH
2020-03-25 21:26
Forum: Scripting
Topic: Syntax
Replies: 10
Views: 164

Re: Syntax

VBA, Excel?

https://www.hmailserver.com/documentati ... ce_scripts
Maybe next time try to consult the documentation first
by RvdH
2020-03-25 17:23
Forum: Scripting
Topic: Syntax
Replies: 10
Views: 164

Re: Syntax

What about specifying/defining the usernames? If oClient.Username = "username1@domain.com" OR oClient.Username = "username2@domain.com" Then You are really asking weird questions or asking the obvious, use your brain if you have one and try to put some effort in yourself....search the forums for oth...
by RvdH
2020-03-25 12:09
Forum: Scripting
Topic: Syntax
Replies: 10
Views: 164

Re: Syntax

Once again....Search :!: :?:

There are plenty of forum topics covering attachment handling that should get you started
by RvdH
2020-03-25 11:31
Forum: Scripting
Topic: Syntax
Replies: 10
Views: 164

Re: Syntax

Uh, what :?:
oClient.Username = "" means a client without a username, eg: unauthenticated

maybe you should search the forum for examples/inspiration
by RvdH
2020-03-23 13:05
Forum: User contributed hMailServer 5 scripts
Topic: Check incoming connections with AbuseIPDB
Replies: 55
Views: 16295

Re: Check incoming connections with AbuseIPDB

If you get in trouble with limits, you might like to exclude port 25 from checking...especially when authentication on port 25 is disabled (DisableAUTHList=25 in hMailServer.INI) like so: Sub OnClientConnect(oClient) If (oClient.IPAddress = "127.0.0.1") Then Exit Sub '** Localhost If (Left(oClient.I...
by RvdH
2020-03-23 10:48
Forum: User contributed hMailServer 5 scripts
Topic: Check incoming connections with AbuseIPDB
Replies: 55
Views: 16295

Re: Check incoming connections with AbuseIPDB

AbuseIPDB list 127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16 etc as non-public IP's those are not scored anyway, but to skip the check (and save you some request, considering the request limits!) for local ipaddress/network and loopback ipaddress you can accomplish that by using the example above, i might...
by RvdH
2020-03-23 09:15
Forum: User contributed hMailServer 5 scripts
Topic: Check incoming connections with AbuseIPDB
Replies: 55
Views: 16295

Re: Check incoming connections with AbuseIPDB

Oh wow, this works! 5316 "2020-03-23 05:12:31.566" "AbuseIPDB Score:100" 5316 "2020-03-23 05:12:31.566" "INFO: AbuseIPDB: 193.56.28.120:25" Is the local network excluded from lookup? Nope, not by default.... but you can easily accomplish that in OnClientConnect, example: Sub OnClientConnect(oClien...
by RvdH
2020-03-22 20:27
Forum: General discussions
Topic: Roundcubemail 1.4.3
Replies: 6
Views: 135

Re: Roundcubemail 1.4.3

You have to add MIME type for woff2 IIS Manager -> MIME Types -> Add file name extension : ".woff2" MIME type: "font/woff2" web.config <configuration> <system.webServer> <staticContent> <mimeMap fileExtension=".woff2" mimeType="font/woff2" /> But thats not what is giving te errors, the 500 (internal...
by RvdH
2020-03-22 17:43
Forum: General discussions
Topic: Roundcubemail 1.4.3
Replies: 6
Views: 135

Re: Roundcubemail 1.4.3

I am on RoundCube 1.4.3 as well, no problems here...

In you browser press F12 to open Developer Tools, reload the page and look for error(s) displayed in Console
by RvdH
2020-03-22 16:20
Forum: User contributed hMailServer 5 scripts
Topic: Rewrite chack Maxming GeoIP
Replies: 6
Views: 126

Re: Rewrite chack Maxming GeoIP

You can still use legacy format, i get mine from here https://mailfud.org/geoip-legacy/ (but there are more/others providing legacy formatted db)
by RvdH
2020-03-22 13:31
Forum: User contributed hMailServer 5 scripts
Topic: Check incoming connections with AbuseIPDB
Replies: 55
Views: 16295

Re: Check incoming connections with AbuseIPDB

Mmmmm, caching isn't very useful as the MemoryCache is emptied after the COM object is destroyed I did insert some sort of caching, but only to get the boolean value and the ConfidenceScore value using just one lookup, could be useful when debugging Some renaming has taken place, eg: CheckEndpoint r...
by RvdH
2020-03-22 10:40
Forum: User contributed hMailServer 5 scripts
Topic: Check incoming connections with AbuseIPDB
Replies: 55
Views: 16295

Re: Check incoming connections with AbuseIPDB

But if it is not vbs, how do I execute the script? By wrapping a vbs function around the Com Object as displayed in example above :?: FYI, i'm currently finalizing things, thinking about caching results in memory to limit API request, maybe i can have a first test build of this component up later t...
by RvdH
2020-03-21 23:36
Forum: User contributed hMailServer 5 scripts
Topic: Check incoming connections with AbuseIPDB
Replies: 55
Views: 16295

Re: Check incoming connections with AbuseIPDB

I see this is executed in OnClientConnect, how can something that is limited to 1000 (3000 if you verify you are owner of website) request per day be useful to block unwanted traffic? OK, i could use this on my home setup, but if i would utilize this on the company server i wil run out of request be...
by RvdH
2020-03-18 15:50
Forum: General discussions
Topic: Weird Error - Permission Denied?
Replies: 2
Views: 144

Re: Weird Error - Permission Denied?

palinka wrote:
2020-03-18 14:34
I do have some code at OnDeliveryStart related to the "enhanced distribution list" project.
Much clearer it won't get....I would start debugging there :?
by RvdH
2020-03-17 17:25
Forum: Off-topic discussions
Topic: Nasty virus/trojan in emails
Replies: 11
Views: 1878

Re: Nasty virus/trojan in emails

Do I need to installed a Antivirus to protect my PC again Virus? Really?? I don't have anything scanning e-mails handled by hmailserver, I do block attachments and inspect content inside zip files however Basically it does what sanesecurity foxhole definitions do without needing to reserve around 6...
by RvdH
2020-03-15 12:36
Forum: General discussions
Topic: startbackup.vbs via task scheduler
Replies: 14
Views: 705

Re: startbackup.vbs via task scheduler

This still will not bring extra security, these are fake measures... the attack surface only gets bigger with more accounts
how did that cryptovirus came on the system in the first place? 99% by user interaction and not by systems self, if updated
by RvdH
2020-03-14 13:22
Forum: General discussions
Topic: startbackup.vbs via task scheduler
Replies: 14
Views: 705

Re: startbackup.vbs via task scheduler

In that case i wouldn't allow any other ('normal') users on the server at all... although i doubt a cryptovirus will let itself be stopped by user set privileges, it will always try to find a way to spread as much it can, either by using SYSTEM or ADMIN account
by RvdH
2020-03-14 10:47
Forum: General discussions
Topic: startbackup.vbs via task scheduler
Replies: 14
Views: 705

Re: startbackup.vbs via task scheduler

Actually it works in this way, thank you! A little concern: The reason to use a regular account is to deny access rights to the backup folder for all users except this regular user. Is this still possible even if the backup is performed by SYSTEM account? You should try, but i think that should wor...
by RvdH
2020-03-14 10:26
Forum: General discussions
Topic: startbackup.vbs via task scheduler
Replies: 14
Views: 705

Re: startbackup.vbs via task scheduler

I run it under SYSTEM account, that way it will automatically run whether the user is logged on or not Actually it works in this way, thank you! A little concern: The reason to use a regular account is to deny access rights to the backup folder for all users except this regular user. Is this still ...
by RvdH
2020-03-14 10:17
Forum: Development & alpha discussions
Topic: SpamTestSPF and SpamTestHeloHost for mail send thru localhost get scored
Replies: 3
Views: 699

Re: SpamTestSPF and SpamTestHeloHost for mail send thru localhost get scored

Example: before (without the 2 pull request) "SMTPD" 3556 22525 "2020-03-13 11:22:10.152" "127.0.0.1" "SENT: 220 mail.domain.nl ESMTP" "SMTPD" 3556 22525 "2020-03-13 11:22:10.152" "127.0.0.1" "RECEIVED: EHLO HMAILSERVER-PC " "DEBUG" 3556 "2020-03-13 11:22:10.152" "Executing event OnHELO" "DEBUG" 355...
by RvdH
2020-03-14 09:42
Forum: Development & alpha discussions
Topic: SpamTestSPF and SpamTestHeloHost for mail send thru localhost get scored
Replies: 3
Views: 699

Re: SpamTestSPF and SpamTestHeloHost for mail send thru localhost get scored

What if someone on the internet names their computer 'localhost'?` irrelevant, my fault... i should have chosen to write local ip address instead of localhost throughout the post See: https://github.com/hmailserver/hmailserver/pull/324 https://github.com/hmailserver/hmailserver/pull/323 I'd agree t...
by RvdH
2020-03-13 14:46
Forum: Development & alpha discussions
Topic: SpamTestSPF and SpamTestHeloHost for mail send thru localhost get scored
Replies: 3
Views: 699

SpamTestSPF and SpamTestHeloHost for mail send thru localhost get scored

Hmailserver's SpamTestSPF and SpamTestHeloHost for mail send thru localhost get scored, this doesn't seem right, is it? In my opinion SpamTestSPF should be ignored if mail is coming thru 127.0.0.1, it now returns: Fail, but according RFC it should return: Pass for localhost Same applies to SpamTestH...
by RvdH
2020-03-12 23:36
Forum: General discussions
Topic: startbackup.vbs via task scheduler
Replies: 14
Views: 705

Re: startbackup.vbs via task scheduler

I run it under SYSTEM account, that way it will automatically run whether the user is logged on or not
by RvdH
2020-03-10 15:18
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 206
Views: 85981

Re: Sub OnHELO(oClient) progress?

Add RMSPF library SpamTestSPF Result to DEBUG logging, see this forum topic Did this one make it into the 5.7 version that you built a couple of days ago? I've been running that build since about an hour after it hatched. excellent so far (as usual) Nope, but i can make u pull request for it if the...
by RvdH
2020-03-10 12:48
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 206
Views: 85981

Re: Sub OnHELO(oClient) progress?

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...
by RvdH
2020-03-07 19:12
Forum: General discussions
Topic: DKIM not working correctly
Replies: 19
Views: 2849

Re: DKIM not working correctly

This change is now included in latest artifact for 5.7.x
by RvdH
2020-03-07 16:55
Forum: General discussions
Topic: URL send to SURBL
Replies: 24
Views: 5442

Re: URL send to SURBL

This change is now included in latest artifact for 5.7.x
by RvdH
2020-03-07 11:54
Forum: General discussions
Topic: DKIM not working correctly
Replies: 19
Views: 2849

Re: DKIM not working correctly

Found it: https://github.com/hmailserver/hmailserver/issues/217 Bingo! And i already might have a fix, https://github.com/hmailserver/hmailserver/blob/3b6b106e2a9b0ccbed92d805695712b8485c7890/hmailserver/source/Server/Common/TCPIP/DNSResolver.cpp#L118 bool DNSResolver::GetTXTRecords(const String &s...
by RvdH
2020-03-06 17:46
Forum: Off-topic discussions
Topic: Nasty virus/trojan in emails
Replies: 11
Views: 1878

Re: Nasty virus/trojan in emails

You may want to switch to a different product. MSE is dangerous! If their commandline scan behave like this then what about their real-time scan? https://answers.microsoft.com/en-us/protect/forum/all/add-additional-return-code-for-mpcmdrun-custom/2b93f70b-3f98-4ef7-96e8-11bfc2657ff6 :) I completely...
by RvdH
2020-03-06 16:24
Forum: General discussions
Topic: DKIM not working correctly
Replies: 19
Views: 2849

Re: DKIM not working correctly

I got another one with same DKIM error message (mail from my bank), like the outlook one this is also a CNAME record... i really think something fishy is happening on 5.7...at least in combination with Windows Server 2016, i know some changes are made to 5.7.x DNS lookups within hmailserver 2019.fjt...
by RvdH
2020-03-04 13:01
Forum: General discussions
Topic: DKIM not working correctly
Replies: 19
Views: 2849

Re: DKIM not working correctly

Just checked my today's log for the error that you show, and I did get one from a mailinglist (not a hosted office365 domain) and one from seek (the employment website), but my Office365 hosted account passed I get a different result doing this nslookup -type=TXT outlook.com 8.8.8.8 than doing this...
by RvdH
2020-03-01 13:42
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

That example I returned only the result that hmailserver uses internally, eg: PASS, FAIL and NEUTRAL in SpamTestSPF.cpp i created a helper function to parse enum value to string inline const char* ToString(SPF::Result v) { switch (v) { case SPF::Neutral: return "Neutral"; case SPF::Fail: return "Fai...
by RvdH
2020-02-28 13:09
Forum: General discussions
Topic: DKIM not working correctly
Replies: 19
Views: 2849

Re: DKIM not working correctly

Well disabling IPv6 in my modem fixed the nslookup issue, but the DKIM issue persist

Off topic, anyone else has problems accessing forum from time to time?
by RvdH
2020-02-28 12:40
Forum: General discussions
Topic: DKIM not working correctly
Replies: 19
Views: 2849

Re: DKIM not working correctly

Something fishy is going on...looks related to ipv6 (which i don't have?) C:\Users\Ruud>nslookup -type=TXT outlook.com Server: mijnmodem.kpn.home Address: fe80::36da:b7ff:fe8d:ab5e *** mijnmodem.kpn.home can't find outlook.com: Query refused C:\Users\Ruud>nslookup -type=TXT outlook.com 8.8.8.8 Serve...
by RvdH
2020-02-28 12:11
Forum: General discussions
Topic: DKIM not working correctly
Replies: 19
Views: 2849

Re: DKIM not working correctly

Nah, LOG_DEBUG() entries are displayed when debug logging is enabled, verified
by RvdH
2020-02-28 12:02
Forum: General discussions
Topic: DKIM not working correctly
Replies: 19
Views: 2849

Re: DKIM not working correctly

Weird, i've pinpointed the location that returns this error, it located here and @ line 580 in DKIM.cpp If i have read it correctly, at line 566 TXT records are checked, and obviously it find the specific record otherwise that error would have been displayed if (results.size() == 0) { /* 3. If the q...
by RvdH
2020-02-28 10:31
Forum: General discussions
Topic: DKIM not working correctly
Replies: 19
Views: 2849

Re: DKIM not working correctly

I doubt it, same client mailing to a instance of hmailserver 5.6.8-x passes hmailservers internal DKIM verification without issues, others like gmail, yahoo validate do as well The issue seems to be a combo of, hmailserver 5.7.x + outlook DKIM... most likely due to it being a CNAME i think ...bit su...
by RvdH
2020-02-27 17:48
Forum: General discussions
Topic: DKIM not working correctly
Replies: 19
Views: 2849

Re: DKIM not working correctly

Oops i forgot to mention, this seems only a issue on 5.7 (64-bit
by RvdH
2020-02-27 12:52
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

@mikernet Can you upgrade to latest beta? (5.6.8 - Build 2494) If so, i can supply you a custom build that reports SPF test result to narrow down the possible problem "DEBUG" 6364 "2020-02-27 08:12:36.599" "Spam test: SpamTestHeloHost, Score: 0" "DEBUG" 6364 "2020-02-27 08:12:36.661" "Spam test: Spa...
by RvdH
2020-02-27 10:29
Forum: General discussions
Topic: DKIM not working correctly
Replies: 19
Views: 2849

DKIM not working correctly

Now we are on the topic of checking if hmailserver SPF check mechanism works or not, it came to my attention that email received from any outlook, hotmail, office365, exchange online account(s) (basically everything received from any obe.outbound.protection.outlook.com servers) seem to fail hmailser...
by RvdH
2020-02-26 13:49
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

Because of this flaw, i guess without a wireshark analysis of the DNS/SPF lookup we will never know what is going on
by RvdH
2020-02-26 13:38
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

Well that is just plain stupid, but you are right i just checked with one of my domains removing the TXT record and it still returned "Spam test: SpamTestSPF, Score: 0"
In that case the debug log is off no use to find the problem
by RvdH
2020-02-26 13:03
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

Whatever.... good luck! Your debug log clearly stated: "DEBUG" 83036 "2020-02-25 14:33:15.033" "Spam test: SpamTestSPF, Score: 0" When is above sting returned? (hint, check the code i posted earlier) Bingo... only if the SPF check passed! That has nothing to do with totalscores or whatsoever....you ...
by RvdH
2020-02-26 12:41
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

The score is only added in the code you posted on a FAIL result, so it would make sense to me that a NEUTRAL result would have a 0 score. Where in the code would a score be added for a NEUTRAL result? It isn't....read the code part i pasted, it only returns values for SpamTestResult::Fail or SpamTe...
by RvdH
2020-02-26 12:40
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

From the info we have (fails to bypass greylisting but does not score in spam test), I'm fairly sure this particular SPF test is coming back neutral for some reason...maybe because of the macro? That would only make sense if it resolved the entire SPF record chain upfront instead of stepping throug...
by RvdH
2020-02-26 12:36
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

Okay, so I'm 99% sure we found the problem. It's right there in the code you posted. The code considers FAIL and PASS results...but the SPF test CAN apparently return NEUTRAL: https://github.com/hmailserver/hmailserver/blob/master/hmailserver/source/Server/SMTP/SPF/SPF.h The greylisting bypass code...
by RvdH
2020-02-26 12:09
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

Neutral isn't scored on SPF test, because you received "0" score the conclusion is SPF check passed for both test std::set<std::shared_ptr<SpamTestResult> > SpamTestSPF::RunTest(std::shared_ptr<SpamTestData> pTestData) { std::set<std::shared_ptr<SpamTestResult> > setSpamTestResults; String sMessage ...
by RvdH
2020-02-25 16:41
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

For hmailserver?
the ARSoft.Tools.Net is written in C#, and hmailserver is written in C++
by RvdH
2020-02-25 15:28
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

I get that ... I have not been really deep into the rmspf.cpp code but is that not the way it works? It would seem a complete waste of time and cpu cycles to continue to the end and if that is the case then we have a different problem with SPF ... Most likely Off-topic... I myself am a bit curious ...
by RvdH
2020-02-25 14:00
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

Anything wrong with that? It appears that only 2 of 10 lookups are used. If we assume the evaluation is performed (top down) the same way hMailServer is doing it (still need to see a WireShark trace of the DNS data exchange) then the "_spf.salesforce.com" record is not even queried thus the macro i...
by RvdH
2020-02-25 13:53
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

https://vamsoft.com/support/tools/spf-policy-tester seems to stop processing once a match (pass result) is found, and therefor is not expanding/walking all spf record values
by RvdH
2020-02-25 13:41
Forum: General discussions
Topic: SPF not working correctly
Replies: 95
Views: 11649

Re: SPF not working correctly

SorenR wrote:
2020-02-25 12:39
Yes, RFC says that if sender is not found the HELO/EHLO greeting should be used. :roll:
Should, but hmailserver does not check SPF for HELO/EHLO altogether ....therefor my initial remark saying SPF testing in hmailserver is very limited/basic