From: "Steven Stallion" <sstallion@gmail.com>
To: 9fans@9fans.net
Subject: Re: /mail/lib/rewrite and net!$smtp
Date: Fri, 6 Dec 2019 19:08:50 -0600 [thread overview]
Message-ID: <686020c91f0bec2ca87b673a702045d3@philo.quuxotic.net> (raw)
> 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 foo@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
next reply other threads:[~2019-12-07 1:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-07 1:08 Steven Stallion [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-12-07 0:13 Steven Stallion
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=686020c91f0bec2ca87b673a702045d3@philo.quuxotic.net \
--to=sstallion@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).