Reconfigure smtp settings using environment variables