Context: let's say I have the domain example.com
, but the registrar doesn't provide an "email forward" system.
How can I configure postfix
(or even a simple Python script would be better, because I could customize certain forwarding rules) to use my server of IP 1.2.3.4 as a server that only redirects every mail incoming to *@example.com
("catch-all") to [email protected]
?
The DNS record would probably be something like:
mx.example.com MX mailforwarder.example.com
mailforwarder.example.com A 1.2.3.4