Doubles serving rules

Question concerning the position of the person serving. Does the lateral position of the server have to be within the lines of the singles court, or can he stand so far the the right or left that he is adjacent to the doubles court boundary (projection thereof).