DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk4 min

How to Set Up Email Forwarding From a Self-Hosted Mail Server

Choose the right forwarding layer for your self-hosted mail server: Postfix virtual aliases, local .forward files, or Dovecot Sieve redirects.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To forward mail from a self-hosted server, first identify how the recipient is delivered: use a Postfix virtual alias for a hosted address, a .forward file for a locally delivered Unix account, or a Dovecot Sieve redirect for mailbox-level rules. These are distinct delivery paths, not interchangeable settings. Configure only the forwarding layer you need, keep relay access restricted, and test external delivery for authentication problems.

Choose the forwarding method that matches your delivery path

Forwarding is not usually a DNS change. DNS helps other mail servers find your server; the forwarding rule is applied by the mail software handling the recipient. Postfix and Dovecot document three common places to apply that rule:

As an Amazon Associate I earn from qualifying purchases.

Need Mechanism Scope and consideration
Forward selected addresses in a hosted domain Postfix virtual alias map Domain address mappings; rebuild the map after editing and classify the domain as virtual. Postfix Virtual Domain Hosting Howto
Forward mail delivered to a local Unix account User’s .forward file Applies to local-account delivery. Postfix Address Rewriting
Filter or redirect messages in a mailbox Dovecot Sieve Requires delivery through Dovecot LDA or LMTP and Sieve/Pigeonhole integration; forwarding can affect SPF checks. Dovecot Sieve and Dovecot Sieve autoforward

Choose one rule location for a given message flow. Accidentally configuring forwarding at multiple layers can cause duplicate delivery or a loop.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set up a Postfix virtual alias

Use a virtual alias map when a hosted domain has addresses that should map to local or remote destinations. Postfix describes these as domains whose “main purpose … is to forward mail elsewhere.” See the Postfix Virtual Domain Hosting Howto for the full configuration and current-version details.

#1 Best Overall
Getorli Mini PC Ryzen 5 3501U, 16GB RAM 512GB SSD, Triple Display, WiFi 6
  • 【AMD Ryzen 5 3501U Mini PC For Enhanced Daily Performance】Powered by AMD Ryzen 5 3501U processor with 4 cores and 8 threads, this mini pc provides responsive performance for office applications, home entertainment, online learning, media playback, and everyday computing.
  • 【16GB Memory & 512GB Storage With Expansion Options】Built with 16GB DDR4 RAM and 512GB PCIe 3.0 NVMe SSD, this mini computer provides more space for applications, files, videos, and daily content. Upgrade memory up to 32GB, expand SSD storage up to 2TB, or add a 2.5-inch HDD.
  • 【Flexible Small Desktop Computer For Home Applications】This small desktop computer is designed for home office, streaming, personal server setups, digital entertainment, and light gaming. The upgraded memory helps support smoother operation when using more applications.
  • 【Triple Display Setup & Flexible Connectivity】Dual HDMI ports and a full-function USB-C port support up to three displays. This micro pc offers convenient connectivity with WiFi 6, Bluetooth 5.3, Gigabit Ethernet, and multiple USB ports.
  • 【Compact Mini Desktop With Space-Saving Design】Measuring only 5.0 × 4.4 × 1.6 inches, this small pc saves valuable desk space. VESA mount support allows installation behind compatible monitors, making it suitable for home offices and compact workspaces.

Configure the domain and map

A simplified example, assuming the installed Postfix build supports the LMDB map type shown, is:

# /etc/postfix/main.cf
virtual_alias_domains = example.com
virtual_alias_maps = lmdb:/etc/postfix/virtual

# /etc/postfix/virtual
[email protected] postmaster
[email protected]        [email protected]

The left side is the hosted address; the right side is its destination. A destination can be a local or remote address. Do not also list example.com in mydestination; Postfix says a virtual alias domain should not be handled as a local destination domain.

Rank #2
HP EliteDesk 800 G2 Desktop Mini Business PC, Intel Quad-Core i5-6500T up to 3.1G, 16GB DDR4, 240GB SSD, VGA, DP, Win 11 Pro 64 bit (Renewed)
  • This Certified Refurbished product is tested and certified to look and work like new. The refurbishing process includes functionality testing, basic cleaning, inspection, and repackaging. The product ships with all relevant accessories, a minimum 90-day warranty, and may arrive in a generic box. Only select sellers who maintain a high performance bar may offer Certified Refurbished products on Amazon.com
  • Intel Quad-core i5-6500T up to 3.1G,16G DDR4 memory(2 slots,supports up to 32GB),240G SSD
  • Includes USB Keyboard(English Keyboard & Mouse Included)
  • I/O ports:Front:2 USB 3.0 ,microphone,headphone ,USB Type-C port Rear:4USB 3.0 ,VGA DP port,RJ-45
  • Operating System:Win10Pro64bit

Rebuild the map and apply the configuration

After changing the source map, rebuild its indexed database with postmap using the map type configured on your server. The example uses LMDB, but installations may use another supported backend, so do not copy the prefix without checking your setup. After changing main.cf, reload Postfix so it reads the updated configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use catch-all forwarding only deliberately

An entry such as @example.com [email protected] forwards otherwise-unlisted recipients. Postfix warns that catch-alls may attract spam and bounces for messages forged from guessed addresses. Prefer explicit mappings when unknown recipients should be rejected.

Rank #3
Beelink SER5 Mini PC, Ryzen 5 5500U (6C/12T, Up to 4.0GHz), 16GB DDR4 RAM, 480GB NVMe SSD, Radeon Graphics 7 CUs, 4K Triple Display via HDMI/DP/Type-C, WiFi 6/BT 5.2, 2.5G LAN, Compact Office Desktop
  • Powerful AMD Ryzen 5 5500U Processor: Beelink SER5 Mini PC is powered by AMD Ryzen 5 5500U (2.1GHz-4.0GHz, 6C/12T, 8MB L3 cache), built by the latest breakthrough 7nm architecture, processing performance is 89% increased compared to the Ryzen 5 3500U. This Mini PC delivers smooth performance for business office tasks, creative design, and daily multitasking
  • High-Speed DDR4 RAM & Expandable Storage: Beelink 5500U mini pc Equipped with 16GB DDR4 RAM (dual-channel, supports up to 64GB) and a 480GB M.2 NVMe SSD. The SER5 supports storage expansion up to 4TB via the M.2 slot and includes a 2.5-inch 7mm SATA HDD slot for massive internal capacity (max 2TB, not included). Quicker load times of programs and apps for smoother using experience
  • Stunning Triple 4K@60Hz Display: Beelink SER5 Pro boosts your efficiency by connecting up to three monitors simultaneously. With HDMI, DisplayPort, and a Type-C (Data & Video) port, you can enjoy a seamless 4K ultra-high-definition setup at 60Hz for complex workflows and immersive entertainment
  • Ultra-Stable WiFi 6 & Bluetooth 5.2: Experience next-generation connectivity with WiFi 6 for faster speeds and lower latency, even in congested networks. The upgraded Bluetooth 5.2 ensures a more stable and efficient connection for all your wireless peripherals like mice, keyboards, and headsets
  • Compact Design & Efficient Cooling: Measuring only 4.96 x 4.44 x 1.65 inches, Beelink Ryzen 5 Mini PC is 1/40th the size of a standard desktop. The premium ABS body and full metal mesh design, combined with Beelink's advanced thermal engineering, ensure quiet and stable operation even under heavy workloads

Use a local user’s .forward file

For mail Postfix delivers to a local Unix account, its local delivery agent supports user-controlled forwarding through a file named .forward in that account’s home directory. This is separate from the virtual-domain map: use it for the local user’s delivery path, not as a substitute for domain-wide address mappings. Consult the installed Postfix documentation for the account’s local delivery configuration and applicable permissions.

Redirect mailbox messages with Dovecot Sieve

If mail is delivered through Dovecot LDA or LMTP and Pigeonhole Sieve is installed, a Sieve rule can filter messages or redirect them. Follow the documentation matching your installed Dovecot and Pigeonhole versions; examples and configuration details can differ between releases. The official references include Dovecot Sieve documentation and the autoforward guidance.

Rank #4
Kinupute AI Server, Mini PC Gaming, Desktop Computer i9-14900F 24 Cores, 64G DDR5, 4T M.2 PCIE4.0 SSD, 4T SATA SSD, Win-11 Pro, GeForce RTX5060Ti 16G, Four Display, 8K@60Hz Outputs, Dual LAN, WiFi7
  • [Powerful Processor] Mini Gaming PC equipped with Core i9-14900F, 24 Cores 32 Threads, 36M Cache, Max Turbo Frequency: 5.8GHz, Windows 11 pro (64 Bit).64G DDR5-5600 RAM| 4T M.2 NVME PCIE4.0 SSD| 4T SATA SSD. With GeForce RTX 50 Series GPUs. supporting ray tracing and AI cores. Delivering AI-acceleration in top creative apps. Whether you’re rendering complex 3D scenes, editing 4K video, or Gaming livestreaming with the best encoding and image quality.
  • [Powerful Capacity & Storage Expansion] The mini desktop computer is equipped with Dual-DDR5 RAM (dual channel DDR5 high-speed memory, which can support up to 96G RAM), 1 x M.2 2280 PCIE4.0 high-speed SSD, and support add 1 x 2.5-inch SATA HDD/SSD is enough to accommodate system files and massive games, Excellent reading and writing speed greatly shortening your boot time.
  • [8K@60Hz Four-Display] Mini PC equipped with GeForce RTX5060Ti 16GB GDDR7 discrete graphics card, supporting ray tracing and AI cores. easy connect 4 monitors, 1×HDMI 2.1b and 3×DisplayPort 2.1b(All Support 8K@60Hz display), It can provide you with a first-class TV experience and realistic picture quality, for your visual home entertainment, streaming video, web browsing, work design and 3D games create a very smooth experience.
  • [Functional Interfaces] Mini computer is equipped with 4 x USB 3.2, 4 x USB2.0, 1 x HDMI2.1 port, 3 x DP2.1 ports, 2xRJ-45 Gigabit Network Ethernet, 1 x Fiber Optic PORT, 1 x Audio in/out. Built-in Bluetooth 5.4 and IEEE 802.11be wifi 7, Higher transfer rates and lower latency. Mini PC supports multiple device connection and can be used with servers, monitoring equipment, office equipment, projectors, televisions, etc, Mini desktop computer support automatic power on and Wake On Lan.
  • [Warranty & heat dissipation] Warrant: 2 year/24 months. The compact computer size: 8.6*6.6*4.5in, 5.5lb, Inside the chassis are four all-copper turbo fans and eight vacuum heat pipes for powerful cooling performance. Make it can work smoothly and will not cause too much noise.

Forwarding an unchanged envelope sender can cause SPF checks to fail farther along the delivery path. Dovecot’s autoforward example also relies on the correct order of header changes and the redirect. There is no universal fix established for every mail flow: the appropriate handling depends on your configuration and the receiving provider’s authentication behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure safely and verify delivery

  1. Trace delivery first. Determine whether the address is handled by a Postfix virtual alias, local account delivery, or Dovecot LDA/LMTP with Sieve. Avoid adding a second forwarding rule at another layer.
  2. Add only intended recipients. With a Postfix virtual map, rebuild the indexed map after editing it. Reload Postfix after relevant main.cf changes, and use the map backend configured on your server.
  3. Keep relay authorization narrow. Postfix documents controlling which client networks may relay and where messages may be relayed. Do not broaden authorization without understanding its effect; an exposed open relay can be abused. If direct Internet delivery is blocked or unsuitable, Postfix documents using a relayhost instead. Check the relay provider’s mail policies before relying on it. See the Postfix Basic Configuration guide.
  4. Test from outside your server. Send a message from an external account to each forwarded address. Check whether it arrives, and inspect authentication results at the destination, especially for externally forwarded messages.
  5. Test unknown recipients if using a catch-all. Confirm what happens to an address with no explicit mapping, then monitor for spam and bounces.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What forwarding does—and does not—change

A forwarding rule changes where a message is delivered after your server receives it; it does not by itself make the destination trust the message. SPF evaluates whether the sending server is authorized for the envelope sender’s domain, so forwarding through your server with the original envelope sender can produce an SPF failure at the next recipient. Inspect the destination’s authentication results rather than assuming that successful local acceptance guarantees final delivery.

Best Value
Fanless Mini PC Stick Win 11 Pro, Celeron J4105 8GB RAM 128GB eMMC Desktop Computer Stick, Support 4K HDMI, RJ45 Gigabit Ethernet, WiFi 5 for Industry IoT Media Business Office Digital Signage
  • 【Supports Linux and Win11】Micro PC win 11 equipped with Celeron J4105 (2GHz to 2.7GHz) processor, supports Win 11 Pro OS, supports Linux, Ubuntu as well. This portable and powerful fanless mini computer is a great helper for your business, office, entertainment, classroom, conference room, industrial IOT applications, home and more
  • 【Low-noise fanless design and PC material】Mini PC fanless has a special cooling system and outer texture design (efficient heat dissipation) to simulate overheating, no fan no noise. Provides a quiet and stable computer environment when using, portable PC supports 7/24 hours operation
  • 【USB-C and multiple interfaces】Desktop mini PC stick Win 11 Pro equipped with 1 x USB-C (wider compatibility), 2 x USB 3.0 ports, TF card reader, 1 x HDMI 2.0 ports, 1 x Gigabit LAN port, 1 x 3.5 mm audio jack, you can connect to multiple devices such as projector, NAS, monitor, keyboard mouse, etc., mini desktop supports USB PD 3.0 Charge 0 Charge 024 W)
  • 【Dual band Wi-Fi & 4K @ 60Hz】Portable mini pc stick server built in 2.4/5GHz I/O ports, WiFi and Bluetooth 5.0, our fanless mini PC equipped with HDMI port together with the UHD 600 graphics, supports HDMI 4K UHD graphics output, which can improve your video images to be more vivid
  • 【Storage and storage】Mini PC stick HDMI equipped with 8GB LPDDR4, 128GB eMMC, fully functional to perform Win11 and HD video, micro computer can be easily connected to other devices, so you can easily deal with multiple tasks and projects at the same time

These methods differ mainly by where their rules live: a domain mapping in Postfix, a local account’s delivery settings, or a mailbox’s Sieve rules. The relevant project documentation establishes those scopes and the SPF caveat, but does not establish one approach as best for every installation.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.