Unless otherwise provided in this article, accessory buildings and structures shall be located in the rear yard and shall be not less than 15 feet distant from the main building, not less than five feet distant from the rear lot line, and not less than 10 feet distant from any side line, with the exception of boundary line fences and walls which may be located on the lot line.