If the system does not provide a local SMTP server we could fall back on the default smart host settings. If they do not exist and if mattermost allows it, use the sendmail
command.
It neither a default smart host nor the sendmail command are applicable, configure a SMTP server from the UI.