[{"data":1,"prerenderedAt":130},["ShallowReactive",2],{"seo-verification":3,"blog-heberger-serveur-email-vps-mailcow-en":6},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"id":7,"slug":8,"title":9,"excerpt":10,"readTime":11,"views":12,"isPinned":13,"publishedAt":14,"category":15,"categories":19,"featuredImage":21,"bgImage":22,"posterImage":23,"relatedSolution":21,"intro":24,"sections":25,"ctaTitle":94,"ctaBody":95,"ctaButton":96,"ctaUrl":97,"relatedPosts":98},238,"heberger-serveur-email-vps-mailcow","Hosting Your Own Email Server on a VPS with Mailcow","Deploy Mailcow on a Linux VPS to run your own sovereign email server: full guide covering installation, deliverability, and migration from Google Worksp...",11,0,false,"2026-08-08T00:00:00+00:00",{"id":11,"name":16,"slug":17,"color":18,"icon":17},"Business Email","emails","bg-cyan-500\u002F10 text-cyan-400",[20],{"id":11,"name":16,"slug":17,"color":18,"icon":17},null,"\u002Fblog\u002Fcovers\u002Fbg.svg","\u002Fblog\u002Fcovers\u002Fheberger-serveur-email-vps-mailcow-poster.svg","In July 2026, Microsoft raised Microsoft 365 prices by up to 43% depending on the plan (12 to 16% on Business Basic and Standard) — a shock that pushed thousands of SMBs to reconsider their email strategy. On top of that, Microsoft announced the end of Exchange Web Services (EWS) in October 2026, rendering dozens of third-party integrations obsolete and forcing urgent migrations. In this context, self-hosting your email is no longer a hobbyist project: it is a strategic, financial, and data sovereignty decision. Mailcow, with over 13,200 GitHub stars, has established itself as the reference solution for organizations that want to take back control of their messaging without sacrificing the comfort of a modern interface. This guide walks you through deploying Mailcow on a Linux VPS, step by step.",[26,30,42,45,73,76,79,82,85,88,91],{"type":27,"title":28,"body":29},"h2","Why Self-Host Your Email in 2026","Microsoft's price increase for Microsoft 365, effective 1 July 2026 — up to 43% depending on the plan was a wake-up call for many SMBs. An organization with 20 employees that was paying around €200 per month now faces bills of €285 or more, with no meaningful improvement in features. And that is not all: Microsoft has officially scheduled the shutdown of Exchange Web Services (EWS) for October 2026, making obsolete dozens of third-party integrations that relied on this protocol — shared calendars, CRM tools, in-house automations.\n\nFaced with these pricing and technical disruptions, self-hosted email has returned to the conversation with renewed legitimacy. Hosting your own mail server on a VPS offers three major advantages: full cost control (a properly sized VPS costs between €15 and €40 per month for 20 to 50 mailboxes), data sovereignty (your messages do not transit through a hyperscaler's datacenters), and simplified GDPR compliance (you know exactly where your data is stored and processed). For law firms, healthcare professionals, communication agencies, or any organization handling sensitive data, this last argument is often decisive.",{"type":31,"title":32,"items":33},"ul","What Mailcow Includes Out of the Box",[34,35,36,37,38,39,40,41],"**Postfix + Dovecot**: the time-tested open-source email duo — Postfix handles inbound and outbound SMTP, while Dovecot provides IMAP and POP3 access for your email clients.","**Rspamd**: a next-generation spam filtering engine far more accurate than SpamAssassin, with adaptive Bayes, greylisting, DKIM, ARC, and multi-factor scoring built in.","**SOGo**: a full-featured webmail client (calendars, contacts, tasks) with ActiveSync synchronization for Outlook and mobile devices, without needing Exchange.","**Web administration panel**: a modern control panel to manage domains, mailboxes, aliases, quotas, mailing lists, and DKIM policies in just a few clicks.","**WebAuthn \u002F two-factor authentication**: enhanced security via hardware keys (YubiKey, etc.) or TOTP to protect admin access and individual user mailboxes.","**Full REST API**: all administration actions are exposed through a documented API, enabling automation of mailbox and alias creation, or integration into your own customer portal.","**Built-in IMAP migration**: the `imapsync` tool is available directly from the interface to pull messages from a source server (Gmail, Microsoft 365, cPanel…) without any command-line manipulation.","**Automatic TLS certificates**: Let's Encrypt is natively integrated — Mailcow renews certificates for your mail domain with no manual intervention required.",{"type":27,"title":43,"body":44},"Technical and Network Prerequisites","Before starting the installation, make sure your VPS and network configuration meet the following requirements. On the hardware side, Mailcow requires at least 6 GB of RAM (3 GB is an absolute minimum, but performance will be degraded and some containers may crash under load). Plan for 2 vCPUs and at least 20 GB of disk space for containers and emails — 50 GB is a reasonable starting point for a small organization.\n\nOn the network side, several points are non-negotiable. First, **port 25 must be open outbound**: many hosting providers block it by default to fight spam. Check with your provider before ordering. Second, you must be able to configure the **rDNS (reverse DNS \u002F PTR record)** for your IP: this allows recipient servers to verify that your IP actually maps to your mail hostname — without a correct PTR, your emails will land in spam at most major providers. Third, you need a **domain name** whose DNS you control (adding MX, A, and TXT records). Finally, a VPS running **Debian 12 or Ubuntu 24.04 LTS** is recommended for optimal compatibility with Docker and the Mailcow scripts.",{"type":46,"title":47,"steps":48},"steps","Installing Mailcow in 8 Steps",[49,52,55,58,61,64,67,70],{"title":50,"body":51},"Provision the VPS and Configure rDNS","Order a VPS with at least 6 GB of RAM, 2 vCPUs, and a dedicated IP. In your hosting control panel, navigate to the rDNS (or PTR record) section and map your IP to `mail.yourdomain.com`. This setting is critical: without a correct PTR, your emails will be systematically rejected or marked as spam by Gmail, Outlook, and other major providers. Allow up to 24 hours for PTR propagation.",{"title":53,"body":54},"Point Your Domain's DNS Records","In your DNS manager, create an **A** (or AAAA) record for `mail.yourdomain.com` pointing to your VPS IP. Add an **MX** record on `yourdomain.com` with the value `mail.yourdomain.com` and a priority of 10. Also prepare your SPF record (`v=spf1 mx ~all`) and DMARC record (`_dmarc.yourdomain.com`) — DKIM will be automatically generated by Mailcow when it first starts.",{"title":56,"body":57},"Install Docker and Docker Compose","Connect to your VPS via SSH as root. Install Docker using the official script: `curl -fsSL https:\u002F\u002Fget.docker.com | sh`. Docker Compose v2 is included in modern Docker packages. Verify the versions with `docker --version` and `docker compose version`. Ensure the Docker service starts automatically with `systemctl enable --now docker`.",{"title":59,"body":60},"Clone the Repository and Generate the Configuration","Clone the official repository into `\u002Fopt\u002Fmailcow-dockerized`: `git clone https:\u002F\u002Fgithub.com\u002Fmailcow\u002Fmailcow-dockerized \u002Fopt\u002Fmailcow-dockerized`. Enter the directory and run `.\u002Fgenerate_config.sh`. The script asks for your mail hostname (e.g., `mail.yourdomain.com`) and timezone. It generates the `mailcow.conf` file with secure random keys — do not manually modify these keys afterward.",{"title":62,"body":63},"Start Mailcow","From `\u002Fopt\u002Fmailcow-dockerized`, run `docker compose pull` to download all images (approximately 2 to 4 GB depending on your connection), then `docker compose up -d` to start all containers in the background. The first startup takes 2 to 5 minutes. Check container status with `docker compose ps` — all should show a status of `Up` or `Up (healthy)`.",{"title":65,"body":66},"Access the UI and Create Your First Domain","Open your browser at `https:\u002F\u002Fmail.yourdomain.com`. Default credentials are `admin` \u002F `moohoo`. **Change the admin password immediately.** Under *Configuration → Domains*, add your domain. Then create your first mailbox under *Configuration → Mailboxes*. The interface is intuitive and well-organized.",{"title":68,"body":69},"Enable DKIM and Test Deliverability","Under *Configuration → ARC\u002FDKIM Keys*, select your domain and click *Generate new key* (2048-bit length recommended). Copy the generated TXT record and add it to your DNS manager (TXT record on `dkim._domainkey.yourdomain.com`). Then send a test email from your new mailbox to `check-auth@verifier.port25.com`, or use `mail-tester.com` for a comprehensive deliverability score.",{"title":71,"body":72},"Set Up Automated Backups","Mailcow provides an official backup script at `helper-scripts\u002Fbackup_and_restore.sh`. Schedule a daily run via cron: `0 3 * * * \u002Fopt\u002Fmailcow-dockerized\u002Fhelper-scripts\u002Fbackup_and_restore.sh backup all` with the `MAILCOW_BACKUP_LOCATION` variable pointing to external storage (NFS mount, S3 bucket, remote directory via rsync). Test a restore before considering the backup operational.",{"type":27,"title":74,"body":75},"Deliverability: Pitfalls to Avoid","A technically correct mail server can still have its messages land in spam if certain network and DNS conditions are not met. Here are the most common mistakes.\n\n**Blacklists**: your VPS IP may be listed in blacklists like Spamhaus or Barracuda if it was previously used for spam — this is common with datacenter IP ranges. Check your IP on `mxtoolbox.com\u002Fblacklists.aspx` before installation. If listed, request delisting from each organization or switch IPs.\n\n**Port 25 blocked**: some hosting providers block outbound port 25 on all new IPs for a probation period. Contact support before starting.\n\n**Missing or misconfigured DKIM**: an email without a valid DKIM signature is treated with suspicion by Gmail and Outlook. Verify with `dig TXT dkim._domainkey.yourdomain.com` that the record is visible.\n\n**DMARC too permissive**: start with `p=none` to collect reports without blocking, then move to `p=quarantine` and `p=reject` once you are confident all legitimate mail streams are covered by SPF and DKIM.\n\n**Missing PTR record**: the most commonly forgotten point. Without a PTR record resolving to your mail hostname, Microsoft Outlook will reject your emails with a 550 error.",{"type":77,"body":78},"tip","**Mailcow behind Nginx Proxy Manager**: if your VPS hosts other web services (website, application), you can run Mailcow alongside Nginx Proxy Manager on the same IP. The key is to let NPM handle only ports 80 and 443 (HTTP\u002FHTTPS) as a reverse proxy, while Mailcow retains direct control over SMTP ports (25, 465, 587) and IMAP\u002FPOP3 (993, 995). In `mailcow.conf`, set `HTTP_BIND=127.0.0.1` and `HTTPS_BIND=127.0.0.1`, then configure NPM to proxy to `127.0.0.1:80` and `127.0.0.1:443`. Never try to route port 25 through an HTTP reverse proxy — SMTP does not work that way.",{"type":27,"title":80,"body":81},"Migrating from Google Workspace or Microsoft 365 to Mailcow","Migrating existing emails is often what holds organizations back. Mailcow includes an IMAP migration tool directly in its interface (`imapsync`), making the operation accessible without advanced technical skills.\n\nThe basic procedure is: (1) create the destination mailboxes in Mailcow, (2) navigate to *Extras → Import* in the admin interface, (3) enter the source server address, credentials, and start the sync. `imapsync` copies messages folder by folder, preserving dates and read statuses. The migration can be run multiple times before the final cutover (already-copied messages are skipped on subsequent passes), enabling a **progressive cutover**: you continue receiving mail on the old address while data migrates, then switch the MX record in a single operation.\n\nFor Microsoft 365 with EWS, plan your migration before October 2026: some migration tools that rely on EWS will stop working after that date. Mailcow uses IMAP, not EWS, and is therefore unaffected — yet another reason to migrate early.\n\nFor email clients, Thunderbird, Apple Mail, and mobile apps (iOS, Android) configure via standard IMAP\u002FSMTP. Outlook works too, including calendar and contact sync via ActiveSync (SOGo).",{"type":27,"title":83,"body":84},"Comparison: Mailcow vs Mailu vs iRedMail","Mailcow is not the only Docker-based self-hosted email solution. Here is how it compares to its main competitors.\n\n**Mailu** is lighter on resources (runs with 1 GB of RAM) and suits personal use or very small organizations. Its interface is minimalist, it does not include SOGo, and its feature set is more limited. It is an excellent choice when simplicity is a priority over features.\n\n**iRedMail** is a mature solution, available as a community edition and a paid Pro version (iRedMail Pro). It supports multiple database backends (MySQL, PostgreSQL, LDAP) and installs directly on the host system without Docker. Its configuration curve is steeper, and updates are less automated. iRedMail Pro adds a paid web management interface that competes with Mailcow's.\n\n**Mailcow** stands out for the richness of its features, the quality of its administration interface, the frequency of its updates (monthly releases), and the size of its community (13,200+ GitHub stars). It is the natural choice for an SMB that wants a complete, actively maintained solution with abundant documentation. The trade-off is RAM consumption: 6 GB minimum is a non-negotiable requirement.",{"type":27,"title":86,"body":87},"Maintenance and Version Upgrades","Mailcow publishes monthly updates (usually on the first Fridays of the month) that fix security vulnerabilities, improve spam filters, and add features. The official update procedure is straightforward and well-documented.\n\nFrom the `\u002Fopt\u002Fmailcow-dockerized` directory, run `.\u002Fupdate.sh`. This script pulls the new Docker images, applies any configuration migrations, and restarts the affected containers. The operation typically takes 5 to 15 minutes with less than a minute of service interruption for the restarted containers.\n\n**Do not use Watchtower** (the automatic Docker container update tool) with Mailcow. Mailcow updates sometimes involve database migrations or configuration changes that require running `update.sh` in the correct order. Letting Watchtower pull and restart images autonomously can corrupt your installation.\n\nSchedule updates during a known maintenance window (for example, Saturday morning), review the release notes on the Mailcow forum before applying, and verify container status with `docker compose ps` after each update. A backup on the eve of each major update is strongly recommended.",{"type":27,"title":89,"body":90},"When Self-Hosting Email Is Not Advisable","Self-hosting email is not a universal answer. There are situations where Google Workspace or Microsoft 365 remains the more sensible choice, even after the price increase.\n\n**If you lack in-house technical expertise**: managing a mail server requires regular security monitoring, proactive updates, and the ability to diagnose deliverability issues. Without these skills, you risk being left without email during a critical incident.\n\n**If deliverability is absolutely critical**: large-scale transactional email operations (banks, insurers, high-volume e-commerce platforms) benefit from the reputation of shared IPs professionally managed by ESPs (Mailgun, Postmark, Brevo). A solo VPS starts with a fresh IP whose reputation must be built from scratch.\n\n**If your hosting provider blocks port 25**: some cloud operators (particularly on entry-level plans) permanently block this port to combat spam. Verify before committing.\n\n**If you operate in a strictly regulated industry**: some sectors (finance, healthcare) impose certification or audit requirements for email infrastructure that can be difficult to satisfy with self-hosting without specialized support.",{"type":27,"title":92,"body":93},"Conclusion: An Email Server That Belongs to You","Self-hosting your email server with Mailcow on a VPS is now within reach of any organization with a minimum of technical maturity. The solution is mature, actively maintained, and delivers a functional level that honestly competes with commercial offerings — at a fraction of the cost.\n\nMicrosoft 365's price increase and the end of EWS in 2026 have transformed self-hosting from a fringe option into a strategic alternative for thousands of SMBs and agencies. With a properly sized VPS (6 GB RAM, dedicated IP with configured rDNS), a Mailcow installation takes less than an hour, and the migration of existing mailboxes can be done progressively without service interruption.\n\nThree things to remember before getting started: verify that port 25 is open with your hosting provider, configure the PTR record for your IP before sending your very first email, and set up external backups from day one. With these foundations in place, your email server will be just as reliable — and far more cost-effective — than a cloud subscription.","A VPS for Your Email Server","Mailcow requires at least 6 GB of RAM and 2 vCPUs. Our Linux VPS plans are delivered with Debian 12 or Ubuntu 24.04, root access, a dedicated IP, and configurable rDNS — essential for email deliverability.","View Linux VPS Plans","\u002Fvps-linux",[99,110,120],{"id":100,"slug":101,"title":102,"excerpt":103,"readTime":104,"views":12,"isPinned":13,"publishedAt":105,"category":106,"categories":107,"featuredImage":21,"bgImage":22,"posterImage":109,"relatedSolution":21},199,"spf-dkim-dmarc-delivrabilite-emails-pro","SPF, DKIM, DMARC: passing the 5,000-email threshold","Gmail and Outlook reject senders without aligned SPF, DKIM and DMARC with an SMTP 550 error. Here is how to configure all three records.",4,"2026-08-01T00:00:00+00:00",{"id":11,"name":16,"slug":17,"color":18,"icon":17},[108],{"id":11,"name":16,"slug":17,"color":18,"icon":17},"\u002Fblog\u002Fcovers\u002Fspf-dkim-dmarc-delivrabilite-emails-pro-poster.svg",{"id":111,"slug":112,"title":113,"excerpt":114,"readTime":104,"views":12,"isPinned":13,"publishedAt":115,"category":116,"categories":117,"featuredImage":21,"bgImage":22,"posterImage":119,"relatedSolution":21},210,"bimi-logo-marque-email-gmail-apple-mail","BIMI: display your logo in Gmail and Apple Mail","BIMI displays your brand logo next to your emails in Gmail, Apple Mail and Yahoo. Full guide: DMARC requirements, VMC, CMC and DNS record.","2026-08-02T00:00:00+00:00",{"id":11,"name":16,"slug":17,"color":18,"icon":17},[118],{"id":11,"name":16,"slug":17,"color":18,"icon":17},"\u002Fblog\u002Fcovers\u002Fbimi-logo-marque-email-gmail-apple-mail-poster.svg",{"id":121,"slug":122,"title":123,"excerpt":124,"readTime":104,"views":12,"isPinned":13,"publishedAt":125,"category":126,"categories":127,"featuredImage":21,"bgImage":22,"posterImage":129,"relatedSolution":21},215,"migrer-email-pro-quitter-gmail-microsoft-365","Migrating professional email: leaving Gmail and Microsoft 365","Microsoft 365 raised prices in 2026 and EWS shuts down in October. Here's how to migrate your business email without interruption.","2026-08-03T00:00:00+00:00",{"id":11,"name":16,"slug":17,"color":18,"icon":17},[128],{"id":11,"name":16,"slug":17,"color":18,"icon":17},"\u002Fblog\u002Fcovers\u002Fmigrer-email-pro-quitter-gmail-microsoft-365-poster.svg",1786234935998]