I'm setting up Splunk to send e-mails through Amazon SES. But before doing this, I found a Python script (Splunk uses Python to send the mails) that I wanted to test which is not working on my Linux server. The output is shown below. I'm able to send test e-mails on the command line using Sendmail - so there is nothing wrong my Amazon SES credentials. Somehow Python doesn't parse the Auth info correctly?

Thank you for your response. I had mentioned on my question that I have sendmail running on this box which uses the same credentials on Amazon SES to deliver e-mails. They work fine. Somehow Python either doesn't parse the creds correctly or doesn't connect to SES server securely. I want to know if there are any extra settings or packages that need to be insttalled on the Linux box to enable python to send mails through Amazon SES.