Updating the Postfix configuration to use SendGrid as a relay host is easy. For more advanced configuration scenarios, you’ll need to refer to the Postfix documentation.
Find your Postfix config file, typically /etc/postfix/main.cf, and add the following: