Fixing email connection refused issues