correcting configuration for unauthorized SMTP mail server
catching exceptions in CLI mode