1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Web Server > Login Fails (telnet : Connection closed by foreign host.)

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by lvaroR, Sep 26, 2010.

  1. lvaroR

    lvaroR Guest

    0
     
    Mail Server > Login Fails (telnet : Connection closed by foreign host.)

    Hi,

    I can't login into any mail account, although I know I'm using the correct username and login, because I used /usr/local/psa/admin/sbin/mail_auth_view .

    Horde error message: «Login failed because your username or password was entered incorrectly.»

    I suspect it's a firewall issue, because I executed firewall.sh from qmail-toaster before that happened, but I don't know what I should do.

    1) ---

    telnet localhost 143
    Trying 127.0.0.1...
    Connected to localhost.localdomain (127.0.0.1).
    Escape character is '^]'.
    * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information.
    01 login teste@transglobal.pt password
    Connection closed by foreign host.

    2) ---

    grep -R poppasswd /etc/courier-imap/
    /etc/courier-imap/imapd-ssl:MAILPASSWD="/var/qmail/users/poppasswd"
    /etc/courier-imap/pop3d-ssl.dist:MAILPASSWD="/var/qmail/users/poppasswd"
    /etc/courier-imap/imapd.dist:MAILPASSWD="/var/qmail/users/poppasswd"
    /etc/courier-imap/pop3d-ssl:MAILPASSWD="/var/qmail/users/poppasswd"
    /etc/courier-imap/pop3d.dist:MAILPASSWD="/var/qmail/users/poppasswd"
    /etc/courier-imap/pop3d:MAILPASSWD="/var/qmail/users/poppasswd"
    /etc/courier-imap/imapd:MAILPASSWD="/var/qmail/users/poppasswd"
    /etc/courier-imap/imapd-ssl.dist:MAILPASSWD="/var/qmail/users/poppasswd"

    3) ---

    ls -l /var/qmail/users/poppasswd
    ls: /var/qmail/users/poppasswd: No such file or directory

    ls -l /var/lib/plesk/mail/auth/passwd.db
    -rw------- 1 root root 19456 Sep 25 16:56 /var/lib/plesk/mail/auth/passwd.db

    Regards
     
    Last edited by a moderator: Sep 26, 2010
  2. lvaroR

    lvaroR Guest

    0
     
    test.php output:

    «
    Horde Version

    * Horde: 3.3.6

    Horde Applications

    * Horde: 3.3.6
    * Imp: H3 (4.3.6) (run Imp tests)
    * Ingo: H3 (1.2.3) (run Ingo tests)
    * Kronolith: H3 (2.3.3) (run Kronolith tests)
    * Mimp: H3 (1.1.3)
    * Mnemo: H3 (2.2.3)
    * Passwd: H3 (3.1.2) (run Passwd tests)
    * Turba: H3 (2.3.3) (run Turba tests)

    PHP Version

    * View phpinfo() screen
    * View loaded extensions
    * PHP Version: 5.1.6
    * PHP Major Version: 5.1
    * PHP Minor Version: 6
    * PHP Version Classification: release
    * You are running a supported version of PHP.

    PHP Module Capabilities

    * Ctype Support: Yes
    * DOM XML Support: Yes
    * FTP Support: Yes
    * GD Support: Yes
    * Gettext Support: Yes
    * GeoIP Support (via PECL extension): No
    Horde can optionally use the GeoIP extension to provide faster country name lookups.
    * Iconv Support: Yes
    * GNU Iconv Support: Yes
    * IMAP Support: Yes
    * Imagick Library: No
    Horde can make use of the Imagick Library, if it is installed on your system. It is highly recommended to use either ImageMagick's convert utility or the Imagick php library for faster results.
    * JSON Support: Yes
    * LDAP Support: Yes
    * LZF Compression Support: No
    If the lzf PECL module is available, Horde can compress some cached data in your session to make your session size smaller.
    * Mbstring Support: Yes
    * PCRE Support: Yes
    * PCRE UTF-8 Support: Yes
    * Mcrypt Support: No
    Mcrypt is a general-purpose cryptography library which is broader and significantly more efficient (FASTER!) than PHP's own cryptographic code and will provider faster logins.
    * memcached Support (memcache): No
    The memcache PECL module is only needed if you are using a memcached server for caching or sessions. See horde/docs/INSTALL for information on how to install PECL/PHP extensions.
    * MIME Magic Support (fileinfo): No
    The fileinfo PECL module or the mime_magic PHP extension (see below) will most likely provide faster MIME Magic lookups than the built-in Horde PHP magic code. See horde/docs/INSTALL for information on how to install PECL/PHP extensions.
    * MIME Magic Support (mime_magic): Yes
    * MySQL Support: Yes
    * OpenSSL Support: Yes
    * PostgreSQL Support: No
    The PostgreSQL extension is only required if you want to use a PostgreSQL database server for data storage.
    * Session Support: Yes
    * XML Support: Yes
    * Zlib Support: Yes

    Miscellaneous PHP Settings

    * magic_quotes_runtime disabled: Yes
    * memory_limit value: 128M
    If PHP's internal memory limit is not set high enough Horde will not be able to handle large data items (e.g. large mail attachments in IMP). You should set the value of memory_limit in php.ini to a sufficiently high value - at least 64M is recommended.
    * safe_mode disabled: Yes
    * session.use_trans_sid disabled: Yes
    * session.auto_start disabled: Yes
    * zlib.output_compression disabled: Yes
    * zend_accelerator.compress_all disabled: Yes

    File Uploads

    * file_uploads enabled: Yes
    * upload_max_filesize: 20M
    * post_max_size: 8M
    This value should be several times the expect largest upload size (notwithstanding any upload limits present in an application). Any upload that exceeds this size will cause any state information sent along with the uploaded data to be lost. This is a PHP limitation and can not be worked around.

    Required Horde Configuration Files

    * config/conf.php: Yes
    * config/mime_drivers.php: Yes
    * config/nls.php: Yes
    * config/prefs.php: Yes
    * config/registry.php: Yes

    PHP Sessions

    * Session counter: 1
    * To unregister the session: click here

    PEAR

    * PEAR Search Path (PHP's include_path): /usr/share/psa-horde/lib:/usr/share/psa-horde:/usr/share/psa-horde/lib:/usr/share/psa-pear:.
    * PEAR: Yes
    * Recent PEAR: Yes
    * Mail: Yes
    * Mail_Mime: Yes
    * Mail_mimeDecode: Yes
    * Log: Yes
    * DB: Yes
    * MDB2: No
    You will need MDB2 if you are using the SQL driver for Shares.
    * Net_Socket: Yes
    * Date: Yes
    * Auth_SASL: Yes
    * HTTP_Request: Yes
    * HTTP_WebDAV_Server: No
    The HTTP_WebDAV_Server is required, if you want to use the WebDAV interface of Horde, e.g. to access calendars or tasklists with external clients.
    * Net_SMTP: Yes
    * Services_Weather: Yes
    * Cache: Yes
    * XML_Serializer: Yes
    * Net_DNS: No
    Net_DNS can speed up hostname lookups against broken DNS servers.
    »
     
  3. lvaroR

    lvaroR Guest

    0
     
    IMP test output:

    «
    IMP Version

    * IMP: H3 (4.3.6)

    Other Horde Applications

    * dimp: No
    DIMP provides an alternate display view using JavaScript.
    * gollem: No
    Gollem provides access to local VFS filesystems to attach files.
    * ingo: Yes (Version: H3 (1.2.3))
    * mimp: Yes (Version: H3 (1.1.3))
    * nag: No
    Nag allows tasks to be directly created from e-mail data.
    * turba: Yes (Version: H3 (2.3.3))

    PHP Version

    * PHP Version: 5.1.6
    * PHP Major Version: 5.1
    * PHP Minor Version: 6
    * PHP Version Classification: release
    * You are running a supported version of PHP.

    PHP Module Capabilities

    * Internationalized Domain Names Support: No
    IMP requires the idn module (installed via PECL) in order to handle Internationalized Domain Names.
    * IMAP Support: Yes
    * OpenSSL Support: Yes
    * Tidy support: No
    If the tidy PHP extension is available, IMP can use it to sanitize the output of HTML messages before displaying to the user, and to clean outgoing HTML messages created in the HTML composition mode. See imp/docs/INSTALL for more information.

    Miscellaneous PHP Settings

    * file_uploads enabled: Yes

    Required IMP Configuration Files

    * config/conf.php: Yes
    * config/mime_drivers.php: Yes
    * config/prefs.php: Yes
    * config/servers.php: Yes

    PEAR

    * PEAR Search Path (PHP's include_path): /usr/share/psa-horde/lib:/usr/share/psa-horde:/usr/share/psa-horde/lib:/usr/share/psa-pear:.
    * PEAR: Yes
    * Recent PEAR: Yes
    * Auth_SASL: Yes
    * HTTP_Request: Yes

    PHP Mail Server Support Test
    Attempting to automatically determine the correct connection parameters for your server:

    * Trying protocol imap/notls, Port 143:

    ERROR - The server returned the following error message:

    [CLOSED] IMAP connection broken (server response)

    * Trying protocol imap/ssl, Port 993:

    ERROR - The server returned the following error message:

    Certificate failure for 77.91.200.116: self signed certificate:
    /C=US/ST=Virginia/L=Herndon/O=Parallels/OU=Plesk/CN=plesk/emailAddress=info@plesk.com

    * Trying protocol imap/ssl/novalidate-cert, Port 993:

    ERROR - The server returned the following error message:

    Can not authenticate to IMAP server: [CLOSED] IMAP connection broken
    (authenticate)

    * Trying protocol imap/tls/novalidate-cert, Port 143:

    ERROR - The server returned the following error message:

    Can not authenticate to IMAP server: [CLOSED] IMAP connection broken
    (authenticate)

    Could not determine a successful connection protocol. Make sure your mail server is running and you have specified the correct port.
    »
     
  4. lvaroR

    lvaroR Guest

    0
     
    The problem was solved:

    "Hello,

    Thank you for contacting Parallels Technical Support.

    As per your request, we have logged onto the Parallels Plesk Control Panel and was able to recreate the issue, trying to log into Horde and received the error "invalid username and password".

    To investigate on the issue we then logged into the server through SSH, and found the authpsa file was missing from which was the source of the issue.

    [root@transglobal courier-imap]# ll /usr/lib/courier-imap/authlib/
    total 0
    [root@transglobal courier-imap]#

    We then downloaded the package in /root/courier-imap and installed the package which placed the authpsa file in place.

    [root@transglobal courier-imap]# ll /usr/lib/courier-imap/authlib/
    total 64
    -r-xr-x--- 1 root root 59080 May 4 06:41 authpsa
    [root@transglobal courier-imap]#

    And now we can successfully log into webmail (Please check the screen-shot attached).

    We request you to please check and let us know if you were Very Satisfied with the solution provided in the email survey following this email.

    Feel free to contact us if you have any further questions.

    Thanks,"
     
Loading...