Search found 2526 matches
- 2021-04-12 04:26
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
I just tried the city data for the first time and ran it on my IP. The supposed accuracy_radius is 1 meter for my IP but the latitude/longitude coordinates were off by several blocks. Still the same town, though. Most online geoip locators put me in the next town over. I tried searching by latitude/...
- 2021-04-08 04:12
- Forum: Development & alpha discussions
- Topic: IMAP changes in 5.7?
- Replies: 3
- Views: 82
Re: IMAP changes in 5.7?
I don't think there have been any changes to IMAP at all in 5.7. Also, I'd suggest that its your client that's misbehaving. I use emclient too and once in a blue moon get a situation where an apparently "corrupted" email causes emclient to stop downloading mail, while 9folders mail client on my pho...
- 2021-04-08 04:07
- Forum: General discussions
- Topic: How to configure hMailServer to delete a message after it is retrived?
- Replies: 3
- Views: 90
Re: How to configure hMailServer to delete a message after it is retrived?
I would like to force hMailServer to automatically delete a message right after it is downloaded by the receiver. I think running a handler script that looks at flags could do what you want. However, right after would mean as soon as the script runs looking for seen messages, run from task scheduler.
- 2021-04-08 03:30
- Forum: Development & alpha discussions
- Topic: IMAP changes in 5.7?
- Replies: 3
- Views: 82
Re: IMAP changes in 5.7?
I don't think there have been any changes to IMAP at all in 5.7. Also, I'd suggest that its your client that's misbehaving. I use emclient too and once in a blue moon get a situation where an apparently "corrupted" email causes emclient to stop downloading mail, while 9folders mail client on my phon...
- 2021-04-07 13:19
- Forum: General discussions
- Topic: Fix Local Connect Failed Issue
- Replies: 55
- Views: 961
Re: Fix Local Connect Failed Issue
There are a lot of restrictions to what a .tk domain can be used for and the tld do not have the best reputation on the 'net. SECTION IV 13.A.ii The powering of such transmitting equipment (including but not limited to switches, routers, telephones, 2 cans with a string, smoke signal fires, war dru...
- 2021-04-07 13:09
- Forum: General discussions
- Topic: Fix Local Connect Failed Issue
- Replies: 55
- Views: 961
Re: Fix Local Connect Failed Issue
seems up and running now.. 61.2.140.123 Port Number State Service Name Service Product 25 open smtp 110 open pop3 hMailServer pop3d 143 open imap hMailServer imapd 465 open smtp 587 open smtp 993 open pop3 hMailServer pop3d are you using any other vpn or IP tunneling software that "moves" your comp...
- 2021-04-07 02:51
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
Here's my fixed up powershell version.
* Added the lightning speed import
* Deleted create scheduled task
* Added colorful email notifications
https://github.com/palinkas-jo-reggelt/GeoLite2SQL
* Added the lightning speed import
* Deleted create scheduled task
* Added colorful email notifications
https://github.com/palinkas-jo-reggelt/GeoLite2SQL
- 2021-04-06 19:34
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
Mysqlimport is NOT very informative. Do your SQL IMPORT in a SQL command windows to debug.. :roll: From phpmyadmin after deleting the first row and inserting same row from csv: INSERT INTO geocountry ( network_start_integer, network_last_integer, geoname_id, registered_country_geoname_id, represent...
- 2021-04-06 19:15
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
Everywyere I have searched on the Interweb I find DBA's preferring JOIN over complicated queries... Comparing 0.004 seconds to 0.009 seconds will only matter if do millions of queries per minute. Notice how I defined the primary keys. It needs to be this way if you want to import and "replace" and ...
- 2021-04-06 18:24
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
I found a few bugs last night, still working on getting rid of the warnings but they do not seem to interfere... Did you find the source of the warnings? How to make mysqlimport more verbose? I'm guessing it has something to do with empty fields? 16777216,16777471,2077456,2077456,,0,0 = 16777216,16...
- 2021-04-06 18:17
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
Untested on your tables: SELECT * FROM ( SELECT * FROM geocountry WHERE INET_ATON('1.2.3.4') <= network_last_integer LIMIT 1 ) INNER JOIN geolocation ON geocountry.geoname_id = geolocation.geoname_id WHERE geocountry.network_start_integer <= INET_ATON('1.2.3.4'); Also, I forgot. Making column netwo...
- 2021-04-06 14:12
- Forum: General discussions
- Topic: Fix Local Connect Failed Issue
- Replies: 55
- Views: 961
- 2021-04-05 21:06
- Forum: General discussions
- Topic: Fix Local Connect Failed Issue
- Replies: 55
- Views: 961
- 2021-04-05 13:18
- Forum: General discussions
- Topic: Fix Local Connect Failed Issue
- Replies: 55
- Views: 961
Re: Fix Local Connect Failed Issue
Maybe you should check your router for port forwarding.
- 2021-04-04 02:07
- Forum: General discussions
- Topic: Fix Local Connect Failed Issue
- Replies: 55
- Views: 961
- 2021-04-03 23:43
- Forum: General discussions
- Topic: Fix Local Connect Failed Issue
- Replies: 55
- Views: 961
Re: Fix Local Connect Failed Issue
Hmailserver service is not running. He said it was running and posted a screen grab from windows services. I know what he said but the evidence says different. Either it isn't running or he isn't looking at the same box - both contrary to what has been claimed. [Entered by mobile. Excuse my spellin...
- 2021-04-03 23:31
- Forum: General discussions
- Topic: Fix Local Connect Failed Issue
- Replies: 55
- Views: 961
Re: Fix Local Connect Failed Issue
Hmailserver service is not running. He said it was running and posted a screen grab from windows services. I think its a different machine altogether. How? I have no idea. is all i got https://cdn.discordapp.com/attachments/822328745250652221/827964972083838996/unknown.png You have to run the scrip...
- 2021-04-03 18:30
- Forum: General discussions
- Topic: Fix Local Connect Failed Issue
- Replies: 55
- Views: 961
Re: Fix Local Connect Failed Issue
Run this and post the results.
https://hmailserver.com/forum/viewtopic ... 20&t=30914
If hmailserver is running, but no ports are listening, then those ports must have been removed from settings > advanced > tcpip ports
- 2021-04-03 14:47
- Forum: General discussions
- Topic: Can I use the same certificate for HTTPS and TLS?
- Replies: 2
- Views: 106
Re: Can I use the same certificate for HTTPS and TLS?
I planning to set up a web interface to my hMailServer at mail.mydomain.com, and access it trough HTTPS. I'll use win-acme to get the SSL certificate (through Let's Encrypt). My hMailServer is also setup for the same domain, mail.mydomain.com. Can I import the same certificate into hMailServer so i...
- 2021-04-03 14:37
- Forum: General discussions
- Topic: Fix Local Connect Failed Issue
- Replies: 55
- Views: 961
- 2021-03-29 12:14
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
Untested on your tables: SELECT * FROM ( SELECT * FROM geocountry WHERE INET_ATON('1.2.3.4') <= network_last_integer LIMIT 1 ) INNER JOIN geolocation ON geocountry.geoname_id = geolocation.geoname_id WHERE geocountry.network_start_integer <= INET_ATON('1.2.3.4'); Also, I forgot. Making column netwo...
- 2021-03-29 07:31
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
All Files are being created with the "network","geoname_id" EXCEPT "CSV-DB.csv" is created without the headers. This is clearly something on your end. Try this powershell. Put the script in some place that's NOT where you're running geolite2sql: $DBcsv = "$PSScriptRoot\Script-Created-Files\CSV-DB.c...
- 2021-03-29 02:43
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
SELECT * FROM geolocation INNER JOIN geocountry ON geocountry.geoname_id = geolocation.geoname_id WHERE network_start_integer <= INET_ATON('1.2.3.4') AND INET_ATON('1.2.3.4') <= network_last_integer; One thing I did find that could be useful to you was that dividing the query into a subquery with a...
- 2021-03-29 02:29
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
15 seconds Old school at its best :mrgreen: There's no school like the old school... :mrgreen: I don't know why I didn't think of that before: mysqlimport. I'm still a noob. New School. :oops: I'm going to have to rethink the whole thing now. 1:21:55,55 to 1:25:06,59 Don't you sleep?
- 2021-03-28 23:26
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
@Palinka ... How different is this from what your code does? Mine only does country I gave up on the PowerShell scripting... :wink: :oops: powershell gets you smiles from all the ladies, and it makes you smell nice. Needs the MaxMind converter: https://github.com/maxmind/geoip2-csv-converter/releas...
- 2021-03-28 23:07
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
All Files are being created with the "network","geoname_id" EXCEPT "CSV-DB.csv" is created without the headers. This is clearly something on your end. Try this powershell. Put the script in some place that's NOT where you're running geolite2sql: $DBcsv = "$PSScriptRoot\Script-Created-Files\CSV-DB.c...
- 2021-03-28 13:49
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
Sorry to bug you but still problem is here Can you confirm these files exist with the headers intact? Add-Content -Path $MMcsv -Value '"network","geoname_id"' Add-Content -Path $DBcsv -Value '"network","geoname_id"' Add-Content -Path $ToAddIPv4 -Value '"network","geoname_id"' Add-Content -Path $ToD...
- 2021-03-27 18:56
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
Try Add-Content. I just tried it (simple add content test) and it worked fine. Creates the file and adds the content. Add-Content -Path $MMcsv -Value '"network","geoname_id"' Add-Content -Path $DBcsv -Value '"network","geoname_id"' Add-Content -Path $ToAddIPv4 -Value '"network","geoname_id"' Add-Con...
- 2021-03-27 00:54
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
STILL SOME ISSUE in COMPARING AND ADDING TO DB 17:03:39 : 00:00 : Comparing updated MaxMind data to database Compare-Object : Cannot bind argument to parameter 'ReferenceObject' because it is null. At C:\Scripts\GeoIP\GeoLite2SQL.ps1:216 char:35 + Compare-Object -ReferenceObject $(Get-Content $DBcs...
- 2021-03-26 13:30
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
No. The issue is later the script checks to make sure the files were actually deleted. They were deleted, but then we re- created them so of course the test failed. :oops: Look down a few lines to the next block of code. All the new-item lines should go AFTER that next block ("Check to make sure fil...
- 2021-03-26 12:29
- Forum: Scripting
- Topic: MaxMinds GeoIP for local MySQL
- Replies: 66
- Views: 16245
Re: MaxMinds GeoIP for local MySQL
RAN INTO A PROBLEM geo_ip table is created but it is blank with no values Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 26/03/2021 01:05 PM 0 DebugLog.log 13:05:08 : 00:00 : GeoIP Update Start 13:05:08 : 00:00 : Deleting old files 13:05:08 : 00:00 : Downloading MaxMind data 1...
- 2021-03-25 17:25
- Forum: Scripting
- Topic: Firewall Ban
- Replies: 165
- Views: 77207
Re: Firewall Ban
I have switched to a different GEO site... Requires a KEY but you can get a free one. MaxMind local db. https://hmailserver.com/forum/viewtopic.php?f=9&t=34496 :mrgreen: Ah, yes ... Forgot about that one. :wink: Weekly updates from MaxMind. Yesterday's update: 3,974 Records removed from database 5,...
- 2021-03-25 14:49
- Forum: Scripting
- Topic: Firewall Ban
- Replies: 165
- Views: 77207
Re: Firewall Ban
- 2021-03-24 14:09
- Forum: General discussions
- Topic: Rules create copy and send, sending slow
- Replies: 5
- Views: 200
Re: Rules create copy and send, sending slow
You do know that SMS was never intended to be real-time. Actually my old NEC TR5E1000 - 7A phone from 1986 could do DMS ... or NMT-text as it also was called. That was really cool but it could sometimes take up to 10 minutes to come through. Messages were short spaced so we had to move on from 1337...
- 2021-03-24 14:01
- Forum: General discussions
- Topic: Rules create copy and send, sending slow
- Replies: 5
- Views: 200
Re: Rules create copy and send, sending slow
Hi all, I have created a rule to create copy forwarding based on the number of retransmissions. After each delivery, the subject of the email changes and then the e-mail is received by the SMS gateway, which sends the SMS to the set number in the subject of the email. There are about 30 such rules....
- 2021-03-24 13:32
- Forum: Scripting
- Topic: Firewall Ban
- Replies: 165
- Views: 77207
Re: Firewall Ban
Getting an Error "ERROR" 8396 "2021-03-22 09:36:01.591" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A000D - Description: Type mismatch: 'oGeoip' - Line: 138 Column: 3 - Code: (null)" Probably because you are trying to decode an empty or invalid response in oXML.responseText ...
- 2021-03-18 13:53
- Forum: Off-topic discussions
- Topic: bruteforce new joker in town
- Replies: 4
- Views: 233
Re: bruteforce new joker in town
They look extremely firewall-ban-able to me. Very ripe.
- 2021-03-18 13:50
- Forum: Off-topic discussions
- Topic: Introduction For Newbie
- Replies: 2
- Views: 250
- 2021-03-18 13:49
- Forum: General discussions
- Topic: SMTP Transaction Delay Wait(20) DDOS
- Replies: 3
- Views: 224
- 2021-03-17 13:36
- Forum: General discussions
- Topic: Auto-ban ALWAYS has 12-19 auto-ban IP ranges
- Replies: 13
- Views: 488
Re: Auto-ban ALWAYS has 12-19 auto-ban IP ranges
3. dont just add the 45.142.120.0 - 45.142.120.255 in the IPranges.. ADD them in your firewall ( so you dont even have them in your logs ) you can do it manually if you want it done automagically.. you should look at Palinkas firewall ban in the forum https://www.hmailserver.com/forum/viewtopic.php...
- 2021-03-17 13:18
- Forum: User contributed hMailServer 5 scripts
- Topic: Check incoming connections with AbuseIPDB
- Replies: 96
- Views: 55925
Re: Check incoming connections with AbuseIPDB
Hey, I was just trying this out, got this message returned: {"detail":"The APIv1 check endpoint has sunset. Please migrate to the APIv2 version of this endpoint. You will need a new API key.","links":{"related":"https:\/\/docs.abuseipdb.com\/#check-endpoint"},"status":404} Any update to the origina...
- 2021-03-16 15:59
- Forum: Scripting
- Topic: Modifying the Body before Forwarding
- Replies: 30
- Views: 984
Re: Modifying the Body before Forwarding
One problem I found that even the finance@mydomain.com is getting the redacted mail :roll: Naturally, since it was edited before delivery. I guess one thing you could is set up an intermediate account. Create finance-temp@mydomain.com. Then: Global Rule If: from contains bankmail@bank.com body cont...
- 2021-03-16 15:23
- Forum: Scripting
- Topic: Modifying the Body before Forwarding
- Replies: 30
- Views: 984
Re: Modifying the Body before Forwarding
I think that can all be done by rule. If from finance Action: 1) Forward unredacted to appropriate person 2) Run function to redact 3) Forward to distribution list Is this Possible / OR Viable sorry for little confusion in my previous post. mails come from bankmail@bank.com to finance@mydomain.com ...
- 2021-03-16 15:20
- Forum: General discussions
- Topic: Stop bounce messages from exchange
- Replies: 14
- Views: 479
- 2021-03-16 14:12
- Forum: Scripting
- Topic: Modifying the Body before Forwarding
- Replies: 30
- Views: 984
Re: Modifying the Body before Forwarding
I think that can all be done by rule.
If from finance
Action:
1) Forward unredacted to appropriate person
2) Run function to redact
3) Forward to distribution list
If from finance
Action:
1) Forward unredacted to appropriate person
2) Run function to redact
3) Forward to distribution list
- 2021-03-16 13:17
- Forum: General discussions
- Topic: Trouble Creating New SQL Database
- Replies: 15
- Views: 539
Re: Trouble Creating New SQL Database
Why are you using MS SQL Express? Would you be open to using MySQL Database which is a commonly used Database Server for hMailServer. There are freeware versions of MySQL Database Server. With it you can install MySQL either while installing hMailServer 5.6.7-B2425 or install it before installing h...
- 2021-03-15 14:10
- Forum: Scripting
- Topic: Sequence of hmailserver checks
- Replies: 9
- Views: 329
Re: Sequence of hmailserver checks
That works fine but in my "onacceptmessage" script, where I check some words in the subject of the messages for rejection , this one seems not to appear in my script but nevertheless it is delivered to the receipiant. Surprisingly, however, it is rejected form the script, if I forward it to the sam...
- 2021-03-14 19:44
- Forum: General discussions
- Topic: Trouble Creating New SQL Database
- Replies: 15
- Views: 539
Re: Trouble Creating New SQL Database
The error message that I get, when I attempt to have the new database created, is: "CREATE DATABASE permission denied in database 'master'" .......... I'm not sure if I took a wrong turn here: https://dba.stackexchange.com/q/78388 Answer from your link: The user must be a member of dbcreator server...
- 2021-03-13 15:35
- Forum: Scripting
- Topic: Modifying the Body before Forwarding
- Replies: 30
- Views: 984
Re: Modifying the Body before Forwarding
You can use an account rule.
Or if it's a long list of users you could put their addresses in an array and check against the array.
Or if it's a long list of users you could put their addresses in an array and check against the array.
- 2021-03-12 12:52
- Forum: Scripting
- Topic: Modifying the Body before Forwarding
- Replies: 30
- Views: 984
Re: Modifying the Body before Forwarding
Try this instead. You can reuse the function for other things. Function oLookup(strRegEx, strMatch, bGlobal) If strRegEx = "" Then strRegEx = StrReverse(strMatch) With CreateObject("VBScript.RegExp") .Pattern = strRegEx .Global = bGlobal .MultiLine = True .IgnoreCase = True Set oLookup = .Execute(st...
- 2021-03-09 19:49
- Forum: General discussions
- Topic: Scamalytics? Anyone using?
- Replies: 7
- Views: 410
- 2021-03-06 16:48
- Forum: Scripting
- Topic: Clean up X-Spam-Report
- Replies: 75
- Views: 3645
- 2021-03-02 14:02
- Forum: General discussions
- Topic: Error 530 when using distribution list
- Replies: 20
- Views: 756
Re: Error 530 when using distribution list
This could be it. I'm not 100% certain but it can't hurt to try. Default domain allows login with "user" instead of "user@domain.tld". You should turn that off.
Settings > Advanced > delete entry from "Default Domain".
- 2021-03-02 13:25
- Forum: General discussions
- Topic: Error 530 when using distribution list
- Replies: 20
- Views: 756
Re: Error 530 when using distribution list
Run this and post the results: https://hmailserver.com/forum/viewtopic ... 20&t=30914
- 2021-03-01 23:00
- Forum: General discussions
- Topic: Feed Errors
- Replies: 13
- Views: 492
Re: Feed Errors
If only we knew a few people that were knowledgeable in fighting spam...






- 2021-03-01 19:56
- Forum: Scripting
- Topic: Clean up X-Spam-Report
- Replies: 75
- Views: 3645
Re: Clean up X-Spam-Report
When I say 'not every building has a cellar' - I mean MOST buildings do not have cellars. (I guess this is going to lead to a straw poll for those that dont agree). I would disagree, but it seems once again to be a language barrier. From wackypedia: In British English, the word basement is used for...
- 2021-03-01 17:14
- Forum: Scripting
- Topic: Clean up X-Spam-Report
- Replies: 75
- Views: 3645
Re: Clean up X-Spam-Report
Not every building has a cellar. Only in Floriduh... When I say 'not every building has a cellar' - I mean MOST buildings do not have cellars. (I guess this is going to lead to a straw poll for those that dont agree). I would disagree, but it seems once again to be a language barrier. From wackyped...
- 2021-03-01 16:23
- Forum: Scripting
- Topic: Clean up X-Spam-Report
- Replies: 75
- Views: 3645
Re: Clean up X-Spam-Report
Not every building has a cellar. Only in Floriduh... The usual 'ground' floor is usually at ground level (as in an opening from outside) - every building has one of these. Windows are openings from outside as well. 8) The next building I build (hopefully a medical building in Queens - still waiting...
- 2021-03-01 15:16
- Forum: Scripting
- Topic: Clean up X-Spam-Report
- Replies: 75
- Views: 3645
Re: Clean up X-Spam-Report
This issue dates back to the early settlers... Apparently the lexicographer Noah Webster was a dyslexic. ;-) https://www.boredpanda.com/british-american-english-differences-language/?utm_source=google&utm_medium=organic&utm_campaign=organic Is the ground floor/first floor thing a european thing? I'...
- 2021-03-01 14:04
- Forum: Scripting
- Topic: Clean up X-Spam-Report
- Replies: 75
- Views: 3645
Re: Clean up X-Spam-Report
You got the same extra linebreaks i have....i don't like that :) I think it must have something to do with the way hmailserver wraps the lines. Hmailserver seems to remove the original line breaks from spamassassin, which wrecks the formatting. Really? :mrgreen: You are a freaking genius :lol: My m...