MX record
Also called Mail exchanger record
A DNS record that names the servers that receive email for a domain, in order of preference.
When someone sends mail to you@example.com, their server looks up the MX records of example.com to find out where to deliver it. Each MX record names a mail server and gives it a priority number. Lower numbers are tried first; higher ones are fallbacks.
MX records only control incoming mail. They have nothing to do with where your website is hosted or which servers may send mail for you; that is SPF.
Changing MX records is the moment a domain’s mail moves to a new provider. Because DNS answers are cached, the change takes effect gradually, and some mail can reach the old servers for a while. Read Moving to a new email provider without losing mail.