add auto-login for training mail