Black all trarfic except mail

Hi,

Would it be possible to block all traffic on a pc except the following:

  • Mail (or email port),
  • Communication to specific PC

If possible can you please explain to me how to do this .