What you need is a paintable "drip rail sealant" I am sure other's will chime in with their preferences and I am sure you can find good quality sealants at the local auto body paint shop. Here's one I found using the internet. Remember preparation is the key to avoiding failure. drip rail sealant