fix py3 mail header decode error
create mailer if none exists and ptah_init_mailer is called
mailer setting in lower case
fix init_mailer
add principal by username to auth_service