Configurar Sendmail para el envio a Gmail

1. Install prerequisites

2. Create Gmail Authentication file

nano gmail-auth

Replace the above email with your gmail or google apps email.

In the next step we will need to create a hash map for the above authentication file:

3. Configure your sendmail

Put bellow lines into your sendmail.mc configuration file right above first «MAILER» definition line:

Do not put the above lines on the top of your sendmail.mc configuration file !

In the next step we will need to re-build sendmail’s configuration. To do that execute:

Reload sendmail service:

and you are done.

4. Configuration test

Now you can send an email from your command line using mail command:

If you will experience substitutional delays after executing the above command to most likely cause is that you have not configured your host with FQDN.  Check your logs for a warning: