Re: Authentication against multiple IMAP servers

2019-10-31 Thread hw
Hello, i set both parameters but the error persists. It a little bit weird because log tells me that a connection to ssl://mail.yourdomain.com:993 (?) fails or ist timed out. This cannot work. I set all domains but it seems that these parameters are not read. In

Re: Authentication against multiple IMAP servers

2019-10-31 Thread sj
Hello, I've fixed the typo in the docs. I suggest you to also set IMAP_PORT and IMAP_SSL parameters. You may 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:

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

Re: Authentication against multiple IMAP servers

2019-10-31 Thread Janos SUTO
Hello, then there must be a syntax error on the introduced function. Check out the error logs of the webserver. If it doesn't help, then show me the function in a private email. Janos Original Message From: BKH - Post Sent: Thu Oct 31 11:25:37 GMT+01:00 2019 To:

Re: Authentication against multiple IMAP servers

2019-10-31 Thread BKH - Post
Hello Janos, i tried this and set CUSTOM_PRE_AUTH_FUNCTION as described in the docs. For testing reasons i copied your "my_imap"-script into config-site.php. After this tried to log into piler with different users but the login page is shown as acompletely blank page. Disabling the script,