This is a really stupid idea.
A salary will be taxed in Malta and/or Estonia.
If you change it to dividends later, you will be paying 20% CIT in Estonia, possibly more (they are already talking about raising taxes).
Also, the Estonian company could/would be taxable in Malta due to PE/PoEM, then...