---
title: How can I block incoming connections based on geographical location?
description: MDaemon Email versions 17.5 and above now include the ability to block incoming SMTP, IMAP, and POP3 connections based on the location of the connection.  This allows the MDaemon administrator control in designating unauthorized locations.
---

[Skip to content](https://knowledge.mdaemon.com/how-to-block-incoming-connections-based-on-geographical-location-location-screening#main-content)

[![](https://knowledge.mdaemon.com/hs-fs/hubfs/MDaemon-Technologies_logo.png?width=200&height=150&name=MDaemon-Technologies_logo.png)](https://mdaemon.com/)

- [Knowledge Base Home](https://knowledge.mdaemon.com/)
- [Go to www.mdaemon.com](https://mdaemon.com/)

Open main navigation

Close main navigation

- [Knowledge Base Home](https://knowledge.mdaemon.com/)
- [Go to www.mdaemon.com](https://mdaemon.com/)
- [Contact Us](https://mdaemon.com/pages/contact-us)

[Contact Us](https://mdaemon.com/pages/contact-us)

 Knowledge Base

- There are no suggestions because the search field is empty.

1. [Knowledge Base Home](https://knowledge.mdaemon.com/?hsLang=en)
2. [MDaemon Email Server](https://knowledge.mdaemon.com/mdaemon-email-server?hsLang=en)

# How can I block incoming connections based on geographical location?

## MDaemon Email versions 17.5 and above now include the ability to block incoming SMTP, IMAP, and POP3 connections based on the location of the connection.  This allows the MDaemon administrator control in designating unauthorized locations.

**Watch the how-to video here:**

<iframe class="hs-responsive-embed-iframe" height="315" src="https://www.youtube.com/embed/Nw1OS1hbB5c" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;" width="560" allowfullscreen data-service="youtube"></iframe>

The \\MDaemon\\Geo directory on the server contains an IP/Country database from [MaxMind](https://www.maxmind.com/).  Updates can be downloaded from the website if desired.

To enable location screening and/or configure exemptions;

1. Select **Security**
2. Select **Security Settings**
3. Expand** Screening**
4. Select **Location Screening**
5. Check the **Enable Location Screening** check box  
   ![mdaemon email server location screening menu](https://knowledge.mdaemon.com/hs-fs/hubfs/KB%20Screenshots/1186_geo.png?width=688&name=1186_geo.png)
6. Select the continents and/or countries desired to be blocked
7. (Optional) Select **White list** to add any IP addresses or IP ranges to be exempt from location screening.
8. (Optional) Check **SMTP port blocks AUTH only** to only block connections attempting to use the AUTH command.

 

- [MDaemon Email Server](https://knowledge.mdaemon.com/mdaemon-email-server?hsLang=en#main-content)

    - [Mobile Device Management](https://knowledge.mdaemon.com/mdaemon-email-server?hsLang=en#mobile-device-management)
- [MDaemon AntiVirus (SecurityPlus)](https://knowledge.mdaemon.com/mdaemon-antivirus-securityplus?hsLang=en)
- [ActiveSync for MDaemon](https://knowledge.mdaemon.com/activesync-for-mdaemon?hsLang=en)
- [MDaemon Connector for Outlook (Outlook Connector)](https://knowledge.mdaemon.com/mdaemon-connector-for-outlook-outlook-connector?hsLang=en)
- [SecurityGateway for Email Servers](https://knowledge.mdaemon.com/securitygateway-for-email-servers?hsLang=en)
- [RelayFax Network Software](https://knowledge.mdaemon.com/relayfax-network-software?hsLang=en)

[![Chill listening crop-3](https://knowledge.mdaemon.com/hs-fs/hubfs/belch.io/template-assets/MDaemon-Technologies_logo.png?width=199&height=41&name=MDaemon-Technologies_logo.png "Chill listening crop-3")](https://www.mdaemon.com)

[Knowledge Base Home](https://knowledge.mdaemon.com?hsLang=en)

<https://www.youtube.com/c/MDaemonTechnologies> <https://www.linkedin.com/company/mdaemon-technologies/> <https://www.facebook.com/MDaemon.Technologies/> <https://www.twitter.com/MDaemon_Email>

Copyright © 2025, MDaemon Technologies