From owner-freebsd-current Sun Sep 29 17:46:51 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA04412 for current-outgoing; Sun, 29 Sep 1996 17:46:51 -0700 (PDT) Received: from gandalf.ec.camitel.com (174.ec.camitel.com [206.231.123.174]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id RAA04332 for ; Sun, 29 Sep 1996 17:46:45 -0700 (PDT) Received: (from ccote@localhost) by gandalf.ec.camitel.com (8.7.6/8.7.3) id UAA01381; Sun, 29 Sep 1996 20:48:46 -0400 (EDT) Date: Sun, 29 Sep 1996 20:48:46 -0400 (EDT) Message-Id: <199609300048.UAA01381@gandalf.ec.camitel.com> From: Claude Cote To: wpaul@skynet.ctr.columbia.edu CC: current@freebsd.org Subject: Problems with mail-aliasing using NIS - Solved Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello Bill, Thanks for your hints! I've finally found the problem: it was sendmail. > Also, did you check that you enable NIS access to the mail.aliases > map in the client's /etc/sendmail.cf file? Did you restart sendmail > on the client machines as well as the server after you added NIS > support to the config file? Can you confirm that sendmail on the client > was really built with NIS map support? If you copy the sendmail binary > from the server onto the clients, does that work? If you do We can read this in /usr/src/usr.sbin/sendmail/src/READ_ME: NIS Define this to get NIS (YP) support for aliases and maps. Normally defined in the Makefile. but the option is NOT defined in the Makefile... and that's why it didn't work before. In short, to use mail-aliasing with NIS, we must do the following: 1) Add -DNIS in the DBMDEF line in the file /usr/src/usr.sbin/sendmail/src/Makefile and recompile sendmail; 2) Tell sendmail (in /etc/sendmail.cf) to use also NIS as alias file: # location of alias file O AliasFile=/etc/aliases,nis:mail.aliases 3) Restart sendmail. Et voila! Thanks VERY much!!! Claude