In the FAQs:
Will the XRAIL System work on my Benelli® M4?
Unfortunately, no. There is a "loop" on the bottom end of the Benelli® M4 barrel where the XRAIL System needs to attach and rotate. That loop is in the way and prevents the XRAIL System from working on that gun.