Postfix NIS warning message
Postfix NIS warning message

If you run a single Postfix server, you have probably see this warning message in the log file /var/log/mail.warn :
postfix/smtpd[12115]: warning: dict_nis_init: NIS domain name not set – NIS lookups disabled

This warning message is not important if you are running a single server. The Network Information Service is a client–server directory service protocol for distributing system configuration data such as user and host names between computers on a computer network.

Type the following command:
postconf | grep nis

Normally, you will have this output:
alias_maps = hash:/etc/aliases, nis:mail.aliases

To avoid the warning message to occur again, you just have to remove nis:mail.aliases from the variable alias_maps . To do that and apply the changes to the Postfix server, type the following commands:

postconf -e "alias_maps = hash:/etc/aliases"
service postfix restart

<>

My Powershell script categories


Source

Postfix NIS warning message

Leave a Reply

Your email address will not be published.