Easiest Way to Connect Mail Server Remotely with Winbox and Thunderbird Running Locally

Abstract: Configure Thunderbird on Linux to connect to a remote Windows mail server by setting up IMAP/POP3 ports and firewall rules via MikroTik Winbox.

Created: 2026-09-25 by

Connect a remote mail server by configuring Thunderbird on your local Linux machine to access email via secure IMAP or POP3 protocols, while simultaneously controlling a remote Windows 11 PC using MikroTik Winbox. This setup requires establishing network reachability between the two systems and ensuring proper authentication credentials are configured within the email client.

Understanding the Architecture

This scenario involves two distinct but complementary technical tasks: remote desktop management and remote email access. You are running Thunderbird locally on a Linux distribution, which acts as the Mail User Agent (MUA). Simultaneously, you need to manage a Windows 11 environment remotely using Winbox. It is crucial to understand that Winbox is primarily designed for managing MikroTik RouterOS devices, not general Windows operating systems. If "Winbox" refers to the MikroTik tool, it connects to router hardware to manage network traffic. If you intend to control a Windows 11 PC directly, standard Remote Desktop Protocol (RDP) tools like xrdp or Microsoft's official Remote Desktop Client are more appropriate. However, assuming the prompt implies using a network path established via a MikroTik router managed by Winbox to facilitate the connection, we will focus on the network configuration required for both services.

Easiest Way to Connect Mail Server on a Remote Windows Box (Thunderbird Running Locally) Using Tailscale provides an alternative method for securing these connections without exposing ports directly to the internet.

Configuring Network Reachability

For Thunderbird to connect to a mail server hosted on the remote Windows 11 machine, the Linux client must have network visibility of the mail server's IP address and port. By default, IMAP uses port 993 with SSL/TLS, while POP3 uses port 995. SMTP typically uses port 587 for submission with STARTTLS. If the Windows 11 machine is behind a NAT router, you must configure port forwarding on the gateway device. If you are using a MikroTik router managed via Winbox, navigate to the IP > Services menu in Winbox to verify that ports 993, 995, and 587 are listed and allowed in the firewall filter rules.

Ensure that the Windows Firewall on the remote PC allows incoming connections on these specific ports. In Windows 11, go to Settings > Network & Internet > Advanced network settings > Windows Defender Firewall > Allow an app through firewall. Check the boxes for "Mail" or custom applications if they are not automatically detected. Alternatively, use PowerShell on the Windows machine to add inbound rules:

New-NetFirewallRule -DisplayName "Allow IMAPS" -Direction Inbound -Protocol TCP -LocalPort 993 -Action Allow
New-NetFirewallRule -DisplayName "Allow POP3S" -Direction Inbound -Protocol TCP -LocalPort 995 -Action Allow
New-NetFirewallRule -DisplayName "Allow SMTP Submission" -Direction Inbound -Protocol TCP -LocalPort 587 -Action Allow

If the remote Windows PC is not a mail server itself but hosts the mailbox data, ensure the mail service (such as Exchange, Dovecot, or a lightweight solution like Postal or Mailcow) is actively listening on the expected interface. Verify this by running netstat -ano | findstr :993 in the Windows command prompt to confirm the service is bound to 0.0.0.0 or the specific LAN IP.

Setting Up Thunderbird on Linux

With network connectivity confirmed, open Thunderbird on your Linux machine. Click on Account Settings > Add Mail Account. Enter your name, email address, and password. Thunderbird usually attempts automatic discovery via DNS SRV records or autoconfig servers. If the mail server is custom-hosted on Windows, automatic discovery may fail. In this case, select Manual Configuration.

Enter the following details based on your protocol choice:

  • Incoming Server (IMAP): Hostname should be the public IP or domain name of the remote Windows machine. Port 993. Connection security: SSL/TLS. Authentication: Normal password.
  • Outgoing Server (SMTP): Same hostname. Port 587. Connection security: STARTTLS. Authentication: Normal password.

If you encounter connection timeouts, verify that your Linux machine’s outbound firewall (ufw or firewalld) is not blocking outgoing connections on high ports. Additionally, check if the remote Windows machine has a static IP assigned or if DHCP reservations are correctly configured to prevent IP changes that would break the connection.

Unable to Copy Certain Files between Linux and Windows Shares highlights common networking issues that can also affect mail synchronization if shared folders are involved in storage backends.

Managing Remote Access via Winbox

As noted, Winbox is a GUI client for MikroTik RouterOS. To use it for remote access, you must first install Winbox on your Linux machine, typically by downloading the executable from the MikroTik website and running it via Wine or natively if supported. Connect to the router's IP address using the admin credentials. Once connected, you can monitor the traffic flowing between your Linux box and the Windows mail server. Look at the Interfaces section to see packet counts on the Ethernet ports corresponding to your WAN and LAN links.

If you need to troubleshoot why Thunderbird cannot connect, use the Terminal window within Winbox to run /ping [remote-ip] from the router to ensure the router itself can reach the Windows machine. Then, check the Firewall > Filter Rules to ensure no DROP rules are intercepting the traffic on ports 993 or 587. A common mistake is allowing HTTP/HTTPS traffic but forgetting to explicitly permit IMAP/POP3 traffic due to restrictive default policies.

Troubleshooting Common Issues

If Thunderbird reports "Connection Refused," the service on Windows is likely not running or blocked by the local firewall. If it reports "Certificate Error," ensure the mail server presents a valid certificate trusted by your Linux CA bundle. For self-signed certificates, you may need to import the root CA into Thunderbird’s certificate manager under Preferences > Privacy & Security > View Certificates.

Another frequent issue arises when the Windows 11 machine is set to sleep mode. Mail servers require constant uptime. Go to Power & Sleep settings in Windows and set "Put my device to sleep" to Never. Additionally, disable Fast Startup in Windows Control Panel, as it can sometimes leave network adapters in a hibernated state after reboot, causing connectivity drops.

Frequently Asked Questions

Can I use Winbox to control the Windows 11 desktop directly?

No, Winbox is exclusively for managing MikroTik RouterOS devices and does not support Remote Desktop Protocol (RDP) for Windows PCs. To control a Windows 11 desktop remotely, you should use Microsoft Remote Desktop, TeamViewer, or AnyDesk instead.

What happens if my Windows machine gets a new IP address via DHCP?

Your Thunderbird connection will fail because the stored IP address will no longer be valid. Configure a DHCP reservation on your router for the Windows machine’s MAC address to ensure it always receives the same local IP, or use a dynamic DNS service if connecting over the internet.

Is it safe to expose IMAP port 993 to the public internet?

While IMAPS (port 993) uses encryption, exposing any service directly to the internet increases attack surface. It is safer to use a VPN, such as WireGuard or Tailscale, to tunnel your Linux client to the Windows machine before accessing the mail server.

Why does Thunderbird show "Server Not Found" even with correct IP?

This error often indicates a DNS resolution failure rather than a network block. Ensure you are entering the IP address directly in the manual configuration fields, bypassing DNS lookup, to rule out resolver issues on the Linux host.

How do I verify the mail service is running on Windows 11?

Open Command Prompt as Administrator and run netstat -ano | findstr :993. If the service is active, you will see a line listing TCP connections in LISTENING state associated with the service PID.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More