I would like to forward all email sent to non-existant users on my fedora server to my gmail account. Is there a simple way to do this?
How would I forward all email?
Set "mydestination=" in main.cf to include the domains that you receive mail for. You will need to make sure that each of those resolves correctly in DNS, I believe.
Then add or edit "virtual_alias_maps" in main.cf to look like this:
Then add the domains to /etc/postfix/virtual:
and restart postfix if you edited main.cf at all.
This will forward mail sent to example.org and someotherdomain.com to your gmail account.