In order not to load your hardware with a full-fledged mail server, you can use Gmail.
The manual concerns only exim4 (it is possible and suitable for previous versions). You need to edit the configuration files /etc/exim4/update-exim4.conf and /etc/exim4/passwd.client
Run the update-exim4.conf command to update the settings, and restart Exim. Now all mail sent from the current machine using sendmail will be redirected to Google's SMTP server.