3
Issue with IP Country control: my IP is in Italy, but starting from last saturday SmarterMail (8930) says that is Bulgaria...
Problem reported by Gabriele Maoret - SERSIS - Today at 9:23 AM
Not A Problem
Starting from last saturday (until Friday everything was working fine...) I have a problem with the IP country check: my IP ( 45.151.88.204 ) is in Italy, but SmarterMail (8930) says it is in Bulgaria...

This is what Smartermail says:



Ad this is the result if I query DomainTools:



Before you tell me to upgrade to a newer version of SmarterMail: I CAN'T because there are bugs (even in the latest versions) that block some MS Outlook MAPI users (already discussed many times and still not resolved...), so I can't upgrade, I'll stick to the 8930 because at the moment it's the version that gives the least problems...
Gabriele Maoret - Head of SysAdmins at SERSIS
Currently manages 6 SmarterMail installations (1 in the cloud for SERSIS which provides services to a few hundred third-party email domains + 5 on-premise for customers who prefer to have their mail server in-house)

18 Replies

Reply to Thread
0
Zach Sylvester Replied
Employee Post
Hi Gabriele,

Thank you for reaching out.

We utilize the MaxMind database, which you can explore through their demo here: MaxMind GeoIP Web Services Demo. Since you're using an older version of SmarterMail, it corresponds with an older version of the MaxMind database.

In their demo, the location appears correctly, suggesting that the issue may stem from the SmarterMail version you're currently running.

I hope this helps clarify the situation! Please let me know if you have any further questions.

Kind regards,
Zach Sylvester Software Developer SmarterTools Inc. www.smartertools.com
1
Brian Bjerring-Jensen Replied
We update the GEO IP DB every 3 hours for that exact reason.

So should SM. Otherwise we have a lot of false positives over time in GEO IP blocking and IDS/IPS.
0
Sébastien Riccio Replied
GeoIP database is not updating itself regulary/automatically in SM ??

Sébastien Riccio System & Network Admin https://swisscenter.com
0
Brian Bjerring-Jensen Replied
Only when installed.
0
Zach Sylvester Replied
Employee Post
Hello Everyone,

I discussed with my team the possibility of enabling SmarterMail to automatically update the GEO database. However, due to a licensing restriction with MaxMind, this is not possible.

Kind regards,
Zach Sylvester Software Developer SmarterTools Inc. www.smartertools.com
0
Sébastien Riccio Replied
Zach,

As far as I know, it would only require the server admin to provide a MaxMind key for the updates, which you can obtain for free by registering to their service.

At least it's how we're doing it with geoipudate on Linux.

For the one not willing to register -> use bundled databases
For the one with an account -> use the autoupdated db's

I understand people frustration being stuck with an old db because they can't upgrade smartermail (due to the new issues it will bring) only for the purpose of having fresh geo db's.

Kind regards.


Sébastien Riccio System & Network Admin https://swisscenter.com
0
Sébastien Riccio Replied
By the way, is that the file used for GeoIP in SM ?


If yes:
Can't we setup on our own an automatic updater for it ? Would it need to restart smartermail at every update though ?

If no:
Where are the db files located, to consider updating them by other means ?

Thanks 
Sébastien Riccio System & Network Admin https://swisscenter.com
0
Zach Sylvester Replied
Employee Post
Hi Sebastien,

Thank you for reaching out!

You're correct—the main challenge is that users would need to register and provide their own API keys, among other requirements. Since you're open to doing that, I’ll revisit this topic with my team and gather their thoughts on it.

The other key obstacle is that we’re not using the default database; instead, we’ve implemented custom techniques to optimize lookups for better speed and efficiency. That’s why a direct replacement isn’t feasible. However, if needed, you could technically work around this by installing the latest version of SmarterMail on a new server, stopping the service on both servers and copying the GeoIP.dat file from the new version to the old one. This would allow the older version to utilize the updated database.
That said, I’ll discuss with my team the possibility of introducing a method to dynamically upgrade the GeoIP.dat file in future updates.

Let me know if you have any additional thoughts or questions!

Best regards,
Zach Sylvester Software Developer SmarterTools Inc. www.smartertools.com
0
Gabriele Maoret - SERSIS Replied
So, if I understand correctly, as a workaround, I can use a "dummy" installation of a new release and copy this "GeoIP.dat" file from there to my working server, correct?

Can you confirm this for me, so I can try this as a workaround?
Gabriele Maoret - Head of SysAdmins at SERSIS Currently manages 6 SmarterMail installations (1 in the cloud for SERSIS which provides services to a few hundred third-party email domains + 5 on-premise for customers who prefer to have their mail server in-house)
1
Zach Sylvester Replied
Employee Post
Hi Gabriele,

That’s correct—the database updates only include new information without altering the underlying format.

Kind regards,
Zach Sylvester Software Developer SmarterTools Inc. www.smartertools.com
0
Gabriele Maoret - SERSIS Replied
Very good, I'll give it a try
Gabriele Maoret - Head of SysAdmins at SERSIS Currently manages 6 SmarterMail installations (1 in the cloud for SERSIS which provides services to a few hundred third-party email domains + 5 on-premise for customers who prefer to have their mail server in-house)
0
David Fisher Replied
Hi,

  Why is the GeoIP.dat file the same size of 1,036,433 bytes and dated Jan 31, 2019 on every build?

  Even my SmarterMail v15.7 is this size and date along with build 9007 & 9119

Thanks!
-dave
0
Zach Sylvester Replied
Employee Post
Hi David,

I’m not entirely sure about that. Based on our release notes, the last time we upgraded the GeoIP database was with Build 9035 on September 26, 2024. The updated database is committed to our codebase, so it should definitely be different.

If you suspect it might be an older version, you can try uninstalling SmarterMail, deleting the GeoIP.dat file, and then reinstalling SmarterMail. Alternatively, you can follow the steps I mentioned earlier to replace the file manually.

Let me know if you have any questions or run into issues!

Kind regards,

Zach Sylvester Software Developer SmarterTools Inc. www.smartertools.com
1
Brian Bjerring-Jensen Replied
We have a maxmind licensekey... why not implement the option to put a key there and let us decide how often we would like a refresh.

Otherwise it wont make sense to have it there in the first place if its old data...
0
Zach Sylvester Replied
Employee Post
Hi Brian,

As I mentioned earlier, I’ll bring this up with the team for further discussion. The main challenge lies in managing the complexity of building out the integration while ensuring a seamless experience.

One of SmarterMail’s key advantages is minimizing the need for manual configurations, as simplicity and ease of use are central to our offering. Competing mail servers often require more manual effort, and we aim to stand out by making things as effortless as possible for our users.

I’ll share your suggestion with the team and see if we can explore a solution that aligns with our philosophy.

Kind regards,
Zach Sylvester Software Developer SmarterTools Inc. www.smartertools.com
0
Brian Bjerring-Jensen Replied
Thanks Zack as always :)

Merry christmas to you and the team.
0
Sébastien Riccio Replied
Hmmm,

Another question/suggesion. If the DB is that .dat file, it means you're using the old legacy db format.
It's being quite being deprecated in favor of MMDB files.


Also:

The MaxMind MMDB (MaxMind DB) database format offers several advantages over the legacy DAT files:

Performance

MMDB files provide significantly faster IP address lookups compared to DAT files. The MMDB format utilizes an efficient binary search tree algorithm specifically optimized for IP address queries
1
4
. This results in blazingly fast lookups, outperforming even database management systems for IP address searches.

Versatility

MMDB files support both IPv4 and IPv6 addresses, mapping them to data records within a single file
1
. This eliminates the need for separate files for different IP versions.

Efficiency

The binary format of MMDB files is more space-efficient compared to plaintext formats like CSV or JSON
4
. This allows for more compact storage of large IP datasets.

Standardization

The MMDB format has become an industry standard for IP geolocation and related datasets
4
. Many tools and libraries across different programming languages support reading MMDB files directly.

Data Integrity

As a binary format, MMDB files are less prone to accidental modifications or corruption compared to plaintext formats. This helps maintain data integrity, especially for mission-critical applications.While MMDB files excel at IP lookups, it's worth noting that they are specialized for this purpose and lack the flexibility of plaintext formats for general data manipulation or exploration
4
.
 However, for applications primarily focused on efficient IP address queries, the MMDB format offers clear advantages over the older DAT files.
Maybe you would not need to slightly modify the legacy format to have better performances, but switch to use the MMDB format.
Sébastien Riccio System & Network Admin https://swisscenter.com
1
Zach Sylvester Replied
Employee Post
Hi Sebastien,

That’s a great observation. You’re correct that the legacy .dat format is becoming less common, and we’ve been taking steps to make our .dat file more efficient. However, the advantages of switching to the MMDB format, as you pointed out, are worth considering. I’ll definitely bring this up with my team for further discussion.

Thank you for sharing the additional context and resources—it’s helpful for evaluating potential improvements.

Wishing you and your team and everyone else a Merry Christmas from all of us at SmarterTools!

Kind regards,
Zach Sylvester Software Developer SmarterTools Inc. www.smartertools.com

Reply to Thread