Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dict_nis_init: NIS domain name not set

4,772 views
Skip to first unread message

Bjorn Mork

unread,
Nov 21, 2011, 1:35:06 AM11/21/11
to

Hi all,

 

I am facing below error in my logs of postfix 2.7.1 (Ubuntu Server)...

 

root@web:~# tail -f /var/log/mail.info

Nov 21 10:09:01 web postfix/qmgr[29712]: 345D8100462CE: removed

Nov 21 10:11:04 web postfix/smtpd[30112]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled

Nov 21 10:11:04 web postfix/smtpd[30112]: connect from web[127.0.0.1]

Nov 21 10:11:04 web postfix/smtpd[30112]: disconnect from web[127.0.0.1]

Nov 21 10:16:12 web postfix/smtpd[30385]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled

Nov 21 10:16:12 web postfix/smtpd[30385]: connect from web[127.0.0.1]

Nov 21 10:16:12 web postfix/smtpd[30385]: disconnect from web[127.0.0.1]

Nov 21 10:21:13 web postfix/smtpd[30732]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled

Nov 21 10:21:13 web postfix/smtpd[30732]: connect from web[127.0.0.1]

Nov 21 10:21:13 web postfix/smtpd[30732]: disconnect from web[127.0.0.1]

 

 

Please guide.. how to avoid this problem..

 

 

Regards,

B~Mork

Jeroen Geilman

unread,
Nov 21, 2011, 5:22:04 PM11/21/11
to
On 2011-11-21 07:35, Bjorn Mork wrote:

Hi all,

 

I am facing below error in my logs of postfix 2.7.1 (Ubuntu Server)...


No you're not.


root@web:~# tail -f /var/log/mail.info

Nov 21 10:09:01 web postfix/qmgr[29712]: 345D8100462CE: removed

Nov 21 10:11:04 web postfix/smtpd[30112]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled


This is a warning; it may be safely ignored as it does not cause problems when running postfix with this particular configuration.

Are you _using_ NIS ?
Since postfix warns that the NIS domain name is not set, the obvious answer is no, you are not.
What made you think this would ever be a problem for you?


Please guide.. how to avoid this problem..


Stop misinterpreting your logs.


-- 
J.

Wietse Venema

unread,
Nov 21, 2011, 5:31:31 PM11/21/11
to
Bjorn Mork:
> Nov 21 10:21:13 web postfix/smtpd[30732]: warning: dict_nis_init: NIS
> domain name not set - NIS lookups disabled

It's a warning, not an error. You eliminate it by removing
NIS lookups.

First, find out what setting is using NIS:

$ postconf | grep nis:

This outputs something like

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

Then, disable NIS lookups (as root):

# postconf -e alias_maps=hash:/etc/aliases
or
# postconf -e alias_maps=hash:/etc/mail/aliases

The exact command depends on "postconf | grep nis:" output.

Wietse

Bjorn Mork

unread,
Nov 22, 2011, 1:41:37 PM11/22/11
to
Thanks Wietse...

Warning message is no more in logs....

Regards
BMork

bali...@gmail.com

unread,
Oct 17, 2013, 4:15:42 AM10/17/13
to
Hello All,

I am interested to join the group.

Thanks
0 new messages