LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-11-2004, 11:15 PM   #1
nvargas
Member
 
Registered: Jan 2002
Location: Managua, Nicaragua
Distribution: Mandriva, SuSE, Ubuntu
Posts: 46

Rep: Reputation: 15
Postfix and virtual domains


Hi,

I have a linux box with my domain MX entry, and I want to set another one to provide email services for virtual domains. Lets say that my primary box is ns.primary.com and the new one is mail.primary.com

It is sending mail just right, but it can't receive.

Ive been fiddling around with the Postfix configuration to no avail, because when I want to send an email to the new box from any other host, it rejects the message and produces the following error:

Code:
reject: RCPT from ns.primary.com[xxx.xxx.xxx.xxx]: 450 <user@virtualdomain.org>: User unknown in local recipient table; from=<myusername@primary.com> proto=ESMTP helo=<ns.primary.com>
I checked my main.cf file and the mydestination parameter is

Code:
mydestination= $myhostname, localhost.$mydomain, virtualdomain.org
the myhostname parameter is mail.primary.com
the myorigin parameter is primary.com

If I change the mydestination parameter to

Code:
mydestination= "$myhostname, localhost.$mydomain, virtualdomain.org"
this error goes away and it says that it can't relay.
 
Old 03-11-2004, 11:36 PM   #2
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
Just a wild guess but is your reverse dns setup properly?
This can result in not recieving mail.
 
Old 03-11-2004, 11:45 PM   #3
nvargas
Member
 
Registered: Jan 2002
Location: Managua, Nicaragua
Distribution: Mandriva, SuSE, Ubuntu
Posts: 46

Original Poster
Rep: Reputation: 15
That may be a problem, since the reverse is still using my ISP address. Let me modify that and will tell you tomorrow! Thanks!
 
Old 03-11-2004, 11:54 PM   #4
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
no problem ~ hope it works - have a look at my issue will yah?
 
Old 03-12-2004, 09:13 AM   #5
nvargas
Member
 
Registered: Jan 2002
Location: Managua, Nicaragua
Distribution: Mandriva, SuSE, Ubuntu
Posts: 46

Original Poster
Rep: Reputation: 15
Mossy,
 
Old 03-12-2004, 09:18 AM   #6
nvargas
Member
 
Registered: Jan 2002
Location: Managua, Nicaragua
Distribution: Mandriva, SuSE, Ubuntu
Posts: 46

Original Poster
Rep: Reputation: 15
Mossy, I don't use webmin, I do it from the config file itself, sorry!

Now, my ISP has given me my reverse for that box, but checking the logs says

Code:
 User unknown in local recipient table;
If someone can help me, it would be very appreciated. I can send you the whole config file.
 
Old 03-12-2004, 02:35 PM   #7
nvargas
Member
 
Registered: Jan 2002
Location: Managua, Nicaragua
Distribution: Mandriva, SuSE, Ubuntu
Posts: 46

Original Poster
Rep: Reputation: 15
I noticed something: In the mydestination parameter, if the line is too long
I have to continue on the next, but that seems to be the problem.

Any domain that is located in the second line is not recognized. I start that line with a blank space. Suggestions?
 
  


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 send mails for virtual domains? Chowroc Linux - Networking 0 12-24-2004 04:39 AM
No Incoming postfix mail, virtual domains geokker Linux - Software 0 06-22-2004 06:09 AM
Mailman + postfix virtual domains paulten Linux - Networking 0 01-12-2004 06:39 AM
PostFix multipe domains (virtual setup) dulaus Linux - Networking 0 10-10-2002 04:58 PM
Virtual Domains gene_gEnie Linux - Networking 2 09-16-2001 01:56 PM


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

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