Fix SMTP test

Magic or ugly hack? You decide.