What is a masked or proxy email address?
It is an address created only to be handed out, such as shop-9xk2@relay.example, which forwards everything to your real mailbox. Each website or contact gets its own alias. If one starts receiving spam, you know who leaked it and you can switch that alias off without changing your main address. Many privacy tools and some password managers create these on the fly. Replies can also go back out through the alias, so the other party never learns the real address at all.
What does proxy email mean on the server side?
Admins use the phrase for mail systems that stand between the internet and a final mailbox:
| Setup | Direction | Why people use it |
|---|---|---|
| Inbound gateway | Internet to gateway to mailbox server | Spam and malware filtering before mail reaches users |
| Outbound relay (smarthost) | Application to relay to internet | One well-managed sending point with good reputation |
| SMTP proxy | Either way, inspecting the session | Rate limits, logging, policy checks |
| Alias forwarder | Internet to alias host to real inbox | Masked addresses, catch-all domains |
Why does forwarding mail break authentication?
SPF checks whether the sending server may send for the envelope sender's domain. When your alias host forwards a message from news@store.example, it is now your server sending mail that claims to come from that store, and the store's SPF record does not list your address. The fix is the Sender Rewriting Scheme: the forwarder rewrites the envelope sender to its own domain so SPF passes, while DKIM signatures on the original message stay intact as long as the body and signed headers are not changed. Adding footers or rewriting subjects breaks DKIM, so a clean forwarder passes messages through untouched.
How would I build an alias forwarder on my own machine?
Postfix with virtual alias maps and an SRS daemon is the usual stack on Debian or Ubuntu:
apt install -y postfix postsrsd postconf -e 'virtual_alias_domains = relay.example' postconf -e 'virtual_alias_maps = hash:/etc/postfix/aliases_masked' printf 'shop-9xk2@relay.example owner@mailbox.example\n' >> /etc/postfix/aliases_masked postmap /etc/postfix/aliases_masked postconf -e 'sender_canonical_maps = tcp:127.0.0.1:10001' 'sender_canonical_classes = envelope_sender' postconf -e 'recipient_canonical_maps = tcp:127.0.0.1:10002' 'recipient_canonical_classes = envelope_recipient,header_recipient' systemctl restart postsrsd postfix
Point the MX record of relay.example at the machine and publish SPF for it. The default ports shown match the classic postsrsd setup; newer releases can talk to Postfix through a socketmap instead, so check the package documentation for your version.
Should application mail go through a relay?
Usually yes. Sending directly from a fresh address means building reputation from zero, keeping up with each large mailbox provider's rules, and handling bounces yourself. A dedicated sending service or a relay you already trust takes care of that, and your app simply authenticates to it on port 587. Configure Postfix as a null client that hands everything to the relay with relayhost = [smtp.relay.example]:587 plus SASL credentials, and keep local delivery off. Email server goes through running a full mail stack.
How do I check that a forwarder is behaving?
Send a test message from an outside mailbox to an alias and read the full headers in the destination inbox. The Authentication-Results line should report spf=pass for the rewritten envelope domain and dkim=pass for the original signer. On the server, journalctl -u postfix@- -n 50 or tail -f /var/log/mail.log, depending on the distribution, shows each hop with a queue ID you can follow. A growing queue in postqueue -p usually means the destination is deferring you, which is the first sign of a reputation or authentication problem worth fixing before it turns into rejections.
What about abuse and spam rules?
A mail relay that accepts messages from anyone is an open relay and is abused even faster than an open web proxy. Require authentication for submission, restrict mynetworks to localhost, and rate limit per sender. Bulk mail to people who did not ask for it is outside fair use whatever the route. Aliases for your own inbox and transactional mail for your own customers are normal uses.
What hardware does a mail proxy need?
Very little CPU; the work is spam filtering, which likes RAM for its rule sets and Bayes data. A forwarder for a family or small company fits on the E1 (16 GB DDR3). A filtering gateway for many domains with antivirus scanning is more comfortable on the S1 with 64 GB DDR4 and NVMe for the queue.
Small Machines for Mail Forwarding
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| E1 | Intel Xeon E3-1240 v3 | 4 / 8 | 16 GB DDR3 | 2x 240 GB SSD | 2x 1 Gbps | $30.52 | $91.56 (3 months) |
| E2 | Intel Xeon E3-1270 v3 | 4 / 8 | 32 GB DDR3 | 1x 480 GB SSD | 2x 1 Gbps | $38.32 | $114.96 (3 months) |
| S1 | Intel Xeon E-2276G | 6 / 12 | 64 GB DDR4 | 1x 1 TB NVMe | 2x 10 Gbps | $53.32 | $53.32 (1 month) |
Keep Reading
Email server
The parts of a mail server, from SMTP and IMAP to spam filtering, and the DNS and delivery details that decide whether mail arrives.
OpenProxy server
A server that sits between clients and destinations and forwards their traffic, in forward or reverse form, for control, caching or privacy.
OpenDNS Settings
The records and resolver options that decide where a domain points and which servers a machine asks, with the files to edit on Linux.
OpenFAQ
Quick Answers
A stand-in address that forwards to your real inbox. You can give a different one to each site and disable any that starts receiving spam.
The forwarding server is not listed in the original sender domain SPF record. Sender Rewriting Scheme changes the envelope sender so SPF passes.
Not if the forwarder leaves the body and signed headers unchanged. Adding footers or editing subjects invalidates the signature.
An outbound relay that your server hands all mail to, which then delivers it to the internet with its own established reputation.
Yes. Postfix with alias maps and an SRS helper is a common, light setup. Keep submission authenticated so it never becomes an open relay.