Adding in all of my qmail changes. Hooks.py and yaml most significant