LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Postfix and virtual domains (https://www.linuxquestions.org/questions/linux-software-2/postfix-and-virtual-domains-156576/)

nvargas 03-11-2004 11:15 PM

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.

I´ve 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.

mossy 03-11-2004 11:36 PM

Just a wild guess but is your reverse dns setup properly?
This can result in not recieving mail.

nvargas 03-11-2004 11:45 PM

That may be a problem, since the reverse is still using my ISP address. Let me modify that and will tell you tomorrow! Thanks!

mossy 03-11-2004 11:54 PM

no problem ~ hope it works - have a look at my issue will yah?
:)

nvargas 03-12-2004 09:13 AM

Mossy,

nvargas 03-12-2004 09:18 AM

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.

nvargas 03-12-2004 02:35 PM

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?


All times are GMT -5. The time now is 02:40 AM.