Mail does not work: poplock.db: No such file or directory

Refers to:

  • Plesk 10.0.1 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:40:31 UTC

Modified:

2016-12-21 18:56:47 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Mail does not work: poplock.db: No such file or directory

Symptoms

Getting the following error in logs:

    fatal: open database /var/spool/postfix/plesk/poplock.db: No such file or directory

Cause

File /var/spool/postfix/plesk/poplock.db is absent on the system.

Resolution

poplock.db file is a link to /var/spool/postfix/plesk-pop/poplock.db . Make sure that it exists:

    # ls -la /var/spool/postfix/plesk
total 112
drwxrwx--- 2 postfix postfix 4096 Feb 6 10:24 .
drwxr-xr-x 18 root root 4096 Jun 6 2014 ..
-rw-r--r-- 1 root root 12288 Oct 29 16:23 aliases.db
-rw-r--r-- 1 root root 12288 Oct 29 16:22 blacklists.db
-rw-r--r-- 1 root root 1 Jun 24 2014 master.cf.disabled
-r--rw---- 1 postfix root 13312 Feb 6 10:24 passwd.db
-r--r----- 1 postfix root 32 Oct 29 16:23 passwd_db_key
lrwxrwxrwx 1 root root 23 Oct 29 16:22 poplock.db -> ../plesk-pop/poplock.db

Link it to file if it is nessesary.

  1. Execute command below to reconfigure all mail settings:
    # /usr/local/psa/admin/sbin/mchk --with-spam

Internal

if file does not exist consider to create it manually and assign correct permissions:

# touch /var/spool/postfix/plesk-pop/poplock.db
# chmod 460 /var/spool/postfix/plesk-pop/poplock.db
# chown postfix:popuser /var/spool/postfix/plesk-pop/poplock.db

Using strace utility when executing /usr/lib64/plesk-9.0/mailsrv_conf_init I found the following:

open("/var/spool/postfix/plesk-pop/__db.poplock.db", O_RDWR|O_CREAT|O_EXCL, 0644) = -1 EEXIST (File exists)

Move this file accordingly:

# mv /var/spool/postfix/plesk-pop/__db.poplock.db /root/
Have more questions? Submit a request
Please sign in to leave a comment.