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:
reject: RCPT from ns.primary.com[xxx.xxx.xxx.xxx]: 450 <email@example.com>: User unknown in local recipient table; from=<firstname.lastname@example.org> proto=ESMTP helo=<ns.primary.com>
I checked my main.cf file and the mydestination parameter is
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
mydestination= "$myhostname, localhost.$mydomain, virtualdomain.org"
this error goes away and it says that it can't relay.