Search found 84 matches

by insomniac2k2
2017-10-30 02:19
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 197
Views: 52235

Re: RE: Re: Sub OnHELO(oClient) progress?

Thanks SorenR. I'm aware of why you implemented that workaround. I just wanted to be sure why such a workaround would be necessary. As this is something that should be rectified in the server build. Matt's post answered my question. I did not think about StartTLS. That makes perfect sense. If i get ...
by insomniac2k2
2017-10-29 19:56
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 197
Views: 52235

Re: Sub OnHELO(oClient) progress?

While testing some code that i just implemented for GreyWhitelisting, i ran into an interesting find. This issue is consistent and can be replicated on demand: Using SorenR's regex logic OnHELO I get a proper match from google and successfully call for a Greylist Whitelist addition. But the interest...
by insomniac2k2
2017-10-29 19:10
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

Up until this point, i have not been comfortable with including the source for this application, because the moment the source was available the "crypto" string which was static in the class, would be available for reverse engineering. (Ala, you have source, so you have everyone else's crypto key if...
by insomniac2k2
2017-10-28 23:37
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

That was actually quite easy to add! Attached is the latest version which now includes the ability to GreyWhitelist by domains via OnHELO. I used your regex logic to test. Seems to work fine. I also separated the purge function. It now needs to be called independently for each list (presently greywh...
by insomniac2k2
2017-10-28 19:13
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

I just started reading the thread. Your response saved me a ton of time!! Thank you. I'll give it a try soon. Ok, thanks for clarification. I'll do some reading, but if you read this, feel free to beat me to the answer. I'm running 5.6.5-B2367. I'm guessing that OnHelo a burned-in unsupported featur...
by insomniac2k2
2017-10-28 18:51
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

Ok, thanks for clarification. I'll do some reading, but if you read this, feel free to beat me to the answer. I'm running 5.6.5-B2367. I'm guessing that OnHelo a burned-in unsupported feature in my version? I know i've seen an OnHelo thread, so i will go take a look as well. I've already added the c...
by insomniac2k2
2017-10-28 17:53
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

I notice in your script that you are using OnHELO. As far as i understand, this is superseded by OnClientConnect, correct?

I want to give the greywhitelist a go but just wanted to verify before i start testing.
by insomniac2k2
2017-10-28 17:17
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

I wont be using it either, i just wanted to see how easy it would be to add it as an interop function. Needless to say, it would be pretty easy to add anything to this if you were motivated. I also think that its very important to scan all emails. Especially from my friends :) I still get viruses fr...
by insomniac2k2
2017-10-16 04:47
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

Thanks. I was just coming back to correct it. Your's looks better anyway :) the FOR loops should be for >> next '-------------------------------------------------------- ' Auto Whitelist recipients from auth'd senders '-------------------------------------------------------- If oClient.Port = 25 The...
by insomniac2k2
2017-10-16 04:25
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

Hmm. The above syntax for the EventHandlers.vbs is broken. Maybe someone that is better with VBS can sort it out. I was assuming that whitelisting is called on Sub OnAcceptMessage(oClient, oMessage).

I could be wrong with that as well.
by insomniac2k2
2017-10-16 03:55
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

Sooo. Curiosity got the best of me. I decided to run with Rvdh's suggestion/comment on opening up the Proxy to multiple tasks. So while attempting to preserve the original purpose of the Proxy in the first place, I decided to add Auto-Whitelisting w/ auto purging as a POC. Not only that, but i decid...
by insomniac2k2
2017-10-13 23:58
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

The exe, as well the ini that it reads can go anywhere. I only put them there for ease of use whilst calling the interop. I shared the exe and what it did to spawn the idea. And to gauge if anyone would have use for it. If you have use for it, ask for the source. If you don't, then don't. I disagree...
by insomniac2k2
2017-10-13 16:15
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

I cannot argue with the logic. All i can present is my perspective. Passwords in plain text are an open invite for brute force and dumb luck. In my experience, i find that most all breaches happen from poor admin decisions which lead to someone simply turning the key that they left in the front door...
by insomniac2k2
2017-10-13 03:07
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

Hmm. I dabbled a little. I was able to create a listener that would accept connections on a port and accept the "secret string". If the secret string is correct, then the listener will return the unencrypted password. So that works... Problem is that i am beating my head against the wall trying to c...
by insomniac2k2
2017-10-12 21:26
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

I dont think you will have any luck. I have made several attempts, and it didnt work (As expected). The only way i think this will work is if the VB script were to open a socket and receive a buffer value.
RvdH wrote:Thx, i will give it a go whenever i find some free time
by insomniac2k2
2017-10-12 19:18
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

I made a quick modification. If you would like to try it just for the auth call, syntax would look like this: "C:\Program Files (x86)\hMailServer\Bin\ProxyBan.exe" -secret=mySecret Don't forget that you still need to create your "secret" in the ini file and set your password to be encrypted (as in o...
by insomniac2k2
2017-10-12 18:54
Forum: General discussions
Topic: Route: Exchange Online
Replies: 10
Views: 2036

Re: Route: Exchange Online

Yep, as long as you have your own scripting that verifies SPF, then you would just reject the sender there. I was just giving you something to consider :) When sender matches route: Remote address When recipient matches route: Local Address I've set up a test route, above seems to do the trick...thi...
by insomniac2k2
2017-10-12 18:35
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

Thanks. For me, the purpose is singular. I needed to be able to ban without having a password in plain text. I also do not like the scripting dependencies on the front end of the server. e.g. script hangs, and thread locks. This is where the interop comes in for me 2 full. I am much more proficient ...
by insomniac2k2
2017-10-10 16:06
Forum: General discussions
Topic: Route: Exchange Online
Replies: 10
Views: 2036

Re: Route: Exchange Online

Im trying to wrap my head around what you are trying to accomplish, but i'm assuming that your replyto address is something else? I assume this because if the reply is the same domain that Microsoft hosts, the message will never leave their server regardless. If the reply address is something else, ...
by insomniac2k2
2017-10-09 22:21
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Re: Ban IP address on Hmail with Password proxy

I came to realize that hard coding just a 1 day ban will be a little too limited for most peoples standards. I added the ability to accept a day parameter as well. If nothing is passed, it will default to 1 day. vbs code would change to this: Set oShell = CreateObject("WScript.Shell") oShell.Run """...
by insomniac2k2
2017-10-09 06:50
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 8715

Ban IP address on Hmail with Password proxy

I know this has been done many times, in many different ways. One thing that I believe is always consistent, is that in order to do so, you must pass a plain text password. Attached is an executable that will allow you to avoid just that. I know this could cause some "Well if you are worried about p...
by insomniac2k2
2017-10-09 06:02
Forum: Scripting
Topic: Adding Autoban ip range To Firewall
Replies: 5
Views: 2484

Re: Adding Autoban ip range To Firewall

That will work. Just know that if anything in the log matches "invalid", that it will be a false positive. Thanks for sharing though. I'm sure that I will find it useful. Hello I actually just block 'invalid' on my server as its a very closed server and only around 10 computers login and not had a p...
by insomniac2k2
2017-10-08 17:38
Forum: Scripting
Topic: Adding Autoban ip range To Firewall
Replies: 5
Views: 2484

Re: Adding Autoban ip range To Firewall

I tried the above, but it does not yield the expected results . The only thing that does give expected results is the following: findstr /c:"Too many invalid logon attempts." "C:\Program Files (x86)\hMailServer\Logs\hmailserver_%date-time%.log" >> OUTPUT.txt /c: allows for literal (even with spaces)...
by insomniac2k2
2017-10-07 14:12
Forum: Scripting
Topic: Adding Autoban ip range To Firewall
Replies: 5
Views: 2484

Re: Adding Autoban ip range To Firewall

Thanks for sharing this. I just wanted to let you know that i did find that this script will give you false positive returns. I tested it against my logs and I actually returned an iP address of a trusted server that did not have anything in the line about invalid delivery attempts. The weird thing,...