Postfix virtual domain
I have a mail server and web server running using domain domain1.com
I just registered a new domain domain2.com
I set the new domain domain2.com as virtual domain.
I edit the httpd.conf and add domain2.com as virtual host. I add the zone file for the virtual domain at BIND named.conf. Now the web server is running OK for the old domain and new domain. But I had problem in setting the postfix.
I want all the users' mail to be sent from the server using the new domain domain2.com. Moreover, I also want to receive mails that are sending both to the old domain domain1.com and the new domain domain2.com.
I edit the following lines in Postfix main.cf:
mydomain = domain2.com
myorigin = $mydomain
mydestination = $myhostname,localhost.$mydomain,$mydomain
I add the following lines in virtual:
I had problem in receiving mails. Any idea what is the problem. Thanks