9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] /mail/lib/rewrite and net!$smtp
@ 2019-12-08  2:25 Steven Stallion
  0 siblings, 0 replies; 5+ messages in thread
From: Steven Stallion @ 2019-12-08  2:25 UTC (permalink / raw)
  To: 9fans

> Thanks!  Unfortunately my MX host only exposes port 587 for relaying
> mail outside of the domain.  I suppose I could update cs to permit
> specifying a port number in ndb for $smtp, but I'm not sure that's any
> better than just specifying the relay host directly in rewrite.

I did some more poking around this evening and I think I've found a
slightly better approach.  Rather than try to embed the service string
in the smtp= entry in ndb, I appended it to the upas/smtp call in
/mail/lib/remotemail.  It's not as clean as I would like, but hey, at
least I'm a member of the net!$smtp club now.

Cheers,
Steve


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [9fans] /mail/lib/rewrite and net!$smtp
@ 2019-12-07  0:54 Alex Musolino
  2019-12-07  1:13 ` kvik
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Musolino @ 2019-12-07  0:54 UTC (permalink / raw)
  To: 9fans

What about:

	% ndb/csquery /net/cs 'net!$smtp!25'

Or even:

	% ndb/csquery /net/cs 'tcp!$smtp!25'

^ permalink raw reply	[flat|nested] 5+ messages in thread
* /mail/lib/rewrite and net!$smtp
@ 2019-12-07  0:13 Steven Stallion
  2019-12-07 21:10 ` [9fans] " Richard Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Steven Stallion @ 2019-12-07  0:13 UTC (permalink / raw)
  To: 9fans

All,

I was reviewing my mail setup this evening and I came across an old
kludge to forward mail to a relay host on my network in
/mail/lib/rewrite.  I used a host-specific dial string rather than
net!$smtp.  For kicks, I reverted back to the classic behavior to try
and sort out why the lookup fails and I'm hitting a brick wall
(again).

I've try adding smtp= entries to the sys, ipnet, and dom entries in
/lib/ndb/local and nothing seems to be taking.  I'm testing changes by
issuing an ndb/csquery and I'm always getting the same result:

	% ndb/csquery /net/cs 'net!$smtp!smtp'
	translating net!$smtp!smtp: cs: can't translate address: dns: name does not exist

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.

Any ideas?
Steve


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-12-08  2:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-08  2:25 [9fans] /mail/lib/rewrite and net!$smtp Steven Stallion
  -- strict thread matches above, loose matches on Subject: below --
2019-12-07  0:54 Alex Musolino
2019-12-07  1:13 ` kvik
2019-12-07  0:13 Steven Stallion
2019-12-07 21:10 ` [9fans] " Richard Miller
2019-12-07 21:46   ` Steven Stallion

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).