Recurring ulcers - feed related?

My one gelding gets an itchy tail when his dock is dry so I put coconut oil on it and he is happy again.