Is there a way for an SMTP server to tell an MTA that a user has moved to a new address?
There are many SMTP return codes, including for common situations like Mailboxes being full, the address not existing, the message being rejected etc.
Is there currently, or is there a proposal, to allow a server to respond to incoming mail with an error code that the user has changed email addresses and is now available at a new domain?
Again, draft proposals are OK. I've looked in RFC 5321 section 4.2.3 and perhaps '251: user not local will forward' works but I'm not sure how email practically works in 2020.
Use case: users migrating between email providers is a common scenario and I can imagine having a grace period (where the old provider lets incoming MTAs know the user has moved to another address) has probably been discussed before.
Example a user was [email protected], but has have moved to bar.com. foo.com is happy to let incoming connections know that this identity is now at a different domain, and that senders should update their address books, for some period of time (say 12 months), before foo.com no longer provides any service for this identity at all.