From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 8A64DDDB792 for <9fans@9fans.net>; Fri, 6 Dec 2019 20:08:53 -0500 (EST) (envelope-from sstallion@gmail.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 7F600931213; Fri, 6 Dec 2019 20:08:53 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1575680933; b=j67LzyaUO8m7GdEXKloiOHabUc8lsqODeb7L6ddOxTajdWraTJ dsF6phNeyVrA4jEJf65Q8jCIJnhNwsf9HWZ20XDugrHhBZAHsAkYkRkcAFPO17RC kTw9uAF9svEXM+lcKFmwVhLIC+lU9Ylhx6uL+3hImuU9FZ78xfSn42Jt2OnhJeMn VM/vsr+3xB5Otq/qF2tPht5uxpfxp0rU9524LbrfGLKhYJ1HqygqFGdoe7I0WRYB /xLBp0E3gVAEAUaYqQK/L5K/VzxbFYJlY+Lydocl7B4/jbQob/hWWXejbW4Qm/kJ C7Eldf1TFs3l1pDFKPcUNVD757jgRRyXJPDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:to:subject:from:date:mime-version :content-type:content-transfer-encoding; s=arcseal; t= 1575680933; bh=dv4EdEJJDi6R5vVpMeCfQuxJiiuXt3GrkSiqWRTobDY=; b=U TEs+avGI6ITVKv22Dgr8N+LPhKHIvRIOPaGAMi3MOyDVGHoiLNac2DedBtt6lrOs 97VB1dvA+BhAlkcvUgnZTA7cI9+bysx0XE9z90GEtwk2cx+ej/B8GaLHN79W4a2s U1DgybgLkjXlU35IwfNRCnT70SnPtwYApfB+dOxA11w50LEUZsGzQaxJXZHqg5RQ EoXAoC0StV7Wd9U4NcZVurlW99yKlLltoV4SlmXgr8a2EVRC7GxU5ye8EIPfh3ib gtAHpHiB/BeBT6IN6hS9MxfTYBz1wJxq/oVssy4fUxvDwTsh+JN3benMBIg0ZKYK 9mW/ztGnqz1TXrrVUKFmw== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=VQ6Iek5g header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.161.67 (mail-yw1-f67.google.com); spf=pass smtp.mailfrom=sstallion@gmail.com smtp.helo=mail-yw1-f67.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=jWLhwxNq; x-ptr=pass smtp.helo=mail-yw1-f67.google.com policy.ptr=mail-yw1-f67.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Record found); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Record found); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=VQ6Iek5g header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.161.67 (mail-yw1-f67.google.com); spf=pass smtp.mailfrom=sstallion@gmail.com smtp.helo=mail-yw1-f67.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=jWLhwxNq; x-ptr=pass smtp.helo=mail-yw1-f67.google.com policy.ptr=mail-yw1-f67.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Record found); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Record found); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedufedrudekgedgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkvffuhf ffgggtgfesthejjhdttddtvdenucfhrhhomhepfdfuthgvvhgvnhcuufhtrghllhhiohhn fdcuoehsshhtrghllhhiohhnsehgmhgrihhlrdgtohhmqeenucfkphepvddtledrkeehrd duiedurdeijedpudejgedrkeeirddukedvrddugeehnecurfgrrhgrmhepihhnvghtpedv tdelrdekhedrudeiuddrieejpdhhvghlohepmhgrihhlqdihfiduqdhfieejrdhgohhogh hlvgdrtghomhdpmhgrihhlfhhrohhmpeeoshhsthgrlhhlihhonhesghhmrghilhdrtgho mhequcfukfgkgfepfeektddtnecuvehluhhsthgvrhfuihiivgeptd X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'sstallion@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="sstallion@gmail.com"; helo=mail-yw1-f67.google.com; client-ip=209.85.161.67 Received: from mail-yw1-f67.google.com (mail-yw1-f67.google.com [209.85.161.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Fri, 6 Dec 2019 20:08:53 -0500 (EST) (envelope-from sstallion@gmail.com) Received: by mail-yw1-f67.google.com with SMTP id s187so3466602ywe.10 for <9fans@9fans.net>; Fri, 06 Dec 2019 17:08:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:to:subject:from:date:mime-version :content-transfer-encoding; bh=dv4EdEJJDi6R5vVpMeCfQuxJiiuXt3GrkSiqWRTobDY=; b=VQ6Iek5gN9ipiD9K3nWrpceBO79bO+l7l76sQQ6smzZL2t7Bwg4pQAnpQwkscqNs5C sTgOBDdDj7AEE/InJWQ8eLIdyfCY02pWaI9hSka4bP6jUK3EV1N1r5MePaBGL6hSNkV7 bseXSlkILVxzaTQ78TeVd9nhtHeU2zxl17en+gWH08t0EuiNCai+UJzH/NatgnBvYqCM q0b3cAVUuTi4phaYfBJ2balvRlqGwsNVsBp5hD5NQw5u53TONpFAqgpST+CFxTjMnGsA n/cADwOwu257+ojTNE89pi/n6JbNUyrnFNEM5+jb6whyhihZRcktU3j3LR62aXL/rN5z 5JOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:to:subject:from:date:mime-version :content-transfer-encoding; bh=dv4EdEJJDi6R5vVpMeCfQuxJiiuXt3GrkSiqWRTobDY=; b=jWLhwxNqNQAwHLgpXZN9EQ43GbmYSngKMne+3knyLGSZ4TUCMkIS4XPgCa+a4V4+3r +kPIfLrhz+bMzquoHJbf4srIEXPezjPxqvFWuyusg7FWIpEZOQcZXAdbtOo5I+XgmFWm N17l/qA9EVU3mqWMzZWlcAwGfDtLc1iQjjrXQ8uRj9SCPE5WXCZ65oqs6rjxgnMZItuO UNjGo6JR18QOr547bBxtk/N+Abr6vrUz32k9yLTBDCBpoTNP3M5ReMKBEjUbirBI6hqq 2uI4bQeJbOLf8usMP7RUabD9jevK3FiUjMvLdQVMiBbsyADLuspB7Qm563ypZRv5uKM3 p2ew== X-Gm-Message-State: APjAAAUFoGv/00xa1qo9EDN8dYYP3bDGxWFpwuqy6GMxYgdxIvDwb+Mb Qs9I+ETEqdVSgjwhR+LdFKawL7IpYec= X-Google-Smtp-Source: APXvYqxaZ5RJkaUUJi+K3xsy2hq0vImL9yS73QtXCvm5FFmf6XTjuGB6uPSADcU00HvHExtsIO0B9Q== X-Received: by 2002:a0d:c3c2:: with SMTP id f185mr12092356ywd.21.1575680932495; Fri, 06 Dec 2019 17:08:52 -0800 (PST) Received: from mail.quuxotic.net (174-086-182-145.res.spectrum.com. [174.86.182.145]) by smtp.gmail.com with ESMTPSA id s130sm6748850ywg.11.2019.12.06.17.08.51 for <9fans@9fans.net> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Dec 2019 17:08:51 -0800 (PST) Received: from philo.quuxotic.net (philo.quuxotic.net [10.50.0.44]) by mail.quuxotic.net (Postfix) with ESMTPSA id 48761605B7C1 for <9fans@9fans.net>; Fri, 6 Dec 2019 19:08:51 -0600 (CST) Message-ID: <686020c91f0bec2ca87b673a702045d3@philo.quuxotic.net> To: 9fans@9fans.net Subject: Re: /mail/lib/rewrite and net!$smtp From: "Steven Stallion" Date: Fri, 6 Dec 2019 19:08:50 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 251dc9c0-188e-11ea-841d-fa660d8e68ae > 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