title: Splunk sendemail fails [Errno 99] with mailserver smtp.gmail.com
body: <p>From <code>/opt/splunk/var/log/splunk/python.log</code>:</p>
  
  <pre><code>2018-11-12 14:29:08,776 +0000 ERROR    sendemail:137 - Sending email. subject="Splunk Alert: Errors in develop", results_link="https://localhost:8000/app/search/@go?sid=rt_scheduler__admin__search__RMD58e26482826eced90_at_1542024571_26.426", recipients="[u'my_email@gmail.com']", server="localhost"
  2018-11-12 14:29:08,776 +0000 ERROR    sendemail:458 - [Errno 99] Cannot assign requested address while sending mail to: my_email@gmail.com
  </code></pre>
  
  <p>My <code>/opt/splunk/etc/system/local/alert_actions.conf</code>:</p>
  
  <pre><code> [email]
   auth_password = XXX
   auth_username = my_email@gmail.com
   hostname = localhost
   mailserver = smtp.gmail.com:465
   pdf.header_left = none
   pdf.header_right = none
   use_ssl = 1
  </code></pre>
  
  <p>I also tried <code>smtp.gmail.com:587</code> with <code>use_ssl = 0 use_tls = 1</code>, got same error in both cases.</p>
  
  <p>However, when trying to send mail directly from search, it works as expected:</p>
  
  <pre><code>... | sendemail to="my_email@gmail.com" format=raw sendresults=1 footer="Sent from Splunk." from="SplunkAlerts" subject="Splunk Alert" message="The following Splunk Alert has been fired:"
  </code></pre>
  
  <p>what configuration am I missing? errno 99 is EADDRNOTAVAIL , not clear what is not available, is it the <code>server="localhost"</code> in the error log? where should I set it?</p>