I have 2 domains on my ubuntu server. I am trying to figure out how to use them both on my machine using postfix. The main domain works, however the second domain has the email rejected with a "relaying denied" error. I've been told this can be fixed in postfix but apparently i'm clueless. How can i make this work?
1 Answer
You need to add the other domain to the mydestination
directive in your Postfix configuration.
-
is there a command i need to do after that? should it be a second mydestination on the next line or a comma after the first domain? Feb 5, 2016 at 0:04
-
You need to restart Postix or reload the configuration after making change, of course. Multiple domains in
mydetination
must be separated by commas.– fkraiemFeb 5, 2016 at 11:56 -
1
-
1I recommend editing this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.) Feb 7, 2016 at 18:49