Cannot log in to Atmail webmail: the session drops instantly

Created:

2016-11-16 13:19:39 UTC

Modified:

2017-04-24 11:39:17 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot log in to Atmail webmail: the session drops instantly

Applicable to:

  • Plesk

Symptoms

When trying to log into Atmail webmail the session drops instantly and the login screen is shown.

No relevant errors appear in "_/var/log/atmail/error\\_log_".

If incorrect credentials are entered, an authentication error appears. Otherwise, the session gets instantly dropped.

Cause

  1. Plain text authentication is disabled in Atmail.

  2. Atmail database may have become out of sync with the package, and contains wrong information about users. To verify it access Atmail database:

    mysql -uatmail -p cat /etc/psa-webmail/atmail/.atmail.shadow atmail

and select all users from appropriate table, matching the domain name you are using to access webmail:

select * from Users where Account like '%domain_name%';

If output is empty, then this is most probably the case.

Resolution

To resolve the issue with plain text authentication disabled, please follow the steps bellow:

  1. Enable plain text authentication in /etc/courier-imap/imapd file by adding the AUTH=PLAIN parameter to the values of the IMAP_CAPABILITY variable:

    IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT AUTH=PLAIN THREAD=REFERENCES SORT QUOTA IDLE"

  2. Restart courier-imap service:

    /etc/init.d/courier-imap restart

If the issue persists, the root cause might be that Atmail database was unsynced with the it's package. Follow the steps bellow to implement the fix:

  1. Backup Atmail database just in case:

    mysqldump -uatmail -p cat /etc/psa-webmail/atmail/.atmail.shadow atmail > /root/atmail_db.sql

  2. Remove the package:

    rpm -e psa-atmail

  3. Drop the Atmail database:

    mysql -uatmail -p cat /etc/psa-webmail/atmail/.atmail.shadow -e"drop database atmail"

  4. Re-install the package with

    /usr/local/psa/admin/bin/autoinstaller

Have more questions? Submit a request
Please sign in to leave a comment.