There is a "standard" tail light mounting used on many racks. It's two holes spaced apart horizontally. Many of Topeak's fixed racks have this mount.
You need to get a rear light designed for this type of mount. Peter White sells some of them in generator or battery operated.