… it most often happens when the domain name is not a valid domain name, just as the error message says. Check the domain name in your envelope sender addresses, and fix them if they are not valid. Remember that the point of the envelope sender is to be a place where error messages can be sent. Some people will refuse to accept your mail in the first place, with this error, if you supply envelope sender mailboxes that they know won't work.