I want to set wordpress along with mail server. What is the correct configuration of it?
Mail-in-a-Box is not able to host WordPress. WordPress needs PHP and MySQL. PHP is not meant to be used with user-pages and is only active on ownCloud, Admin Panel and Roundcube
MySQL is not installed with MiaB. You should use a separate Server and Route the A-Record to the Separate Webserver