add mail and security modules

add mail and security modules