diff --git a/Custom_EasyBlocks/mpcframework.py b/Custom_EasyBlocks/mpcframework.py
index e3c3fec2e7fc847c656813aee209f3abb793f7d7..5808d43ac48c2da5337f3d1ad758694a2b800819 100644
--- a/Custom_EasyBlocks/mpcframework.py
+++ b/Custom_EasyBlocks/mpcframework.py
@@ -1,4 +1,5 @@
 from easybuild.easyblocks.generic.binary import Binary
+from easybuild.tools.filetools import write_file
 
 import os.path
 
@@ -25,3 +26,9 @@ class EB_MPCFramework(Binary):
             "MPCFRAMEWORK_DIR", self.installdir + 'share/mpcframework/cmake/')
 
         return txt
+
+    def post_install_step(self):
+        """Override network rail configuration by adding an MPC configuration file"""
+
+        write_file(os.path.join(self.installdir, "etc", "mpcframework", "rail.conf"),
+                   "LOWCOMM_NETWORKING_RAILS_IBMPI_DEVICE=mlx5_0")