Our Linux host (CentOS) has several shared domains, one of which is example.com (fake host and user names used throughout this message);
We use /etc/mail/virtusertable
to have all mail to example.com delivered to the "exmpl" user, and ~exmpl/.procmailrc
forwards mail as appropriate. This method allows exmpl to maintain their own forwardings, which /etc/mail/aliases does not. Actually, virtusertable has known recipients for example.com, and rejects mail to unknown recipients. We learned that lesson long ago.
However, mail forwarded in this way was failing:
Apr 30 21:33:30 bogus sendmail[25645]: r412XUQ8025645: to=person@bogus.org, ctladdr=exmpl (504/504), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30965, relay=[127.0.0.1] [127.0.0.1], dsn=5.6.0, stat=Data format error
This seemed quite strange, because "person" is a valid user on bogus.org, and in fact bogus.org is the main domain on the same machine as example.com!
How can we fix this?