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 firstname.lastname@example.org are received BUT all attempts to send messages from GMail to email@example.com and firstname.lastname@example.org 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 <email@example.com>: 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 firstname.lastname@example.org to point to email@example.com but i don't want to install IMAP servers on all the servers :|