Could be his anal glands are impacted. This usually happens with smaller dogs, but can happen with any breed. You said in another post you've already got a vet appointment, the vet can express his anal glands. And yep, it's a nasty, nasty smell!