I have two domains, I want to have the emails goto the specified user and if they dont exist to send to the catch-all mail account.
This works for one domain but not the other. Im totally baffled. I am doing postmap /etc/postfix/virtual after writing.
This is my virtual file...
As soon as I add...
mail comes to me (apalmer). If I do...
Then map a new user to that domain, mail goes to that user. Anything else goes to me. Just how I want it.
Figured it out. Postfix knows example1.com is its own domain. It didnt like me to make a virtual domain with the same name. Change postfix to think its own domain name is localhost. Fixed.