I've shot a lot of sunsets with my 40D and it usually does okay or needs a minor tweak. Usually Landscape pic style yields better colors than the other styles. Also, I usually get better color and exposure if I meter above the sun (sun just out of frame). A bright sun often will cause underexposure and really funky colors.
The most common WB problems I've seen with sunsets is the camera renders it too cool, although I've never had a situation I couldn't adjust to my liking in DPP.