Skip to content

Instantly share code, notes, and snippets.

@mudpile45
mudpile45 / howto.md
Created October 18, 2012 08:59 — forked from bsodmike/howto.md
HOWTO: Setup mail forwarding with Sendmail in Ubuntu 10.04 LTS

Domain to domain mail forwarding

This guide combined with the info here allows you do the following:

  • Forward all mails from one domain to another (via catch-all addresses)
  • Set up a catch-all email address (just enter a @ with no user in front of it in the virtuserstable)
  • set up distribution lists etc. (use commas)

Why would you want this? Well, for me I own some domain names and I like to use gmail to read my mail. One use case is that we have a small organization that I've already set up a google for domains account with, but the organization has multiple domains that all redirect to our website. I wanted our mail to also all redirect to the same mail, so I created MX records for all the domains that are supposed to redirect and pointed them at my VPS and on my VPS I set up mail relaying to my original google for domains account, with entries for each user. This way, if I had my google domains running at myemail@mygoogledomain.com, but som