Applying these server behaviors should not require any coding or programming, they server behaviors will create the code for you. You just need to supply the server behaviors with the proper values.
We do not have any guides that are specific to your scenario but I think you could gain some value info about the steps you will need to take by having a look at the Universal Email and Security Assist support pages, here are links to them:
Universal Email
universal-email/
Security Assist
securityassist/
The getting started guides are a good place to start to get an understanding of how to use these extensions. Please post back with any questions that you have and we will help with whatever we can.