> I haven't found much other than a thread dating back to 2013  from fgb,
> which appears related but doesn't seem to have a solution that works
> for me.

Apologies, this was a thread from 2007 though fgb was not the original
poster.

After digging a little more based on one of steve's suggestions in the
thread to run upas/smtp with -d, I think this makes much more sense
now:

% upas/smtp -d 'net!$smtp' stallion f...@bar.com
expanding /net!$smtp
sending /net/dns 'x.x.x.x mx'
dns: dns: name does not exist
mxlookup returns nothing
smtp: cs: can't translate address: dns: name does not exist (net!$smtp)

So it looks like upas will attempt to do an mx lookup for smtp; which
means it's expecting a domain rather than the dial string of an SMTP
server.

After digging into the source a bit, it looks like mkdial in
/sys/src/cmd/upas/smtp/mkdial.c is to blame; it also looks like it's
not possible to specify a port number, which makes sense given that
its relying on an mx lookup.

I suppose in the end the kludge I added was the right solution after
all.  Go figure.

Steve


------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T95e65bcdc61bf064-M0415822ccd72fb76bb57b4a1
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to