"The Estonian company has to pay tax where you live, like a local company."
No, the company pays taxes in Estonia. You as an individual are required to pay tax wherever you live, if you get a salary or dividends from the company. Otherwise there's no point of creating a company in Estonia under...