LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Postfix virtual domain (http://www.linuxquestions.org/questions/linux-newbie-8/postfix-virtual-domain-149691/)

eyt 02-23-2004 06:07 PM

Postfix virtual domain
 
Hi all,

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:
domain2.com anything
@domain2.com @domain1.com

I had problem in receiving mails. Any idea what is the problem. Thanks


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