Article ID: 120249, created on Feb 20, 2014, last review on Mar 16, 2016

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.5 for Linux


Postfix cannot send emails anymore. All mails are staying in queue. The following entries can be found in /var/log/maillog:

Aug  7 17:13:08 root142123 postfix/smtp[25846]: D615A60A1CE: to=<>, relay=none, delay=0.15, delays=0.15/0/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for type=MX: Host not found, try again)


The mail server cannot not resolve destination IP of the mail server, where the message should be sent. SELinux is blocking access to /etc/resolv.conf.

    # grep resolv.conf /var/log/audit/audit.log | less
    type=AVC msg=audit(1375899192.013:10985): avc:  denied  { read } for  pid=2769 comm="tcp-env" name="resolv.conf" dev=sda1 ino=1892366 scontext=unconfined_u:system_r:sendmail_t:s0-s0:c0.c1023 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=file

    # ll -Z /etc/resolv.conf
    -rw-r--r--. root root system_u:object_r:httpd_sys_content_t:s0 /etc/resolv.conf


Update the selinux-policy package or restore the default context:

    # restorecon /etc/resolv.conf

    # ll -Z /etc/resolv.conf
    -rw-r--r--. root root system_u:object_r:net_conf_t:s0  /etc/resolv.conf

See RedHat Bugzilla NetworkManager writing out resolv.conf with wrong context

Additional information

Mail queue contains deferred emails: Host or domain name not found

Search Words

Lentitud en envío de mails

Cant send email

problème d'envoi de mail suite à une migration de serveur avec changement d'adresse IP

не работает сервис почтовых рассылок

Host or domain name not found. Name service error for name

Mail not delivering to addresses created in horde

Host not found, try again

email problem

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7

Email subscription for changes to this article
Save as PDF