allows 'none' as authentication mode
refactores authentication mode cases
Merge pull request #2326 from opf/hotfix/check_smtp_no_authentication

allows 'none' as authentication mode
Merge branch 'release/4.0' into dev