Postfix setup catch-all email accounts using /etc/postfix/virtual
Q. How do I setup cacth-all email accounts under Postfix MTA? For example if an email send to me@domain.com, info@you.com and sales@you.com, should be sent to the same email address.
This is useful if anyone of user mistypes an email address when they send it to me, or just guesses at a valid email address, then they will likely get an error message from my server such as user / email mail box does not exist. So I wish to set up a "catch all" address
A. Mapping is done using /etc/postfix/virtual file.
# vi /etc/postfix/virtual
Append code as follows, replacing domain and emailusername with actual values:
@yourdomain.com emailusername
Save and close the file. Run following command:
# postmap /etc/postfix/virtual
Also make sure you have following line in /etc/postfix/main.cf file:
virtual_alias_maps = hash:/etc/postfix/virtual
If you just added above, line reload postfix:
# service postfix reload
Caution: if you set up a catch-all email address, you will likely receive more unsolicited (spam) email.
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Linux / UNIX find out size of email account or mailbox
- Postfix blacklist or reject an email address
- Bind Postfix Mail Server To Localhost or Specific IP Address Only
- Postfix block PDF or ZIP files attachments
- Configure Postfix for DNS Blackhole Lists such as dsbl.org / spamhaus.org database
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: configuration, email_accounts, error_message, howto, Linux, mail_box, mta, postfix, UNIX, virtuao_email



Recent Comments
Today ~ 3 Comments
Today ~ 57 Comments
Yesterday ~ 9 Comments
Yesterday ~ 7 Comments
Yesterday ~ 1 Comment