Add Maven deployment to the gradle build
Fix Mail session authentication