Skip to content
+90 850 885 27 43 info@argeict.com

Security technologies

Proxmox Mail Gateway setup and management

ARGE ICT installs and manages Proxmox Mail Gateway in front of your mail server. Mail Gateway is not a mailbox server; it is an email gateway that sits between the internet and your mail server. It scans every incoming and outgoing message for spam and viruses, then delivers it, quarantines it, or blocks it according to your rules.

Scan, quarantine, deliver

Where Proxmox Mail Gateway sits in front of the mail server

Email from the internet passes your VPC's firewall, is scanned first in Mail Gateway, and the clean message is delivered to your mail server.

ARGE ICT infrastructure diagram (Your business application). Head office and branches connect from their own firewall to the Istanbul data center over an IPsec tunnel or MPLS/SD-WAN; remote staff use SSL VPN, ZTNA, or ARGE ZTNA. Traffic passes from the data center router through the ARGE ICT Backbone HA Cluster to an HA firewall. Inside the dedicated VPC it passes the VPC firewall and the WAF and is spread across the application servers by a load balancer; the application server (Your business application), the database, and the terminal server run in this VPC; application and database tiers can be built as HA clusters on request. A service zone beside the VPC runs monitoring, SIEM and SOAR, and antivirus/XDR/EDR; DLP is added when the customer's case calls for it. It runs on Dell and Supermicro servers with Xeon Platinum and enterprise NVMe, hosts linked by a 25–200G NVIDIA Mellanox network. The environment can optionally be replicated to a second data center (DR site). The internet, the VPC firewall, the server area, and the IPsec line are highlighted.SERVICE ARCHITECTURE · PROXMOX MAIL GATEWAYWhere Proxmox Mail Gateway sits in front of the mail serverMPLS · SD-WANInternetCustomer: head office and branchesyour own firewallData center · Istanbuldata stays in TürkiyeARGE physical environmentARGE ICT network and racksYour dedicated VPCfirewall · WAF · serversVPC monitoring and security serviceMonitoring · SIEM and SOAR · AV/XDR/EDR · DLPDR site · second data centeridentical to the primary environmentHead officeBranchesCustomer firewallIPsec tunnel endpointCustomer firewallyour company's gatewayIPsec tunnelfrom head office and branches, encryptedIPsec tunnelencrypted private linkRemote staffSSL VPN · ZTNA · ARGE ZTNARemote staffsecure access from home or fieldDC routersdata center network · HA pairDC routersterminates external linksARGE ICT Backbone HA ClusterHA link from DC network to ARGE networkARGE ICT Backbone HA Clusterredundant core backboneFirewall (HA)ARGE perimeter · HA pairFirewall (HA)only allowed traffic passesVPC firewallrules for you onlyVPC firewallentry to the VPCWAFweb application firewallWAFinspects web requestsTerminal serverRDS · desktop clientsTerminal serverremote access to the programApplication serverYour business application · Windows or LinuxHA cluster: optionalApplication serverYour business applicationredundant cluster on requestDatabase serveryour business databaseDatabase HA cluster: optionalDatabase serveryour data lives hereredundant cluster on requestInfrastructure monitoringserver, disk, network, backupInfrastructure monitoringon one dashboardSIEM and SOARlog collection and correlationSIEM and SOARalerts handled in defined stepsAntivirus · XDR · EDRendpoint protection on serversAntivirus · XDR · EDRmalware and suspicious behavior stoppedDLPdata loss preventionDLPdata egress monitoredVirtualization hostsDell and Supermicro serversXeon Platinum · enterprise NVMeVirtualization hostsenterprise-class serversfast processors and storage25G / 50G / 100G / 200G host networkNVIDIA Mellanox Ethernet cards25G / 50G / 100G / 200G host network25–200G links between serversDR firewallsame rulesDR application serveractive · serving usersDR application serverstandby · takes over in a disasterDR databasesynchronized both waysDR databaseup-to-date copy, read-onlyGlobal Load Balancerhealth-checked routingGlobal Load Balancersends users to the site that is upSSL VPN · ZTNAARGE ZTNAlogs and metricsAlso to DR (active-active)traffic shared across both sitesFailover pathused only in a disasterTwo-way replicationContinuous replicationone way, primary to DR12345IPsec tunnelMPLS / SD-WANSSL VPN · ZTNAInternet to WAFDC and ARGE networkHA pairingApplication ↔ data25–200G host networkLogs and metricsGlobal Load BalancerFailover pathDR replication1Step (below the diagram)Illustrative · HA and DR are added with the buttons on the page
IPsec tunnelMPLS / SD-WANSSL VPN · ZTNAInternet to WAFDC and ARGE networkHA pairingApplication ↔ data25–200G host networkLogs and metricsGlobal Load BalancerFailover pathDR replicationIllustrative · HA and DR are added with the buttons on the page
Hover over or tap a component to see its name and role; choose “Show all” to see every label at once. Zoom with Ctrl/⌘ + scroll, a two-finger pinch or a double click. Use the buttons above to add HA and DR options; click a step to bring its layer forward.
The diagram shows ARGE ICT's shared infrastructure, with the parts this page touches highlighted. Email is scanned in Mail Gateway before it reaches the mail server; the clean message is delivered, and a suspicious one waits in quarantine. It is illustrative; details are settled for your environment during discovery.

How to read the diagram

  1. 1
    Delivery over VPN if your mail server is in your own environment

    If your mail server is in your own environment, the clean message is delivered over a Site-to-Site VPN.

  2. 2
    Only port 25 is opened from outside

    From outside, only port 25 is opened, and only to Mail Gateway; the mail server is not exposed directly to the internet.

  3. 3
    Mail Gateway is a separate virtual server in your VPC

    Mail Gateway is a separate virtual server in your VPC; it runs spam and virus scanning, quarantine, and the rules here.

  4. 4
    Monitoring and security service beside the VPC

    Server, disk, network, and backup status show on the monitoring dashboard. Logs are collected in SIEM and SOAR, and alerts are handled in defined steps. Antivirus and XDR/EDR run on the servers. DLP is added when the customer's case calls for it; once added, it monitors unauthorized transfers of sensitive data. The scope is set in the contract.

  5. 5
    Enterprise hardware, fast internal network

    The environment runs on Dell and Supermicro servers with Xeon Platinum processors and enterprise NVMe drives. Hosts are interconnected at 25G, 50G, 100G, or 200G with NVIDIA Mellanox cards.

What is Proxmox Mail Gateway?

According to Proxmox, Proxmox Mail Gateway is placed between the firewall and the internal mail server, and all incoming and outgoing email traffic is inspected there. It is open source (GNU AGPL v3) and based on Debian. As of November 2026 the current major version is 9, running on Debian 13.

The mail servers Proxmox lists as compatible are MS Exchange, Lotus Domino, and Postfix. Several domains and several internal mail servers can be defined.

The mail gateway idea means this: the MX record of your domain points to the gateway, not to your mail server, so a message arrives there first. The MX record is the DNS record that says which server mail for a domain goes to.

The checks a message passes

An incoming message passes two stages in Mail Gateway before it reaches your mail server: first the connection check, then the content scan. The sending server first looks up the MX record of your domain and brings the message to the gateway. The diagram below shows this order and the result.

The five steps of an email in Proxmox Mail Gateway: MX record, connection check, content scan, rules, and delivery to the mail server.
A message rejected at the connection stage never enters the queue; a message that passes the content scan is delivered or quarantined according to the rules.

Connection check: Before a message is accepted, SMTP protocol checks, DNS-based blocklists (DNSBL), greylisting, recipient verification, and an SPF check run. Greylisting temporarily rejects the first attempt of an unknown sender; a compliant server tries again. A message rejected at this stage never enters the queue.

Content scan: Virus scanning is done with ClamAV. Spam scoring uses SpamAssassin-based rules and a learning (Bayes) filter. A DKIM signature on an incoming message is verified by default.

Rules: A rule is written with the objects who sends, who receives, what, when, and action, and applies to incoming mail, outgoing mail, or both. For example, the rule "in a message from outside that carries an .exe attachment, remove the attachment and put the message in the attachment quarantine" is written with four objects: who (everyone), what (a filename match), when (always), action (remove the attachment). The rule applies only to incoming mail; outgoing mail gets its own rule.

In the end the message is delivered to the mail server, put in quarantine, or blocked.

Quarantine, message tracking, and outgoing mail

Spam quarantine is open to users. A user enters the quarantine page through the link in the daily spam report or with a directory (LDAP, Active Directory) account, and releases or deletes a message on their own. Administrators see the virus and attachment quarantine. The management interface has roles; during setup we split with you who can see what.

Message tracking (Tracking Center): The answer to "why did this message not arrive?" is found here. You can see at which stage and by which rule a message was stopped.

Outgoing mail: Your mail server sends messages through Mail Gateway (smarthost), so outgoing messages are scanned too. If wanted, a DKIM signature is added to outgoing messages. TLS is opportunistic by default: if the other side supports it, the message goes encrypted. TLS can be made mandatory for specific domains.

If your mail server is down, according to Proxmox Mail Gateway stores the message and retries delivery for up to one week.

The situation for an organization on Microsoft 365

According to Microsoft, malware, spam, and phishing protections come built in for all organizations with cloud mailboxes. If all your mail is on Microsoft 365, a separate gateway in front is often unnecessary. The place of Mail Gateway is in front of a mail server you run yourself, such as Exchange Server or Postfix.

In Microsoft 365 setups where the MX record points to a third-party filter, Microsoft strongly recommends enabling "Enhanced Filtering for Connectors", because a gateway that modifies the message can break DKIM verification. Proxmox does not document this scenario; we assess it separately with organizations that want it. For the settings on the Microsoft 365 side, see our article on the first 10 steps of Microsoft 365 security settings.

Proxmox Mail Gateway on ARGE Cloud and in your own environment

According to Proxmox, Mail Gateway is installed on separate hardware or a virtual machine: it can be Proxmox VE, VMware vSphere, Hyper-V, or a container. The resource need is small; Proxmox gives at least 2.5 GiB of memory, 4 GiB recommended, and 8 GB of disk. As mail volume grows, the disk for quarantine grows with it.

In your own environment (on-prem): Mail Gateway runs as a separate virtual server in the same virtualization cluster as your mail server. On the firewall, port 25 is opened only to Mail Gateway; the mail server is not exposed directly to the internet. Access to the management interface is restricted, which Proxmox also recommends.

On ARGE Cloud: Mail Gateway runs as a virtual server in your VPC behind your own firewall, and your MX record points to it. Your mail server can be in the VPC or in your own environment. In the second case the clean message is delivered over a Site-to-Site VPN.

High availability: A two-node cluster can be built (one master node and at least one additional node). The configuration is synchronized between nodes, and load is shared with two MX records of equal priority. According to Proxmox, every node in a cluster needs its own subscription at the same level.

What we do during setup and management

  • Mapping the mail flow: which domains, which mail server, and which filter you use today.
  • Installation, relay domains, and the layout of incoming and outgoing ports.
  • DNS records: preparing the MX, SPF, and DKIM records and changing the MX on cutover day.
  • Writing the rule set and tuning the spam thresholds and the quarantine period.
  • Directory connection (LDAP or Active Directory), user quarantine, and a short notice text for users.
  • The TLS certificate (automatic renewal with ACME) and two-step verification on the management interface.
  • Cluster setup and the configuration backup; the backup can also go to Proxmox Backup Server.
  • Watching messages caught by mistake (false positives) in the first weeks and correcting the rules.
  • Updates and major version upgrades: Proxmox's end of support for Proxmox Mail Gateway 8 was August 2026. We upgrade an installation running 8 to 9 in a planned way, after taking a backup.

Subscription, who it suits, limits

Proxmox Mail Gateway works without a subscription too. The subscription is per host and annual; the number of users and domains is unlimited. The Community, Basic, Standard, and Premium levels have the same features, and Proxmox describes the Community level as meant for non-production use. If you prefer, ARGE ICT buys the subscription and passes it on to you. If a cluster is built, one subscription per node is needed; we work this out at the quoting stage. You can also see the subscription price on the vendor's page.

It suits organizations that run Exchange Server or a Linux-based mail server. Those who want to filter the mail of several domains at one point, and those who want to get out of the cost of a filter service charged per user, also fit this group.

Mail Gateway does not host mailboxes, and it is not an archive or data loss prevention (DLP) product. No filter catches every phishing message. That is why multi-factor authentication and user awareness are needed as well; for details see identity and access management. Our other protection services are on the security services page.

Technologies: Proxmox Mail Gateway · ClamAV · SpamAssassin · Postfix · SPF · DKIM · TLS · LDAP · ARGE Cloud

Frequently asked questions

What is a mail gateway, and how does it differ from a mail server?

It does not hold mailboxes. It sits in front of the mail server, filters incoming and outgoing messages, and then delivers them.

Is Proxmox Mail Gateway free?

The software is open source. The subscription is per host, annual, and independent of the number of users.

Can Proxmox Mail Gateway be used with Microsoft 365?

Protection is built into Microsoft 365. Mail Gateway is for organizations that run their own mail server; Proxmox does not document mixed use, and we assess it separately.

Are emails lost while my mail server is down?

According to Proxmox, the message is stored and delivery is retried for up to one week.

Can a user release a quarantined message on their own?

In the spam quarantine, yes. The virus and attachment quarantine is with the administrators.

ARGE ICT installs, configures, and operates Proxmox Mail Gateway with its own team, independently of the vendor. The Proxmox Mail Gateway name and trademark belong to the developer of the software (Proxmox Server Solutions GmbH).

Expert call for security technologies

Share the system you want to protect and the security products you use today; we respond to your request within one business day.

Speak to an expert