9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Robert Raschke <rrplan9@tombob.com>
To: x-x@comcast.net, 9fans@cse.psu.edu
Subject: Re: [9fans] smtp dns failure: mx lookup
Date: Tue,  3 Jan 2006 09:31:51 +0000	[thread overview]
Message-ID: <9bef2a2dfb71042935f1e86c22f57f1c@tombob.com> (raw)
In-Reply-To: <bde13d79d0a3adcb1545e5484908131f@comcast.net>

greg scott wrote:
> trying to send mail (Post tag in acme mail) results in
> this /sys/log/smtp.fail entry
> dns: dns failure (net!smtp.comcast.net)

I don't have a solution, just a workaround.  I don't even understand
why it is happening.

I had the same problem whenever I had to fall back on using my ISP's
smtp server.  I got "around" this problem by adding a bit of guff in
front of the upas/smtp ...  line in /mail/lib/remotemail that does the
posting.  If you are always using smtp.comcast.net, then add this:

echo smtp.comcast.net |ndb/dnsquery >/dev/null

I also changed my remotemail to attempt direct delivery before falling
back to the ISP smtp server:

#!/bin/rc
shift
sender=$1
shift
addr=$1
shift
fd=`{/bin/upas/aliasmail -f $sender}
switch($fd){
case *.*
	;
case *
	fd=tombob.com
}
today=`{date}
if (upas/smtp -h $fd $addr $sender $*) {
	exit 0
}
echo $today : upas/smtp -h $fd tcp!smtp.blueyonder.co.uk $sender $* >>/sys/log/remotemail
echo smtp.blueyonder.co.uk |ndb/dnsquery >>/sys/log/remotemail
exec upas/smtp -h $fd tcp!smtp.blueyonder.co.uk $sender $*


Robby



  reply	other threads:[~2006-01-03  9:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-03  1:50 greg scott
2006-01-03  9:31 ` Robert Raschke [this message]
2006-01-03 12:13   ` Steve Simon
2006-01-03 12:18 ` erik quanstrom
2006-01-03 14:39   ` Russ Cox
2006-01-04  2:28     ` erik quanstrom

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=9bef2a2dfb71042935f1e86c22f57f1c@tombob.com \
    --to=rrplan9@tombob.com \
    --cc=9fans@cse.psu.edu \
    --cc=x-x@comcast.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).