0

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?

2
  • btw i want to use unix accounts on the machine Feb 4, 2016 at 22:27
  • wow thank you very much! So simple! All i needed was a comma and added the second domain. Thank you so much! Feb 5, 2016 at 0:15

1 Answer 1

0

You need to add the other domain to the mydestination directive in your Postfix configuration.

4
  • 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.
    – fkraiem
    Feb 5, 2016 at 11:56
  • 1
    @fkraiem: could you please edit your answer and put that crucial information in there? As your answer is worded right now, it's vulnerable to automatic deletion by the system because of a lack of quality... ;-)
    – Fabby
    Feb 5, 2016 at 22:31
  • 1
    I 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .