Search found 3043 matches

by SorenR
2019-06-16 11:12
Forum: General discussions
Topic: SPAM - SCAM - PSHING - HMAIL SERVER !!!NEED HELP!
Replies: 8
Views: 170

Re: SPAM - SCAM - PSHING - HMAIL SERVER !!!NEED HELP!

(Lets be honest, if you have an account called test, the password is also going to be test) NO!!!!! It's "password". :mrgreen: During a recent password audit, it was found that a blonde was using the following password: "MickeyMinniePlutoHueyLouieDeweyDonaldGoofySacramento". When asked why she had ...
by SorenR
2019-06-15 11:59
Forum: General discussions
Topic: Order of "Greylisting" "White Listing"
Replies: 9
Views: 111

Re: Order of "Greylisting" "White Listing"

Hello, I want to understand in which order hMailServer will do the Anti-Spam tests. We activated Greylisting and want to Whitelist a customer who use Office 365. I added *@domain.tld in "White Listing" but it seems that nevertheless "Greylisting" will checked before "White Listing". Can someone con...
by SorenR
2019-06-15 11:52
Forum: General discussions
Topic: Order of "Greylisting" "White Listing"
Replies: 9
Views: 111

Re: Order of "Greylisting" "White Listing"

twaldorf, See this section copied from the hMailServer Help documentation below. This section is not describing the White listing Tab function. It is an option off the Anti-Spam navigation tree directly under Grey listing in the tree. This is what I use to White list a specific email address or Dom...
by SorenR
2019-06-14 01:17
Forum: Scripting
Topic: How to debug scripts?
Replies: 21
Views: 298

Re: How to debug scripts?

It's getting even weirder.. Tech guy was here and he had all the right gear to trace ground wires etc. We had a long talk about old school PSTN 😀... Anyways tools say no signal and latest data says i'm on position 37 in the local switchboard Report says I should be on positions 33 and 34... We conne...
by SorenR
2019-06-13 00:48
Forum: Scripting
Topic: How to debug scripts?
Replies: 21
Views: 298

Re: How to debug scripts?

Glad it worked for you :-) I've been off-line all day due to a ligntening storm this morning. My DSL box got fried and aparently also the port it was connected to in my Cisco switch. Went to the ISP to get a new but they were fresh out so had to accept a later model second-hand box. Turns out proble...
by SorenR
2019-06-11 19:07
Forum: Scripting
Topic: How to debug scripts?
Replies: 21
Views: 298

Re: How to debug scripts?

Could you post your "eventhandlers.vbs" script?

Optionally by PM if you like.

PS... dinner time :mrgreen:
by SorenR
2019-06-11 02:20
Forum: Scripting
Topic: How to debug scripts?
Replies: 21
Views: 298

Re: How to debug scripts?

Your debug log says "OnMessageDeliver" and your script says "OnDeliverMessage" ... ???
by SorenR
2019-06-11 02:15
Forum: Scripting
Topic: How to debug scripts?
Replies: 21
Views: 298

Re: How to debug scripts?

Every time you update the script you either have to "reboot" hMailServer or ... hMailAdmin -> Settings -> Advanced -> Scripts [check syntax] and if OK then [Reload scripts] hMailServer has it's own in-built script engine and when you Reload Scripts, hMail "interprets" the script and store it in bina...
by SorenR
2019-06-11 01:47
Forum: Scripting
Topic: How to debug scripts?
Replies: 21
Views: 298

Re: How to debug scripts?

I usually plaster new code all over with "EventLog.Write( "bla bla = " & value )" so I can follow progress in the EventLog.
by SorenR
2019-06-10 13:51
Forum: General discussions
Topic: Code: HM4403
Replies: 31
Views: 773

Re: Code: HM4403

Hmm... HM4403 is used in PersistentMessage::LoadHeader and PersistentMessage::LoadBody ... Both are called from DKIM at different times. Wonder if the error goes away if DKIM check is removed? This is tested and error goes away with wait(20) on. But I what it, so I removed wait(20) instead. So on m...
by SorenR
2019-06-09 01:01
Forum: Off-topic discussions
Topic: New kinda spammers?
Replies: 4
Views: 171

Re: New kinda spammers?

palinka wrote:
2019-06-09 00:03
I imagine that's a pretty rare case. :mrgreen:
I reject alle mails where oMessage.FromAddress is "^(return\@.*)$". Not had a false positive in over 1 year... :mrgreen:
by SorenR
2019-06-08 23:30
Forum: General discussions
Topic: Spamhaus Zen
Replies: 16
Views: 279

Re: Spamhaus Zen

So i take it you guys are ok with rejecting these other lists? You both listed your functions for scoring, but didn't say what you actually did with the messages. Reject or score? If reject, have you come across any false positives (complaints about not receiving mail)? Also thanks for posting thes...
by SorenR
2019-06-08 19:30
Forum: General discussions
Topic: Spamhaus Zen
Replies: 16
Views: 279

Re: Spamhaus Zen

RvdH wrote:
2019-06-08 18:35
I know what lashback is, i just wondered why you posted it here... no one was talking/asking about lashback :o
palinka wrote:
2019-06-08 14:02
Currently I'm using spamhaus to reject snowshoe spam, which is very effective. I'm considering expanding the rejection to other blacklists.
by SorenR
2019-06-08 18:22
Forum: General discussions
Topic: Spamhaus Zen
Replies: 16
Views: 279

Re: Spamhaus Zen

https://blacklist.lashback.com/ The listings are determined objectively and systematically. Only IPs that send email to specially-created, LashBack owned-and-monitored email addresses (unsubscribe probes) -- that are used only on suppression lists -- are blacklisted. LashBack has been monitoring un...
by SorenR
2019-06-08 17:20
Forum: General discussions
Topic: Spamhaus Zen
Replies: 16
Views: 279

Re: Spamhaus Zen

Function IsLashBack(strIP) : IsLashBack = False Dim a, strLookup a = Split(strIP, ".") With CreateObject("DNSLibrary.DNSResolver") strLookup = .DNSLookup(a(3) & "." & a(2) & "." & a(1) & "." & a(0) & ".ubl.unsubscore.com") End With If (InStr(1, strLookup, "127.0.0.2", 1) > 0) Then IsLashBack = True...
by SorenR
2019-06-08 17:18
Forum: General discussions
Topic: Working with attachments.
Replies: 0
Views: 83

Working with attachments.

I'm exploring a bit of attachment handling as one of my users lost a word doc that was sent to her - and she did not bother to check it on receipt :roll: Email clearly says: The attachment %MACRO_FILE% was blocked for delivery by the e-mail server. Please contact your system administrator if you hav...
by SorenR
2019-06-08 00:15
Forum: Feature requests
Topic: HCD - SSL-Simplification with Letsencrypt
Replies: 12
Views: 224

Re: HCD - SSL-Simplification with Letsencrypt

I'm on a residential DSL line behind a Sagem box... I have mapped port 80 and 443 to the Apache server on my Synology (old version WITHOUT ACME pre-installed) and port 25, 465 and 993 to my Windows server with hMailServer. I have Fixed IP and an external DNS provider (ChangeIP.com) who also service ...
by SorenR
2019-06-07 17:35
Forum: Feature requests
Topic: HCD - SSL-Simplification with Letsencrypt
Replies: 12
Views: 224

Re: HCD - SSL-Simplification with Letsencrypt

Ok, i checked this mod_md option, but it doesn't work. Without Port forwarding or a public Domain Letsencrypt cant issue a SSL-Certificate, so this Feature for hMailServer can only be used with a public TLD-Domain. Its completely useless for cooperate hMailServers behind a NAT-Router with Dynamic I...
by SorenR
2019-06-07 17:27
Forum: Scripting
Topic: Saving oMessage in OnAcceptMessage to Get MessageID
Replies: 10
Views: 269

Re: Saving oMessage in OnAcceptMessage to Get MessageID

Yes I know ... From a later topic... It think it is a matter of semantic, when the "file is written" I believe it is filed under the specific account on disk, but I have not verified this yet.. https://www.hmailserver.com/forum/viewtopic.php?p=212078#p212078 I do not remember seing the file changin...
by SorenR
2019-06-07 15:11
Forum: Scripting
Topic: Saving oMessage in OnAcceptMessage to Get MessageID
Replies: 10
Views: 269

Re: Saving oMessage in OnAcceptMessage to Get MessageID

Yes I know ... From a later topic... It think it is a matter of semantic, when the "file is written" I believe it is filed under the specific account on disk, but I have not verified this yet.. https://www.hmailserver.com/forum/viewtopic.php?p=212078#p212078 I do not remember seing the file changing...
by SorenR
2019-06-07 14:13
Forum: Feature requests
Topic: HCD - SSL-Simplification with Letsencrypt
Replies: 12
Views: 224

Re: HCD - SSL-Simplification with Letsencrypt

ACME v2 is now an IETF standard..

https://tools.ietf.org/html/rfc8555

The alternative is DNS challenge...
by SorenR
2019-06-07 13:46
Forum: Feature requests
Topic: HCD - SSL-Simplification with Letsencrypt
Replies: 12
Views: 224

Re: HCD - SSL-Simplification with Letsencrypt

Great idea. Validation could be an issue if Apache or iis are working on the same machine. Can letsencrypt validate on alternate ports? Like 81 or 8081? Letsencrypt support ACME V2 so you name it, they do it. Letsencrypt lists 39 client implementations of the ACME v2 protocol. There is a "standalon...
by SorenR
2019-06-06 22:57
Forum: Feature requests
Topic: HCD - SSL-Simplification with Letsencrypt
Replies: 12
Views: 224

Re: HCD - SSL-Simplification with Letsencrypt

Ok, the Subject says it all. Setting up SSL for Mailservers simply sucks (not only for hMailServer). Newbies get lost int the process and you need to install extra Software, bitching with Webservers and Firewall settings just to make sure your SMTP 2 SMTP Server transmissions are encrypted. I think...
by SorenR
2019-06-06 22:45
Forum: General discussions
Topic: Remote server replied: 550 "Number of failed recipients exceeded. Come back in a few hours."
Replies: 7
Views: 165

Re: Remote server replied: 550 "Number of failed recipients exceeded. Come back in a few hours."

jimimaseye wrote:
2019-06-06 21:44
Sigh.
Remote server replied: 550 "Number of failed recipients exceeded.
Ask them.

[Entered by mobile. Excuse my spelling.]
I would think this is a pretty good clue ...
by SorenR
2019-06-06 22:37
Forum: User-submitted tutorials
Topic: Step by step LetsEncrypt WinSimple
Replies: 42
Views: 15039

Re: Step by step LetsEncrypt WinSimple

Just a heads up... This will stop/start the hMailServer service (program). @ECHO OFF NET STOP hMailServer NET START hMailServer This will PAUSE the hMailServer service (program). hMailServer will STOP sending and receiving mails but you can still work with your mailbox. Call oApp.Stop Call oApp.Star...
by SorenR
2019-06-05 23:36
Forum: Scripting
Topic: Sub Unsubscribe
Replies: 13
Views: 362

Re: Sub Unsubscribe

And don't forget this: If Not IsEmpty(sSubject) Then .Subject = sSubject Else .Subject = "Unsubscribe Me" End If If Not IsEmpty(sBody) Then .Body = sBody Else .Body = "This is an automated message generated by our unsubscriber algorithym. Please do not respond to this email as it will be ignored." ...
by SorenR
2019-06-05 14:45
Forum: General discussions
Topic: Mail blocked by Spamhaus
Replies: 18
Views: 416

Re: Mail blocked by Spamhaus

. In theory, there is no difference between theory and practice. But, in practice, there is. . My server is FCRDNS and also sending mail to e.g. "root@[1.1.1.1]" works if we assume 1.1.1.1 is the ptr of the FQDN that services my MX... :mrgreen: Useful if hackers should kill the important DNS server...
by SorenR
2019-06-05 14:41
Forum: Scripting
Topic: Sub Unsubscribe
Replies: 13
Views: 362

Re: Sub Unsubscribe

The way I use this Sub is on a forwarded message by my SPAM account. For this to work I have to record the original recipient of the message so I added this Sub Sub XEnvelope(oMessage) Dim i, strTo, strOriginalTo For i = 0 To oMessage.Recipients.Count-1 If (i = 0) Then strTo = oMessage.Recipients(i)...
by SorenR
2019-06-05 13:06
Forum: General discussions
Topic: Mail blocked by Spamhaus
Replies: 18
Views: 416

Re: Mail blocked by Spamhaus

I think it refers to the inverse resolution of the DNS, except for some cloud services, if you use a physical server on a fixed ip, you must request your internet provider to associate your ip with a name in such a way that: 1.1.1.1 = mail.domain.com and mail.domain.com = 1.1.1.1 FQDN (Fully Qualif...
by SorenR
2019-06-05 11:16
Forum: User contributed hMailServer 5 scripts
Topic: Utility to create and maintain a central MySQL based banlist and whitelist for multiple servers.
Replies: 11
Views: 433

Re: Utility to create and maintain a central MySQL based banlist and whitelist for multiple servers.

Maybe you guys need to chat with RvdH about an alternative to SScripting.IPNetwork !! https://www.hmailserver.com/forum/viewtopic.php?p=196628#p196628 .A, .IPv4A and .DNSLookup are exactly the same in my component, but i left it there to be easily replaceable with the SScripting.IPNetwork component ...
by SorenR
2019-06-04 13:12
Forum: General discussions
Topic: Mail blocked by Spamhaus
Replies: 18
Views: 416

Re: Mail blocked by Spamhaus

Only when i send email to HOTMAIL How do i disable spamhaus? I never even enabled it. :roll: If you sent mail to me you would be blocked AND receive a more generic message that wouldn't explain why you were blocked. Hotmail really did you a favor by telling you the exact reason why. You can't "disa...
by SorenR
2019-06-01 15:37
Forum: General discussions
Topic: How to setup Port 587 for Azure?
Replies: 9
Views: 635

Re: How to setup Port 587 for Azure?

shaulbehr wrote:
2019-05-31 11:06
Ouch. I just hit the same problem.
Can hMailServer not expose a different port, like 587, so that Azure will allow connections through?
It can, it's a 30 second job in the configuration, only the problem is it takes substantionally longer to make the rest of the world change to port 587.
by SorenR
2019-05-31 15:58
Forum: General discussions
Topic: Lots of Random Users getting auto-banned
Replies: 21
Views: 375

Re: Lots of Random Users getting auto-banned

ohh yes… 1 particular thing i like to obfuscate is my emaildomain … so my emailserver is named in a totally different domain from what i deliver email on which has NO users, ( they get welcome to box."empty"domain.com and they parse and use their user-list with @"empty"domain.com and can never be a...
by SorenR
2019-05-31 01:11
Forum: General discussions
Topic: Blocking Spam Efficiently
Replies: 12
Views: 370

Re: Blocking Spam Efficiently

Just another quick update - I sent an email from my Gmail account with the following contents: XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X. ------------=_5CF05C11.2E62AF3F-- This is supposed to be a test and indeed this email was blocked by SpamAssassin "The response from t...
by SorenR
2019-05-30 23:43
Forum: General discussions
Topic: Lots of Random Users getting auto-banned
Replies: 21
Views: 375

Re: Lots of Random Users getting auto-banned

ohh yes… 1 particular thing i like to obfuscate is my emaildomain … so my emailserver is named in a totally different domain from what i deliver email on which has NO users, ( they get welcome to box."empty"domain.com and they parse and use their user-list with @"empty"domain.com and can never be a...
by SorenR
2019-05-29 16:58
Forum: Scripting
Topic: Sub Unsubscribe
Replies: 13
Views: 362

Re: Sub Unsubscribe

The only reason you end up here is because the mail is tagged as SPAM... Do the "green thing" and whitelist in your SPAM handling - save some CPU cycles. :mrgreen: Yep. Sure enough. But fortunately, the unsubscribe that kicked off the thought process was to the spamassassin list, which kindly sent ...
by SorenR
2019-05-29 14:33
Forum: Scripting
Topic: Sub Unsubscribe
Replies: 13
Views: 362

Re: Sub Unsubscribe

First, this doesn't have its own topic, so now it does (was buried within other topics). Now, I've been using this for a while and it works well. However, I noticed a couple of things. 1) Some unsubscribes require the recipient address. Original script has a set from address (unsubscribe@mydomain.t...
by SorenR
2019-05-27 22:29
Forum: General discussions
Topic: hmailserver & Cloudflare
Replies: 13
Views: 420

Re: hmailserver & Cloudflare

Name is the same as you made for the MAIL A record (hopefully like mail.example.com as opposed to example.com as you have written) The bit that says 'click to configure' is where I'm guessing you will be asked for a priority, here put 10 I just want to know why i can't use mydomain.com instead I ha...
by SorenR
2019-05-27 13:40
Forum: General discussions
Topic: Delete mails with Rules
Replies: 1
Views: 90

Re: Delete mails with Rules

Hello, I use the "Mirror" Account in the hmailserver for archiving the mails in mailstore. This works well. But there are mails which we were not allowed to save (example Job application). These mails are forwarded to an external account. So I made a rule in the mirror account which should delete m...
by SorenR
2019-05-26 12:06
Forum: General discussions
Topic: hmailserver stops Executing task DeliveryTask in work queue SMTP delivery queue
Replies: 22
Views: 535

Re: hmailserver stops Executing task DeliveryTask in work queue SMTP delivery queue

I'll also add that my ClamAV is NOT on the same machine that runs hMailserver I have a Linux box that runs SpamAssassin and ClamAV (and a few other bits) I run hMail, ClamAV and Spamassassin (with ClamAV connection) on the same box. 9/10 times ClamAV under SA find something that ClamAV under hMail ...
by SorenR
2019-05-24 16:59
Forum: General discussions
Topic: Code: HM4403
Replies: 31
Views: 773

Re: Code: HM4403

Hmm... HM4403 is used in PersistentMessage::LoadHeader and PersistentMessage::LoadBody ...
Both are called from DKIM at different times.

Wonder if the error goes away if DKIM check is removed?
by SorenR
2019-05-24 16:18
Forum: General discussions
Topic: Code: HM4403
Replies: 31
Views: 773

Re: Code: HM4403

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: The error occurs _between_ triggers, neither OnSMTPData nor On...
by SorenR
2019-05-24 15:45
Forum: General discussions
Topic: Code: HM4403
Replies: 31
Views: 773

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? I'm not sure you are getting off that easy ;-) I still fail to see why a 20 second wait woul...
by SorenR
2019-05-24 14:28
Forum: General discussions
Topic: Code: HM4403
Replies: 31
Views: 773

Re: Code: HM4403

I made a new function to test. Function Wait(tSec) Dim dtWait dtWait = DateAdd("s", tSec, Now()) Do Until (Now() > dtWait) Loop End Function That should work fine. Sort of. My AMD Athlon(tm) II P340 Dual-Core 2.19 GHz doing absolutely Nothing else spikes to 60% CPU for the duration... With this I c...
by SorenR
2019-05-24 01:19
Forum: General discussions
Topic: Code: HM4403
Replies: 31
Views: 773

Re: Code: HM4403

SorenR wrote:
2019-05-24 00:24
Anyways, in the meantime I have verified that oMessage.Filename do have a value when OnSMTPData() is triggered.
Also verified that oMessage.Filename do not exist on disk at this point. It does when OnAcceptMessage is triggered and file can be read as text file...
by SorenR
2019-05-24 00:24
Forum: General discussions
Topic: Code: HM4403
Replies: 31
Views: 773

Re: Code: HM4403

Don't get me wrong here, it is the only change between the two triggers there is between your code and the released code... Anyways, there are plenty others using the 20 second delay without problems... I fail to see what SURBL has to do with it - it's a missing header or something. I run 5.4.2 with...
by SorenR
2019-05-23 20:56
Forum: Scripting
Topic: Regex problem
Replies: 2
Views: 102

Re: Regex problem

Use https://regex101.com/

Click on the 3 lines top left and choose ECMAScript...

Change .IgnoreCase = True to False :mrgreen:

One thing though... Copy oLookup to a new function or you will break all previous use of the function :!:
by SorenR
2019-05-23 17:52
Forum: General discussions
Topic: Code: HM4403
Replies: 31
Views: 773

Re: Code: HM4403

EDIT: !! Hmm... Could this be the temporary file sent to SA that is not supposed to exist yet ?? Weird, investigation needed! Ruud (RvdH) is playing with "Return-Path" before sending mail to SpamAssassin and that is at that exact place where your HM4403 error occurs. You might want to give him a pi...
by SorenR
2019-05-23 14:34
Forum: General discussions
Topic: Code: HM4403
Replies: 31
Views: 773

Re: Code: HM4403

Something is not right here... You get the HM4403 error between OnSMTPData and OnAcceptMessage ... From what I have been able to decode in the (released) code nothing is written to file until AFTER OnAcceptMessage execute. (!!) EDIT: !! Hmm... Could this be the temporary file sent to SA that is not ...
by SorenR
2019-05-22 09:15
Forum: Scripting
Topic: Mail Header Received from Unknown via GMAIL
Replies: 9
Views: 241

Re: Mail Header Received from Unknown via GMAIL

The Unknown client is NOT the issue. When I send to gmail I get this: Authentication-Results: mx.google.com; dkim=pass header.i=@acme.inc header.s=key1 header.b=UiL+0uR2; spf=pass (google.com: domain of soren@acme.inc designates 123.123.123.123 as permitted sender) smtp.mailfrom=soren@acme.inc; dmar...
by SorenR
2019-05-22 08:19
Forum: User-submitted tutorials
Topic: Hardening hMailServer - The ongoing saga!
Replies: 48
Views: 2441

Re: Hardening hMailServer - The ongoing saga!

By the way, after implementing your event handlers, i went from 20 to 30 spam per day to 1 to 3. Very nice! When i get some time, I'll try to figure out how to knock that down even further. There's a pattern I've noticed for spam addresses that make it through is "Somefirstname <DifferentfirstnameL...
by SorenR
2019-05-21 23:32
Forum: User-submitted tutorials
Topic: Hardening hMailServer - The ongoing saga!
Replies: 48
Views: 2441

Re: Hardening hMailServer - The ongoing saga!

Nice mower. Do you bale it? Or stack it like the old days? :mrgreen: I'm hosting horses for a friend from time to time so 6 of the 12 acres I don't have to touch, the rest is kept short. Working the wood chipper clearing up years of dead wood. I've owned the place since 2005 and last year we moved ...
by SorenR
2019-05-21 21:25
Forum: User-submitted tutorials
Topic: Hardening hMailServer - The ongoing saga!
Replies: 48
Views: 2441

Re: Hardening hMailServer - The ongoing saga!

the only other machine I have spare is a Acer Aspire 5552 with an AMD Athlon II Did you drag that thing out of a time capsule or something? Those antiques might be worth something today if you throw a couple of kroner inside the case. LOL I think my ProTools mixing station in 2000 was on an Athlon ...
by SorenR
2019-05-21 14:36
Forum: User-submitted tutorials
Topic: Hardening hMailServer - The ongoing saga!
Replies: 48
Views: 2441

Re: Hardening hMailServer - The ongoing saga!

' Disconnect all others connecting to port 25. Call idsAddIP(oClient.IPAddress, oClient.Port) Result.Value = 1 Call AutoBan(oClient.IPAddress, "GeoIP - " & oClient.IpAddress, 7, "d") EventLog.Write(strPort & " Connection REJECTED" & Chr(34) & vbTab & oClient.IPAddress & vbTab & Chr(34) & oGeoip("co...
by SorenR
2019-05-21 11:49
Forum: Scripting
Topic: Mail Header Received from Unknown via GMAIL
Replies: 9
Views: 241

Re: Mail Header Received from Unknown via GMAIL

Mattg, Thanks so much for your thoughts. I really appreciate your feedback. But again, I think you are missing the point... Gmail detects the actual ISP IP Number that the email sender is using beside the server IP where the HMailServer is running. If Gmail detects the IP having NO PTR Record then ...
by SorenR
2019-05-18 00:11
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 753

Re: Delete noreply still showing in queue

oMessages.DeleteByDBID is not an option until the message have arrived in the mailbox - after completing rule handling and the EventHandlers script. The alternative is to "do your stuff" and then send the email to a wastebasket or tag it with a header value and delete it by rule. I did a test at the...
by SorenR
2019-05-17 13:52
Forum: General discussions
Topic: Time to say good bye ...
Replies: 21
Views: 932

Re: Time to say good bye ...

If you wonder who Martin is and what he does for a living...

https://www.linkedin.com/in/martin-knafve-99187a2/
by SorenR
2019-05-14 23:28
Forum: Scripting
Topic: Can't delete message by calling function from ACCOUNT rule
Replies: 9
Views: 254

Re: Can't delete message by calling function from ACCOUNT rule

Been experimenting... Reading the DB Table hm_messages from the Account Rule (Run Function) and it shows that the ID of the message (oMessage.ID) do exist BUT (!) "messageaccountid" and "messagefolderid" are 0, so it appears the message is owned by "nobody" in folder "nowhere" and this is probably w...
by SorenR
2019-05-14 21:38
Forum: Scripting
Topic: Can't delete message by calling function from ACCOUNT rule
Replies: 9
Views: 254

Re: Can't delete message by calling function from ACCOUNT rule

ID is written in table long before message hits inbox. You should be able to find oMessage.ID already in OnDeliveryStart(). .eml file is in .\hMailServer\Data at this stage. hmm, my approach was: ... strLocalSender = oMessage.Recipients(0).Address '<--- account from which the function is called by ...