Extract SendGrid sender ID to a Spamassassin Tag - SENDGRIDID
Copy SendGrid.* files to /etc/spamassassin or /etc/mail/spamassassin - depending on your installation.
Example configuration shows using tag with askdns plugin.
Don't forget to restart spamd