Well-posedness of linear ultraparabolic equations on bounded domains