Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-19, 12:27:11

Author Topic: Unable to connect on 143 with StartTLS for IMAP  (Read 12164 times)

0 Members and 1 Guest are viewing this topic.

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Unable to connect on 143 with StartTLS for IMAP
« on: 2015-04-15, 12:33:48 »
Is StartTLS supported by Kloxo's email server?
I'm trying to setup Thunderbird to use  one of my email accounts on Kloxo. First of all, it doesn't support auto discovery of email settings. Secondly, i can use 143 with StartTLS for IMAP.
But for SMTP, i can use 587 with StartTLS!
Why?


Update:
CheckTLS tells me:
Your email was sent, however it was NOT SENT SECURELY using TLS.
« Last Edit: 2015-04-15, 12:44:08 by fossxplorer (formerly 'Mella') »
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to connect on 143 with StartTLS for IMAP
« Reply #1 on: 2015-04-15, 13:00:27 »
Not sure about Thunderbird term (StartTLS).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Unable to connect on 143 with StartTLS for IMAP
« Reply #2 on: 2015-04-15, 15:28:03 »
http://en.wikipedia.org/wiki/STARTTLS
Locally on the server it works:

[root@mail ~]# telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mydomain.com - Welcome to Qmail ESMTP
ehlo testing
250-mydomain.com - Welcome to Qmail
250-STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE 20971520
250 AUTH LOGIN PLAIN
quit
Connection closed by foreign host.
[root@mail ~]#

And you can see that 250-STARTTLS indicates support for STARTTLS.
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to connect on 143 with StartTLS for IMAP
« Reply #3 on: 2015-04-15, 15:32:34 »
By design, port 25 not use starttls.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Unable to connect on 143 with StartTLS for IMAP
« Reply #4 on: 2015-04-16, 10:40:33 »
Ok, but IMAP STARTTLS uses port 143. As i said STARTTLS works fine with SMTP on port 587.

My question is why STARTTLS doesn't work with IMAP on port 143?
« Last Edit: 2015-04-16, 11:03:14 by fossxplorer (formerly 'Mella') »
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to connect on 143 with StartTLS for IMAP
« Reply #5 on: 2015-04-16, 10:46:08 »
Investigate content of /var/qmail/supervise/<pop3/pop3-ssl/imap/imap-ssl>/run.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Unable to connect on 143 with StartTLS for IMAP
« Reply #6 on: 2015-04-16, 11:39:11 »
Trying to use IMAP with 143 and STARTTLS Thunderbird gives the error:
The current operation on 'Inbox' did not succeed. The mail server for account test@examplc.com, responded: Error in IMAP command received by server.

IMAP works fine with 993 and SSL/TLS.


[root@mail ~]# cat /var/qmail/supervise/imap4-ssl/run
#!/bin/sh

HOSTNAME=`hostname --fqdn`

rm -rf ./env/*;

cat /etc/courier/imapd-ssl | /usr/bin/envconv

if [ -f /var/qmail/control/softlimit ] ; then
   ### MR -- softlimit file must content with '/usr/bin/softlimit -m SOFTLIMITVAR'
   ### where SOFTLIMITVAR is 72000000 for 64bit and 18000000
       ### Note: incresing SOFTLIMITVAR if not enough (example: because 'login fail')
   SOFTLIMIT=$(cat /var/qmail/control/softlimit)
else
   SOFTLIMIT=""
fi

IP=0
PORT=993

exec /usr/bin/envdir ./env/ \
   $SOFTLIMIT \
   /usr/bin/tcpserver -v -R -H -l $HOSTNAME $IP $PORT \
   /usr/bin/couriertls -server -tcpd \
   /usr/sbin/imaplogin \
   /usr/bin/imapd Maildir 2>&1
[root@mail ~]#


My little research so far leads me think that Kloxo-MR doesn't support STARTTLS for IMAP on port 143, but it does for SMTP on 587!
CAN ANYONE PLS TRY TO ACCESS IMAP ON PORT 143 USING STARTTLS TO CONFIRM?

Also, another subject, i think all domains should have an entry with "smtp.domain.com" with an A record to the main shared IP.
Trying to configure Gmail with one mail account from Kloxo by default was trying to look for smtp.domain.com on port 587 for SMTP :)








Investigate content of /var/qmail/supervise/<pop3/pop3-ssl/imap/imap-ssl>/run.
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to connect on 143 with StartTLS for IMAP
« Reply #7 on: 2015-04-16, 12:26:49 »
And then compare to smtp/smtp-ssl/submission run file.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline KloxoLittleFish

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +0/-0
    • View Profile
Re: Unable to connect on 143 with StartTLS for IMAP
« Reply #8 on: 2015-05-18, 18:24:00 »
My little research so far leads me think that Kloxo-MR doesn't support STARTTLS for IMAP on port 143, but it does for SMTP on 587!
CAN ANYONE PLS TRY TO ACCESS IMAP ON PORT 143 USING STARTTLS TO CONFIRM?

I can only with SSL/TLS (993) and SSL/TLS (465). STARTTLS not work for me.

http://forum.mratwork.com/kloxo-mr-technical-helps/vchkpw-submission-vpopmail-user-not-found/

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to connect on 143 with StartTLS for IMAP
« Reply #9 on: 2015-05-19, 03:20:50 »
Try investigate files inside /etc/courier/, /var/qmail/supervise/<imap4|imap4-ssl|pop3|pop3-ssl>/run. Maybe something missing or not match.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Unable to connect on 143 with StartTLS for IMAP
« Reply #10 on: 2016-05-27, 11:41:38 »
@Mustafa, yes as indicated above, STARTTLS only works for SMTP and not for IMAP.
Can you please fix it?
« Last Edit: 2016-05-27, 11:46:19 by fossxplorer (formerly 'Mella') »
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to connect on 143 with StartTLS for IMAP
« Reply #11 on: 2016-05-27, 11:57:07 »
Investigate /etc/courier/imapd-ssl file.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.028 seconds with 19 queries.

web stats analysis