Skip to content

Instantly share code, notes, and snippets.

View markbirbeck's full-sized avatar

Mark Birbeck markbirbeck

View GitHub Profile
@markbirbeck
markbirbeck / gist:980836
Created May 19, 2011 14:17
Troubleshooting sendmail: Python
import smtplib
server = smtplib.SMTP('localhost')
server.sendmail('[email protected]', '[email protected]', 'Hello mum!')
server.quit()
@markbirbeck
markbirbeck / gist:980832
Created May 19, 2011 14:15
Troubleshooting sendmail: bash
sed -i -e 's/O LogLevel=9/O LogLevel=7/' /etc/mail/sendmail.cf
echo "Subject: test" | /usr/lib/sendmail -v [email protected]
sed -i -e 's/O LogLevel=7/O LogLevel=9/' /etc/mail/sendmail.cf