Quote:
Originally Posted by MrSako
i want to be able to have email for both of my domain names i own (running my own postfix server).
|
I will take that to mean that you would like Postfix to receive emails addressed to 2 domains, and that the user part of the address is then delivered to the same user's mailbox, regardless of the domain part of the address.
I will also assume that all outgoing emails are going to appear to be coming from either one domain, or the other - but not both.
The reason I am assuming these things is that it's the simplest way to implement a multiple domain configuration. Taking into account your lack of detail as far as what you want to accomplish, this is the configuration I'll describe.
Quote:
Originally Posted by MrSako
going through the configuration of postfix it looks like when it was designed the designers only had in mind that the user would be using one domain name with postfix
|
You couldn't be more mistaken. Postfix is very flexible and has built in mechanisms for hosting multiple domains, as evidenced by the following README file right from Postfix's web site:
http://www.postfix.org/VIRTUAL_README.html
Now down to the nitty gritty.
Let's say your 2 domains were named "abbott.com" and "costello.com". And let's assume that the domain you would like shown on outgoing emails is "abbott.com". Then you would simply execute the following commands, and you're all done.
Code:
postconf -e "myorigin = abbott.com"
postconf -e "mydestination = abbott.com costello.com localhost localhost.$mydomain $myhostname"
postconf -e "transport_maps = "
postfix reload
Any other questions?