It's called musking. Garters frequently musk when they feel threatened. My guess is that something about new enclosure isn't right, make sure it has plenty of hides - most snakes like tight places they can squeeze into.