added rules for greenmail and triggering emails