LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-23-2004, 06:07 PM   #1
eyt
Member
 
Registered: Sep 2003
Posts: 76

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bounce selected users in virtual domain with Postfix? annekaelber Linux - Software 5 10-18-2007 02:58 PM
what would make ever virtual domain name resolve to one domain name on my system kuplo Linux - Newbie 1 11-14-2005 07:57 PM
virtual domain & postfix jrafalek Linux - Software 1 02-05-2005 09:08 AM
postfix and virtual domain problems... MadOtis Linux - Software 1 04-28-2004 08:23 AM
Imail Upgrade to Postfix Squirrelmail and Outlook Express Virtual Domain Logon ramram29 Linux - Software 0 01-29-2004 10:21 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration