mail: Fix error with unpacking mail config