Sendmail is email routing software that can allow Linux systems to send an email from the command line. This allows you to send email from your bash scripts, hosted website, or from command line using the mail
command. Another example where you can utilize this setting is for notification purposes such as failed backups, etc.
In this guide, we’ll go over the step by step instructions to configure Gmail as a relay for the sendmail client on Linux. Note that Sendmail is just one of many utilities which can be configured to rely on a Gmail account. Others that are capable of this include postfix, exim, ssmpt, etc. The instructions here should work for any mainstream Linux distribution.
In this tutorial you will learn:
- Gmail configuration prerequisites
- How to install Sendmail and mail utilities on Linux
- How to configure Gmail as a relay for Sendmail
- How to test the config by sending an email from command line