If you would like to configure postfix to use Sendgrid as the mail relay, you can do so by editing the postfix main configuration file. vi /etc/postfix/main.cf And then paste the content below at the end of the file : smtp_sasl_auth_enable = yes smtp_sasl_password_