title: Smarthost configuration to configure sSMTP to relay sendgrid
body: <p>The "clear problem statement" is How to configure sSMTP to relay sendgrid as smarthost ?</p>
  
  <p>The default sSMTP config is::</p>
  
  <pre><code>$ cat /etc/ssmtp/ssmtp.conf
  root=postmaster
  # MX records are consulted. Commonly mailhosts are named mail.domain.com
  mailhub=mail
  #rewriteDomain=
  hostname=spinoza 
  </code></pre>
  
  <p>With Exim4 we can configure SMTP as a  smarthost using the following configuration (it's working)::</p>
  
  <pre><code>root@me:/etc/exim4# grep -E 'sendgri|smart' update-exim4.conf.conf
  dc_eximconfig_configtype='smarthost'
  dc_smarthost='smtp.sendgrid.net::587'
  root@me:/etc/exim4#
  </code></pre>