Can I set up a virtual domain on one box so that a few specific email addresses get forwarded to gmail, and everything else (using a wildcard) goes to another system I control? For example, can I put in /etc/postfix/virtual
[email protected] [email protected]
[email protected] [email protected]
*@xcski.com *@home.xcski.com
You can do this for a wildcard:
(ie. what you had without the asterisks). From the
VIRTUAL(5)
documentation:Yes, but wildcard rewriting defeats address validation. The usual disclaimers about catchall addresses apply in that case.
The usual advice, if you have a list of known/valid addresses, is to let the computer do the work for you and generate /etc/postfix/virtual from your database of known addresses (or use a database maptype). Make(1) is your friend.