Request Timed out -- Email Setting

Am getting the " Request Timed Out " when tried to setup email with Gmail and also my own Domain email setting . I think this has got something to do with the Linus hosting server .as it was working in dev Mode and NOt when changed to Production .
Any Linux Guy can help please ?