LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-16-2003, 04:33 AM   #1
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Postfix and multiple domains


Hello there!

Just wanted to comment on the thread I'm about to start:
Does anyone else feel "revealed" when they post up actual IP's and domains on their posts?

Ok, so here's my problem:

I have apache setup with virtual hosting of 3 domains (well 2 virtual and then the default). I, for the life of me, cannot figure out how to recieve email properly for 2 of the domains.

Let me break it down a bit:
All of these point to the same IP:
curvins.com (virtual)
masterc.no-ip.org (the default)
cherokeegods.com (virtual)

The first 2 (in apache) also have the same DocumentRoot (et al) and cherokeegods.com has a completely seperate layout (it's not mine, but I'm hosting it for a friend). I've been able (and have had 0 problems with it) to successfully setup recieving mail for curvins.com So I figured if I simply aliased masterc.no-ip.org to resolve to curvins.com in my Zone file (www.zoneedit.com is my DNS provider for curvins.com (and cherokeegods.com )and www.noip.com is my DNS for masterc.no-ip.org ) that sending email to:
xxxx @ masterc.no-ip.org
would simply resolve to:
xxxx @ curvins.com
But it would seem I am wrong (or possible just set something up wrong), because here is the message I recieve:
Code:
This is the Postfix program at host cooler.curvins.com.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the message returned below.

                        The Postfix program

<xxxx @ masterc.no-ip.org>: mail for masterc.no-ip.org loops back to myself
If anyone has any ideas, or wants to see any of my setups, or needs anymore info, please let me know. I'll be happy to provide.

Thanks!

Cool

Last edited by MasterC; 07-16-2003 at 04:35 AM.
 
Old 07-16-2003, 06:10 AM   #2
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
"mail for masterc.no-ip.org loops back to myself"

This would suggest that it is trying to forward the mail to another machine, because it thinks that it is not supposed to receive the e-mail. So it does a DNS request and finds that the mail is supposed to come back. So it gets stuck in a loop.

What you need to do is to setup Postfix to receive for all the domains you are hosting. The hostname for your machine (im guessing) is curvins.com, find the following line in your postfix config file:

mydestination = $myhostname, localhost.$mydomain

and add all the other domains you wish to receive for. So here is my line for extra domains i am receiving for (tanzofund.dyndns.org):

mydestination = $myhostname, localhost.$mydomain, tanzofund.dyndns.org

Then just set your DNS to send your mail to your IP and it should work.

Paul
 
Old 07-16-2003, 06:33 AM   #3
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
Sweet! I was hoping it was something as cool as that Thanks for the help! I'll give it a go later on, and I'm sure it'll work (it makes sense of course ).

Cool
 
Old 07-16-2003, 01:17 PM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
Just following up to let you know it worked flawlessly, thank you very much for your prompt assistance!

Cool
 
Old 07-16-2003, 01:19 PM   #5
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
You helped me, so i'll help you and will continue to help everyone i can
 
  


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
How to make postfix accept mail from multiple domains Farthom Linux - Newbie 4 09-14-2006 11:13 AM
Postfix multiple domains & mailboxes fatum112 Linux - Software 0 11-21-2005 01:13 PM
Postfix and virtual domains nvargas Linux - Software 6 03-12-2004 02:35 PM
managing different domains with postfix jules_fraser Linux - Networking 1 12-22-2003 11:07 PM
Postfix cannot find domains pnh73 Linux - Networking 3 09-23-2003 02:04 PM


All times are GMT -5. The time now is 01:24 AM.

Main Menu
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