To help with Docker Deployments, I suggest switching to the REST API for Sendgrid, and just calling for the API Key, Interfacing with Sendgrid's API is pretty stupid easy
Most providers block all the ports you would use for the SMTP versions of sendgrid