adding smtp detection

Ready to test and review ...

@jancborchardt @LukasReschke @zinks- THX


FYI: the database schema has changed - drop the table oc_mail_accounts before testing this PR