Artificial intelligent assistant

Postfix mail logs keep showing "NIS domain not set" 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

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

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 7240798a1a5e585e9626e3d58a254603