As a general rule visa application is lodged in the residence country. If your main country of destination is Estonia, you must apply for a visa at the Estonian representation opens in a new tab or at the representation of the member state representing Estonia opens in a new tab in issuing Schengen visas in your country of residency.