refactored get_smtp_server() out of setup_listeners