I'm trying to create IMAP mailboxes on my company's servers using Dovecot and Postfix as incoming and outgoing servers.
The problem is that we have few domains with different "A" records. I've installed the IMAP server on only 1 of the servers who serves content to 1 domain out of 3. The rest 2 domain's "MX" records are redirected to the 1st server's domain name. And here comes the problem ...
All emails sent to email@example.com are received BUT all attempts to send messages from GMail to firstname.lastname@example.org and email@example.com fail with the following message
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <firstname.lastname@example.org>: Relay access denied (state 14).
I'm new in all this and i don't really know how to debug this. I added all domains to "my_destination" of postfix config (I read guides about that but what postfix has to do with this anyway ? :O)
I've read all the similar questions about relay access denied I've tried everything and I'm out of ideas. I want email@example.com to point to firstname.lastname@example.org but i don't want to install IMAP servers on all the servers :|