Search found 1921 matches

by palinka
2020-03-20 02:39
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

SUCCESS!! Disconnect.exe works! Now I have to create a switch to turn it on and off. Earlier you mentioned that everyone is using 127.0.0.1... If you disconnect 127.0.0.1 how many users do you interrupt? I don't know. I only turned it on for all users to see if it would work, then turned it off rig...
by palinka
2020-03-20 00:32
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

SUCCESS!! Disconnect.exe works! Now I have to create a switch to turn it on and off.
by palinka
2020-03-20 00:17
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

Is there any other way to disable access to the account without actually disabling the account? Disabling the account causes 550 rejections (I think).

What about RvdH's disconnect.exe? I'm going to try it.
by palinka
2020-03-19 22:54
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

LOL misunderstood.

Don't do this for me. I'm not going back to 32 bit. :(
by palinka
2020-03-19 22:09
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

:cry: didn't work..

There must be some other way of intercepting logon.
by palinka
2020-03-19 19:27
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

I set up test scripts for both the hmailserver and the gammu side of things. Got everything working. Creating & deleting autobans, no sweat. Then I put it into actual use (limited to test domains). Whooooopsss… big problem on my setup because 99.9% of traffic is on localhost. Therefore autobans don...
by palinka
2020-03-19 19:14
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

I set up test scripts for both the hmailserver and the gammu side of things. Got everything working. Creating & deleting autobans, no sweat. Then I put it into actual use (limited to test domains). Whooooopsss… big problem on my setup because 99.9% of traffic is on localhost. Therefore autobans don'...
by palinka
2020-03-18 23:39
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

Anyways... OnClientConnect is executed before OnClientLogon so you can capture it there... 8) Nope. "DEBUG" 3836 "2020-03-18 17:35:45.652" "Pre-creating session 7107" "TCPIP" 3836 "2020-03-18 17:35:45.652" "TCP - 127.0.0.1 connected to 127.0.0.1:143." "DEBUG" 3836 "2020-03-18 17:35:45.652" "Executi...
by palinka
2020-03-18 20:55
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

Now we're on the same page. That's definitely a good sign. :mrgreen:

Why one IP limitation? Logon goes to user.

Also, Return.Value = 1 works for imap? I just assumed it only works for smtp. Will it work within OnClientLogon?
by palinka
2020-03-18 20:22
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

LastLogonTime is updated during logon so an external check script can do the banning when the "window" closes. If I just leave my Outlook open it will re-login when checking for new mail. External script... So: IF lastlogon + n days < now THEN -> Autoban? Autoban what? You can't predict the IP used...
by palinka
2020-03-18 19:13
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

Sub OnClientLogon(oClient) ' ' Find Account ' Dim oApp : Set oApp = CreateObject("hMailServer.Application") Call oApp.Authenticate(ADMIN, PASSWORD) Dim a, LastLogonTime a = Split(oClient.UserName, "@") If (UBound(a) > 0) Then LastLogonTime = oApp.Domains.ItemByName(a(1)).Accounts.ItemByAddress(oCli...
by palinka
2020-03-18 18:19
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

Another question: Where do I put the script? Here is sequence of events: 1) check last logon time 2) if last logon + n days < now, then account is deemed inactive 3) autoban IP 4) send SMS unlock msg 5) receive SMS unlock response and remove autoban entry If I put the script in OnClientLogon, hasn't...
by palinka
2020-03-18 17:41
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

hm_accounts already has column accountlastlogontime. Good! I don't need to set up any new tables. What do you think is an appropriate amount of time since last logon before locking the account and forcing 2 factor renewal? A week? A month? How often do your client check for new mail and do you have...
by palinka
2020-03-18 17:38
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

Also, should any action be taken on failed logon? I'm not really sure how to handle that. There could be many via password guessers.
by palinka
2020-03-18 17:32
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

hm_accounts already has column accountlastlogontime. Good! I don't need to set up any new tables.

What do you think is an appropriate amount of time since last logon before locking the account and forcing 2 factor renewal? A week? A month?
by palinka
2020-03-18 16:43
Forum: General discussions
Topic: Send mail from Security Camera to gmail via hMailServer
Replies: 11
Views: 3113

Re: Send mail from Security Camera to gmail via hMailServer

Do routes use SMTPD or C? I think the obvious thing to do is check your spam folder on gmail. IF your message was actually sent (and its not yet clear that's the case, although the log appears to have sent it), then gmail is doing something with it. Likely they're marking it spam. Also, its possible...
by palinka
2020-03-18 16:04
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

Not looked for it yet ... :oops: Here you go. Everything ever written about hMailServer SASL: https://www.google.com/search?q=sasl&sa=Search&cof=S%3Ahttps%3A%2F%2Fwww.hmailserver.com%3BAH%3Acenter%3BLH%3A100%3BL%3Ahttps%3A%2F%2Fwww.hmailserver.com%2Fimages%2Ftoppic4.gif%3BLW%3A222%3BAWFID%3Aa1d4d0d...
by palinka
2020-03-18 15:59
Forum: General discussions
Topic: Weird Error - Permission Denied?
Replies: 2
Views: 1109

Re: Weird Error - Permission Denied?

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 :? You're right, of course. Only trouble is this was the first and only time its happened and I have absolutely no idea how to reproduce it. :cry:
by palinka
2020-03-18 14:34
Forum: General discussions
Topic: Weird Error - Permission Denied?
Replies: 2
Views: 1109

Weird Error - Permission Denied?

I have this strange error I've never seen before. "ERROR" 12072 "2020-03-18 07:02:20.282" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A0046 - Description: Permission denied - Line: 1 Column: 0 - Code: (null)" There's only one occurrance of it in the error log. Any idea what t...
by palinka
2020-03-18 14:18
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

By the way, have you found the hMailServer documentation for SASL yet? :lol:
by palinka
2020-03-18 13:41
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

https://developers.google.com/identity/sign-in/web/sign-in You may notice this page mention "OAuth 2.0" ... https://www.hmailserver.com/forum/viewtopic.php?p=196592#p196592 Eh... I'm still doing it with SMS. I think the benefits are clear. Plus I'm already paying for it. Plus I know I can do it. :m...
by palinka
2020-03-18 02:03
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

SorenR wrote:
2020-03-18 01:17
Google TFA is free, it only uses data so it will work on WiFi if no service is available.
Use going outside for service as an excuse to go smoke. :mrgreen:
by palinka
2020-03-18 01:09
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

How do you plan on changing password in the client software? How does anyone change the password? Most people don't have problems with that. Only 2 of my users are seasoned citizens. I can walk them through it over the phone. Anyway, password change is only going to be enforced on suspicion of comp...
by palinka
2020-03-17 23:15
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

No need to mess with password changes - it's going to FU IMAP :!: I don't understand this. Why would IMAP be any different than SMTP with regard to password changes? They share logon credentials. The token idea is great but seems a little invasive (expiring the token requires renewed validation con...
by palinka
2020-03-17 20:35
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

Also, I was just thinking. Maybe I use one the "limit outgoing messages" scripts floating around here in combination with account deactivation and force password change. Which is more logical/safe/useful? The one that tries to catch password guessers before they guess or the one that deactivates/for...
by palinka
2020-03-17 20:26
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Re: Corona Project: Day 1: Two-Factor Authentication

https://github.com/duosecurity/duo_classicasp So... Perhaps use it to authenticate your IP address combined with Username ? ^^^^ THIS ^^^^ Brilliant! As usual. Thank you again, very much. This is going to take a little thinking (but not too much, thankfully :mrgreen: ) 1) record IP at logon 2) chec...
by palinka
2020-03-17 17:44
Forum: General discussions
Topic: my mail get rejected by yahoo
Replies: 2
Views: 1410

Re: my mail get rejected by yahoo

You'd have to ask yahoo.

You're doing something that causes yahoo to believe you're a spammer. Have you previously sent spam to yahoo?

Check your blacklist rating here: http://multirbl.valli.org/
by palinka
2020-03-17 16:36
Forum: Scripting
Topic: Corona Project: Day 1: Two-Factor Authentication
Replies: 46
Views: 9207

Corona Project: Day 1: Two-Factor Authentication

I have an idea to create a 2 factor authentication using SMS. I have a working SMS gateway (Gammu). I think I can script whatever I need, but I'm having trouble coming up with a solid sequence of events. Scenario 1: 1) User fails logon 2) disable account 3) send SMS to user (user's mobile number & e...
by palinka
2020-03-17 13:54
Forum: Off-topic discussions
Topic: Corona Virus
Replies: 146
Views: 30758

Re: Corona Virus

It's mainly leisure, hospitality and event businesses that are suffering big time. And airlines. Worse than 9/11, supposedly. My brother is worried about getting laid off. He works for some kind of airline maintenance support company. He said they already laid off 45 executives. They're not firing ...
by palinka
2020-03-16 23:29
Forum: Off-topic discussions
Topic: Corona Virus
Replies: 146
Views: 30758

Re: Corona Virus

Holy crap, there's no immunity. You can get it over and over until it finally kills you. https://jamanetwork.com/journals/jama/fullarticle/2762452 Hold your horses... They don't know that for sure, experts say it is unlikely to become re-infected once the virus is pathologically gone. Problem is th...
by palinka
2020-03-16 22:20
Forum: Off-topic discussions
Topic: Corona Virus
Replies: 146
Views: 30758

Re: Corona Virus

Holy crap, there's no immunity. You can get it over and over until it finally kills you.

https://jamanetwork.com/journals/jama/f ... le/2762452
by palinka
2020-03-16 13:39
Forum: Off-topic discussions
Topic: Corona Virus
Replies: 146
Views: 30758

Re: Corona Virus

The real question here is will overall spam volume increase because spammers are quarantined with nothing else to do except come up with new and novel ways to spam? Or will volume decrease due to companies closing down and shutting off avenues of bot infection? :mrgreen:
by palinka
2020-03-16 13:24
Forum: Off-topic discussions
Topic: Corona Virus
Replies: 146
Views: 30758

Re: Corona Virus

We have a saying in Australia It goes along the lines of 'Only in America...' I can see how you think that this is OK, but that's not how we would do it. Whatever I think about the situation has absolutely no impact on what happens in reality. That's why you plan for the worst and hope for the best...
by palinka
2020-03-16 02:40
Forum: Off-topic discussions
Topic: Corona Virus
Replies: 146
Views: 30758

Re: Corona Virus

mattg wrote:
2020-03-16 01:40
(Meals-on-wheels is a system where the elderly and disaabled get a hot lunch delivered to their door every day for free if they register)
My grandfather used to volunteer to deliver. He was in his 80s and older than every last one of his delivery recipients. :mrgreen:
by palinka
2020-03-16 02:37
Forum: Off-topic discussions
Topic: Corona Virus
Replies: 146
Views: 30758

Re: Corona Virus

were cleaned out of bread, pasta, rice, water and most cheese In the U.K. it's toilet rolls. For some reason the (idiotic) public think an apocalypse is coming and started panic buying and emptied the shelf of toilet rolls!! Ffs! The world has gone mad. What do they think is going to happen? The go...
by palinka
2020-03-16 00:46
Forum: Off-topic discussions
Topic: Corona Virus
Replies: 146
Views: 30758

Re: Corona Virus

SorenR wrote:
2020-03-16 00:04
You're late in the game bro...
I know, right? That's why the shelves are bare. I got a late start.
by palinka
2020-03-15 23:33
Forum: Off-topic discussions
Topic: Corona Virus
Replies: 146
Views: 30758

Re: Corona Virus

Shit is getting real. Went shopping at 4 different stores today. All of them except one (a specialty food store - not a supermarket) were cleaned out of bread, pasta, rice, water and most cheese. I managed to get what I needed, but it was an effort. I'm good to hunker down for an entire month if nec...
by palinka
2020-03-14 14:52
Forum: General discussions
Topic: startbackup.vbs via task scheduler
Replies: 14
Views: 3096

Re: startbackup.vbs via task scheduler

RvdH wrote:
2020-03-14 13:22
In that case i wouldn't allow any other ('normal') users on the server at all...
Yeah, that's like when I leave my computer unlocked around my 5 year old.

HELPING DADDY!!!!

Not a great idea.
by palinka
2020-03-13 16:18
Forum: Scripting
Topic: Code Sample - AutoBan for CIDR Notation 10.0.0.0/15
Replies: 3
Views: 1461

Re: Code Sample - AutoBan for CIDR Notation 10.0.0.0/15

Awesome. Going to research that.
by palinka
2020-03-13 14:54
Forum: Scripting
Topic: Code Sample - AutoBan for CIDR Notation 10.0.0.0/15
Replies: 3
Views: 1461

Re: Code Sample - AutoBan for CIDR Notation 10.0.0.0/15

Cool!

I'm trying to figure out the use case. What is triggering this? Or is it manual input? :?:
by palinka
2020-03-12 18:24
Forum: General discussions
Topic: Suddenly stopped receiving emails in any of the account.
Replies: 13
Views: 3874

Re: Suddenly stopped receiving emails in any of the account.

Could MSSQL be screwy?

Code: Select all

Microsoft OLE DB Provider for SQL Server
Invalid object name 'hm_messages'."
Might want to check if hm_messages exists.
by palinka
2020-03-12 12:33
Forum: Scripting
Topic: Firewall Ban
Replies: 148
Views: 39432

Re: Firewall Ban

Hit another milestone: single digit bans. :mrgreen: Screenshot_20200312-062447_Brave.jpg Oh, they'll be back with a vengeance soon enough. They come in waves that (I think) coincide with new bot viruses. But the overall trend is still downward. One thing I've noticed, since I record the helo, is pat...
by palinka
2020-03-12 12:14
Forum: General discussions
Topic: PHPWebAdmin Class 'COM' not found in initialize.php:16
Replies: 7
Views: 3327

Re: PHPWebAdmin Class 'COM' not found in initialize.php:16

Thank you!!! C:\php7>php -m PHP Warning: PHP Startup: Unable to load dynamic library 'php_com_dotnet.dll' (tried: C:\php\ext\php_com_dotnet.dll (The specified module could not be found.), C:\php\ext\php_php_com_dotnet.dll.dll (The specified module could not be found.)) in Unknown on line 0 so I cha...
by palinka
2020-03-12 03:16
Forum: General discussions
Topic: Setting up rDNS
Replies: 10
Views: 3956

Re: Setting up rDNS

I created a website from a spare domain and setup the DNS like normal (e.g. mail, MX, spf, dkim, dmarc etc). Using your example, called it "yours.com". The MX record was "excelmail.yours.com", this is normally what i would do anyway. I created a new domain in hmailserver for "yours.com" with dkim e...
by palinka
2020-03-12 02:51
Forum: Scripting
Topic: Firewall Ban
Replies: 148
Views: 39432

Re: Firewall Ban

Fixed an annoying but minor bug. First connection to MySQL often failed with this error: 20/03/11 18:52:32.16 : ERROR : Unable to run query : SELECT ipaddress, id, DATE(timestamp) AS dateip FROM hm_fwban WHERE flag=5 Exception calling "Open" with "0" argument(s): "Authentication to host '127.0.0.1' ...
by palinka
2020-03-12 00:05
Forum: User contributed hMailServer 5 scripts
Topic: Distribution list enhancement
Replies: 120
Views: 91673

Re: Distribution list enhancement

Well... I just got plenty time on my hands :roll: https://www.bloomberg.com/news/articles/2020-03-11/denmark-shuts-down-schools-sends-home-non-critical-staff There are rumors of the same thing here. I hope they're just rumors. One thing I've noticed is that people are using corona-chan as an excuse...
by palinka
2020-03-11 13:56
Forum: General discussions
Topic: forwarding messages, only few forwarded
Replies: 15
Views: 3799

Re: forwarding messages, only few forwarded

Virinum wrote:
2020-03-11 07:53
You should escape the dots. Dot means any character in regex. E.g. a@b\.com
Not absolutely necessary but a clearer expression.
What is the statistical likelihood that a false positive could be triggered by:

a@b<ANY_SINGLE_CHARACTER_OTHER_THAN_DOT>com

? :mrgreen:
by palinka
2020-03-11 13:51
Forum: General discussions
Topic: forwarding messages, only few forwarded
Replies: 15
Views: 3799

Re: forwarding messages, only few forwarded

[quote=jikom68425 post_id=218963 time=1583924537 custom header field: X-hMailServer-LoopCount < 1 tried X-hMailServer-LoopCount LESS THAN 1 too [/quote] Custom header field should be: X-hMailServer-LoopCount Select "less than" from drop down box of operators in the rule criteria dialogue box. Don't ...
by palinka
2020-03-10 23:30
Forum: User contributed hMailServer 5 scripts
Topic: Distribution list enhancement
Replies: 120
Views: 91673

Re: Distribution list enhancement

No - nothing better than my on error resume next fix.., it's worked pretty well for me since and I don't have anywhere near enough spare time to make a more elegant fix. In any case, its working fine as far as I can tell. :D Forked ! :mrgreen: I just invited you as a collaborator which I think mean...
by palinka
2020-03-10 22:01
Forum: User contributed hMailServer 5 scripts
Topic: Distribution list enhancement
Replies: 120
Views: 91673

Re: Distribution list enhancement

drsox wrote:
2020-03-10 20:48
No - nothing better than my on error resume next fix.., it's worked pretty well for me since and I don't have anywhere near enough spare time to make a more elegant fix.
In any case, its working fine as far as I can tell. :D
by palinka
2020-03-10 20:45
Forum: User contributed hMailServer 5 scripts
Topic: Distribution list enhancement
Replies: 120
Views: 91673

Re: Distribution list enhancement

I uploaded it to GitHub for future generations. https://github.com/palinkas-jo-reggelt/hMailServer-ListServer Just be aware that the original scripts without my modifications have a mailing list authentication / whitelisted sender bypass problem! See http://www.hmailserver.com/forum/viewtopic.php?p...
by palinka
2020-03-10 16:45
Forum: General discussions
Topic: forwarding messages, only few forwarded
Replies: 15
Views: 3799

Re: forwarding messages, only few forwarded

to palinka: thank for reply, but i must use or, because i have 5 mail addresses that i need catch headerloop i try, thanks, main problem is now, that no every message is catched by rule Use regex for the email addresses. It can handle OR while the rule can be set to AND. IF -> from -> regular expre...
by palinka
2020-03-10 14:48
Forum: General discussions
Topic: install mailwizz
Replies: 5
Views: 1446

Re: install mailwizz

You need to go to their website for that kind of help. That's way outside the scope of hmailserver.
by palinka
2020-03-10 12:38
Forum: General discussions
Topic: forwarding messages, only few forwarded
Replies: 15
Views: 3799

Re: forwarding messages, only few forwarded

to palinka: thank for reply, but i must use or, because i have 5 mail addresses that i need catch headerloop i try, thanks, main problem is now, that no every message is catched by rule Use regex for the email addresses. It can handle OR while the rule can be set to AND. IF -> from -> regular expre...
by palinka
2020-03-10 12:32
Forum: General discussions
Topic: install mailwizz
Replies: 5
Views: 1446

Re: install mailwizz

by palinka
2020-03-10 12:23
Forum: General discussions
Topic: install mailwizz
Replies: 5
Views: 1446

Re: install mailwizz

I just looked at their demo and they don't have any built in integration for hmailserver. But they have regular smtp settings so you can use hmailserver or any email server.

You don't need a tutorial for that. Just set it up like you would any mail client.
by palinka
2020-03-10 12:06
Forum: General discussions
Topic: forwarding messages, only few forwarded
Replies: 15
Views: 3799

Re: forwarding messages, only few forwarded

jikom68425 wrote:
2020-03-10 10:29
and always 4 times (in important@mydomain.com, delivered message is 4 times)
This issue can be fixed by adding this to your rule criteria (use AND):

Use custom header -> X-hMailServer-LoopCount LESS THAN 1
by palinka
2020-03-10 01:27
Forum: User contributed hMailServer 5 scripts
Topic: Distribution list enhancement
Replies: 120
Views: 91673

Re: Distribution list enhancement

The script and documentation download disappeared between now and my last post, so I uploaded it to GitHub for future generations. If it was still good after 11 years, chances are it will be good for the next 11. :mrgreen:

https://github.com/palinkas-jo-reggelt/ ... ListServer