I have two subdomains for a school's website - 1. staffmail.domainname.com
and 2. studentmail.domainname.com
. Currently all email users of the website can access both mail portals... Both subdomains run RoundCube mail software.
When a student user enters staffmail.domainname.com
, it should prompt for login details. The student user enters his email address and password and then clicks on the login button. Thereafter the login gives an error. If a staff user enters their username and password and clicks on login the login works and the staff user will be taken to the mail application designed for the staff.
Is there any way I can do this? Our website runs on cPanel with Softaculous apps.