Hi again,
we have 3 different imap servers mail.x1.xx.xx- mail.x2.xx.xx and mail.x3.xx.xx. I've created 3 config in the config folder, below i give you an example of one of them:
mail.x1.xx.xx.inc.php
<?php
$config['default_host']= 'mail.x1.xx.xx'
$config['username_domain']= 'x1.xx.xx'
users just type in their username without the domain extension.
thank you