Company termintes you without giving any reasons, they had not paid last 3 months salaries. And you have logged to company email id, what should happened?? How you can get your salaries from them. And there HR keeps telling you, you did this illegally. What you will do.
- If a company misses even 1 salary payment, it's time to move to a new company as soon as possible and talk to a lawyer immediately.
- Yes, once you are terminated, you are no longer authorized to log in to their system. Get a lawyer. Also, keep any personal documentation you generate where you can get to it. All the emails and files on their systems are their property.
- If they missed 3 salary payments, you have a case against them for nonpayment. Get a lawyer.
A company that cannot make payroll is essentially doomed, and if you are vindictive at all, make sure that all the companies with which they have business relationships know all about it, with documentation. (But don't expect those companies to hire you if you do this, or any other company that finds out you spilled the beans like that. Makes you a risk.)
If you're in the United States, the Computer Fraud and Abuse Act prescribes penalties for unauthorized access that I wouldn't care to face. It's been ruled that having working credentials is not necessarily authorized access, if you have good reason to believe your authorization is revoked (such as being fired). Don't access company assets after being terminated, unless you have some other permission to do so.