By Thore
Hey guys,
I have a (Linux) server running with Postfix as an email server. When registering to a new site I do not want to use a single mail twice so when my email gets leaked by a security breach at any site only this one mail get published in lists to the internet, but because I only used it on that site it would be useless. By this meaning, I would always have to create a new email user whenever I sign up to a site and I would also have to enable email forwarding to the “main” email (having a ton of addresses is not an option). As I am lazy I do not want to do this so I am looking for a way to automatic forward emails to a specified account when the recipient’s email would be on my server but does not exist.
best regards Thore
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi ThoreTheWookie,
What you are looking for is setting up a catchall mailbox.
With a catchall mailbox, all your e-mails will be redirected to one account. Some websites send confirmation e-mail messages to the e-mail account you use to register. In this case, using a catchall would be the best option.
Let’s set a catchall Postfix mailbox then
@example.com myuser
@example.com myuser
DO@example.com info
test@example.com support
postmap /etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual
service postfix reload
Now you have a catchall mailbox configured.
Kind regards, Kalin D.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.