We have two email servers (sender_and_receiver.example.com
and send_only.example.com
) which handle the mail exchange for one specific domain (example.com
). As the names implies, one server is sending and receiving emails (sender_and_receiver.example.com
- this one should take care of incoming emails, with Postfix and Dovecot) and the other one is a send only server (only Postfix as a send-only MTA). The problem we have is that some (not all) incoming emails just don't get delivered. I assume it's a DNS problem. I have set up the following MX records:
CNAME smtp.example.com -> sender_and_receiver.example.com
CNAME imap.example.com -> sender_and_receiver.example.com
MX @ sender_and_receiver.example.com 10
MX @ send_only.example.com 30
I think that some senders try to deliver to MX @ send_only.example.com 30
instead to the record with the priority of 10
. I would have left only one DNS record, but if I remove the DNS record for the send-only server, it'll get blacklisted.
How can I solve that problem? What is the correct way for such a setup (two email servers, one sending+receiving and one sending only)?