Apparmor blocks Dovecot logging: Failed name lookup - disconnected path

Created:

2017-03-28 08:54:10 UTC

Modified:

2017-08-16 16:12:44 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Apparmor blocks Dovecot logging: Failed name lookup - disconnected path

Applicable to:

  • Plesk Onyx for Linux

Symptoms

Apparmor blocks Dovecot logging on Ubuntu 16.04 Plesk server. The following messages can be found in /var/log/kern.log :

...
Mar 27 18:05:24 plesktest kernel: [ 760.847990] audit: type=1400 audit(1490612724.200:105): apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/lib/dovecot/log" name="run/systemd/journal/dev-log" pid=1507 comm="log" requested_mask="w" denied_mask="w" fsuid=0 ouid=0
Mar 27 18:05:24 plesktest kernel: [ 760.858217] audit: type=1400 audit(1490612724.208:106): apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/lib/dovecot/log" name="run/systemd/journal/dev-log" pid=1507 comm="log" requested_mask="w" denied_mask="w" fsuid=0 ouid=0
Mar 27 18:05:24 plesktest kernel: [ 760.898861] audit: type=1400 audit(1490612724.248:107): apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/lib/dovecot/log" name="run/systemd/journal/dev-log" pid=1507 comm="log" requested_mask="w" denied_mask="w" fsuid=0 ouid=0
Mar 27 18:05:24 plesktest kernel: [ 760.907416] audit: type=1400 audit(1490612724.256:108): apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/lib/dovecot/log" name="run/systemd/journal/dev-log" pid=1507 comm="log" requested_mask="w" denied_mask="w" fsuid=0 ouid=0
...

Cause

This is Plesk bug # PPPM-5979 which will be fixed in future Plesk updates.

Resolution

As a workaround, use the following instruction:

  1. Download Apparmor polciy for dovecot from the attachment .
  2. Place the policy into /etc/apparmor.d/

  3. Create a file /etc/apparmor.d/local/usr.lib.dovecot.log :
    # touch /etc/apparmor.d/local/usr.lib.dovecot.log
  4. Execute the command:
    # service apparmor recache

Attachments:

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