Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!princeton!phoenix!melon!viktor From: viktor@melon.Princeton.EDU (Viktor Dukhovni) Newsgroups: comp.mail.sendmail Subject: Re: Uid in sendmail and NFS Message-ID: <14116@phoenix.Princeton.EDU> Date: 27 Feb 90 02:23:52 GMT References: <10261@ardent.UUCP> <221@metaware.metaware.com> Sender: news@phoenix.Princeton.EDU Lines: 149 >In article <10261@ardent.UUCP> massey@ardent (Todd Massey) writes: >> >>Heres the problem: >> Have a symbolic link via NFS to /usr/spool/mail. >> Now when a machine running sendmail recieves a mail message and tries >> to place the file in /usr/spool/mail with nfs mount links, it has a >> uid of nobody (-2), the reason behind this is that nfs does not allow > On the machine that exports /usr/spool/mail edit the /etc/exports >file, add the option "anon=0" to the line that has /usr/spool/mail on it. >-- >adam margulies metaware incorporated > INTERNET: adam@metaware.com > UUCP: uunet!metaware!adam > ATT: (408)429-META x3016 There have been enough "wrong" solutions to this problem with no correction to warrant a response (I usually avoid posting on the assumption that I am the 100th one to say the same old thing) The "right" way to share /usr/spool/mail over NFS is for the clients to forward the mail to the server "via" SMTP! Use mail protocols for mail, and file protocols for files! This has many advantages: 1) You do not have problems with allowing root access or restrictions on the number of clients. 2) The locking should work more reliably. 3) With a little work (a few MX records) you can stop running "sendmail -bd" on the client all together, the client sendmail.cf (sample enclosed) can be barebones simple! The only catch is to make the server recognize mail bound for the clients as "local", you must define a class containing all the clients you serve, and resolve all members of that class to the local mailer, talk to the nearest sendmail "guru" ! Here is my "trivial" client sendmail.cf file, works on Irises, NeXTs, Suns, Mips and Decstations, (the master sendmail.cf is much less portable, trips over bugs in the various versions) ---------------Cut-------------- # The .cf version for the SMTP banner DZMath-Client # The local domain DDPrinceton.EDU # The master's full name DRmath.$D # Our official name! Dj$w ##### MyName - Should be aliased to a real pereson DnPostmaster ##### UNIX header format DlFrom $g $d ##### Delimiter characters (NONE! Don't need to look inside addresses) Do ##### Format of a total name Dq<$g> ##### SMTP login message De$j Sendmail $v/$Z ready at $b ##### substitution for space (blank) characters OB. ##### default delivery mode (deliver in background) Odbackground ##### temporary file mode OF0600 ##### log level OL9 ##### default network name ON$D ##### default messages to old style Oo ##### queue directory OQ/usr/spool/mqueue ##### read timeout Or20m ##### queue up everything before starting transmission Os ##### default timeout interval OT3d ##### time zone names (V6 only) OtEST,EDT ##### default UID Ou1 ##### default GID Og1 ##### wizard's password (disabled) OW* ##### load average at which we just queue messages Ox8 ##### load average at which we refuse connections OX12 # Message precedences Pfirst-class=0 Pspecial-delivery=100 Pbulk=-60 Pjunk=-100 # Trusted users Troot ########################################################################## # Format of headers ########################################################################## H?P?Return-Path: <$g> H?M?Received: $?sfrom $s $.by $j ($v/$Z) id $i; $b H?D?Resent-Date: $a H?D?Date: $a H?F?Resent-From: $q H?F?From: $q H?x?Full-Name: $x HSubject: H?M?Resent-Message-Id: <$t.$i@$j> H?M?Message-Id: <$t.$i@$j> S3 R$*<$+>$* $2 defocus for fullnames on master ########################################################################## ##### RULESET ZERO - Select Mailer ########################################################################## S0 R$* $#ether$@$R$:$1 punt to Relay ########################################################################## ##### Nothing to do in Rulesets 1,2,4 ########################################################################## S1 S2 S4 ########################################################################## ##### Mailer Defs (R=1,S=1 could be any blank rule) ########################################################################## Mlocal, P=/usr/lib/sendmail, F=DFILMmsuX, S=1, R=1, A=sendmail $n Mprog, P=/usr/lib/sendmail, F=DFILMmsuX, S=1, R=1, A=sendmail $n Mether, P=[IPC], F=DFMmuex, S=1, R=1, A=IPC $h --------------Cut--------------- -- Viktor Dukhovni : ARPA <...!uunet!princeton!math!viktor> : UUCP Fine Hall, Washington Rd., Princeton, NJ 08544 : US-Post +1-(609)-258-5792 : VOICE