Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 user@domain1.com are received BUT all attempts to send messages from GMail to user@domain2.com and user@domain3.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 <user@domain2.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 user@domain2.com to point to user@domain1.com but i don't want to install IMAP servers on all the servers :|

share|improve this question
IMAP servers don't receive mail; they serve mailboxes. Please include the output of postconf -n and a snippet of the postfix mail log showing one message that goes wrong. –  adaptr Mar 21 '12 at 14:37
1. catb.org/~esr/faqs/smart-questions.html 2. Hire real Postmaster –  Lazy Badger Mar 21 '12 at 15:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.