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

Reply via email to