moving code around and a fix

move some functions into helper
remove extensive log debug calls (some of it)
fix last mail alias of domain is never removed