From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Mon, 15 Jan 2007 14:22:15 -0500 From: "Russ Cox" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] $smtp dns failure In-Reply-To: <32d987d50701151005t60585bacxee64015dca57bf94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <88a477560701150855u61e56241x3d4426082a8ce605@mail.gmail.com> <32d987d50701151005t60585bacxee64015dca57bf94@mail.gmail.com> Topicbox-Message-UUID: 03c56cf4-ead2-11e9-9d60-3106f5b1d025 > I have "smtp=smpt.gmail.com" on my profile. Unfortunately, in the context of dial strings, there is a difference between the environment variable smtp and the network variable smtp. Setting the environment variable in your profile should not affect /mail/lib/rewrite at all. It is the network variable smtp that is named by the rewrite rule. For that to work you need to have set smtp= in the /lib/ndb entry for your host or in the entry for a network containing it. > What does > > ndb/csquery net!$smtp!smtp > > print? For the same reason, you actually want to run ndb/csquery 'net!$smtp!smtp' (with quotes), so that the shell does not substitute the environment variable. Russ