added rules and smtp module