Gravar-mail: Mitigation of malicious attacks on networks