Re: Authentication against multiple IMAP servers

2019-10-31 Thread hw
run ngrep to figure out what's going on the wire. Janos On 2019-10-31 13:15, hw wrote: Hello Janos, thanks so far :-) I found the typo and it has to be like this: $config['CUSTOM_PRE_AUTH_FUNCTION'] = 'my_imap'; function my_imap($username = '') {    global $session;    if(strstr($username

Re: Authentication against multiple IMAP servers

2019-10-31 Thread hw
Hello Janos, thanks so far :-) I found the typo and it has to be like this: $config['CUSTOM_PRE_AUTH_FUNCTION'] = 'my_imap'; function my_imap($username = '') { global $session; if(strstr($username, "@domain1.com")) { define('IMAP_SERVER', 'imap.domain1.com'); } else