Setting up mail monitoring