LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Postfix - Virtual Database (https://www.linuxquestions.org/questions/linux-software-2/postfix-virtual-database-363061/)

]SK[ 09-13-2005 03:49 PM

Postfix - Virtual Database
 
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...

Code:

# Virtual domains
example1.com virtualdomain
example2.com virtualdomain

# Virtual user maps
prometheus@example1.com jmiller
pippa666@example1.com hnicol

maddin@example1.com mwerner
miz@example1.com mfleming

# Virtual catch-all maps
@example2.com apalmer

As soon as I add...

Code:

@example1.com apalmer
All mail comes to me (apalmer). If I do...

Code:

@example2.com apalmer
Then map a new user to that domain, mail goes to that user. Anything else goes to me. Just how I want it.

*Edit*

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.


All times are GMT -5. The time now is 08:45 PM.