I suspect the answer to this is going to be "Well, don't do that then." but I may as well ask...
I have a VM that's running two services. One of them is a vanilla postfix smarthost - it accepts mail on port 587 and relays it out to the world. The other is an unrelated smtp server that listens for inbound email on port 25. They use unrelated domains and hostnames, but are both on the same IP address. If I try and send mail via the smarthost to the inbound smtp server the postfix rejects the attempt with "mail for <the destination domain> loops back to myself". That's not an unreasonable thing for it to think, but is there any way to tell postfix that it's just a smarthost, not an MX listening on port 25, and it shouldn't worry it's little head about mail loops? Cheers, Steve