fmbiete / Z-Push-contrib

Z-Push fork with changes that I will try to contrib
GNU Affero General Public License v3.0
134 stars 61 forks source link

How to Configure z-push with TLS with Postfix and dbmail backend #269

Open LOTRg opened 8 years ago

LOTRg commented 8 years ago

I have tried for 3 days and read many tutorials but seem to have no luck setting this up, I use Roundcube for webclient and it's configured for tls://localhost and port 143, I login fine and browse my emails with no issues, however when I tried to set z-push i can't login, I get these errors

BackendIMAP->Logon(): can't connect: Can not authenticate to IMAP server: login rejected AuthenticationRequiredException: Access denied. Username or password incorrect - code: 0 - file: /var/www/outlook/lib/request/requestprocessor.php:82 Unknown:0 Unknown: Can not authenticate to IMAP server: login rejected (errflg=2) (8)

my config file is configured like this : define('BACKEND_PROVIDER', 'BackendIMAP'); define('IMAP_OPTIONS', '/tls/norsh/novalidate-cert'); define('IMAP_SERVER', '127.0.0.1'); define('IMAP_PORT', 143);

I have tried with 993, 143 ports, tried with /ssl and /tls options and still can't login. what am I missing ? and how can I get this to work ?

Thank you in advance

LOTRg commented 8 years ago

anyone can possibly help or guide please ?

norm2k commented 8 years ago

Did you also update your backend/imap/config.php? Actually, you should just have define('BACKEND_PROVIDER', 'BackendIMAP'); in your config file and then do all the setup in your backend/imap/config.php file.

LOTRg commented 8 years ago

@norm2k ... thank you for your reply. I have verified these are the current setting yet I am still unable to login. still getting the same error, is there something wrong with zpush support for tls ?

LOTRg commented 8 years ago

Not sure if this will make a difference but here is beginning of the error : /var/www/outlook/backend/imap/imap.php:99 imap_open(): Couldn't open stream {127.0.0.1:143/imap/tls/novalidate-cert} (2) 19/05/2016 01:34:19 [19625] [ERROR] [EMAILADDRESS] BackendIMAP->Logon(): can't connect: Can not authenticate to IMAP server: login rejected 19/05/2016 01:34:19 [19625] [ INFO] [EMAILADDRESS] AuthenticationRequiredException: Access denied. Username or password incorrect - code: 0 - file: /var/www/outlook/lib/request/requestprocessor.php:82