I just set up a new email server using Postfix and Dovecot. I've been troubleshooting, and this line keeps appearing in my logs (specifically, mail.info and mail.log). What is a NIS domain, and how do I fix the problem?

postfix/smtpd[6107]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
up vote 25 down vote accepted

It's not actually a problem, just a warning that can seem alarming to new users. A NIS (Network Information System) allows "a group of machines within an NIS domain to share a common set of configuration files." Basically, if you're running email servers on more than one box, you can share config files between them.

In this case, since you are just running a single server, we can remove the line causing this error.

If we run postconf | grep nis we can see that the postfix configuration utility has following line:

alias_maps = hash:/etc/aliases, nis:mail.aliases

You can take out the nis:mail.aliases part by running this command:

postconf -e "alias_maps = hash:/etc/aliases"

This will remove the warnings from your logs. You will also need to restart your Postfix service for the changes to take effect:

service postfix restart

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.