9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] dns failure
@ 2007-05-03 10:25 thagonzo
  2007-05-03 12:01 ` Steve Simon
  2007-05-03 16:34 ` geoff
  0 siblings, 2 replies; 7+ messages in thread
From: thagonzo @ 2007-05-03 10:25 UTC (permalink / raw)
  To: 9fans

Hi,

I've installed Plan9 3 weeks ago for the first time. Since that it replaced my Linux box for daily work more and more.

But I can't set up SMTP. From what I can tell, I've done everything correctly to set it up for my machine.
I've set smtp=mgate.chello.at in /lib/ndb/local. I've copied /mail/lib/rewrite.gateway to /lib/mail/gateway. I've modified /mail/lib/remotemail to pass the -a flag to upas/smtp.

con output:

term% con -l tcp!mgate.chello.at!smtp
connected to tcp!mgate.chello.at!smtp on /net/tcp/5
220 viefep11-int.chello.at ESMTP server (InterMail vM.7.08.02.00 201-2186-121-20061213) ready Thu, 3 May 2007 11:12:04 +0200

term% con -l tcp!213.46.255.2!smtp
connected to tcp!213.46.255.2!smtp on /net/tcp/2
220 viefep11-int.chello.at ESMTP server (InterMail vM.7.08.02.00 201-2186-121-20061213) ready Thu, 3 May 2007 11:40:49 +0200

Running following commad gets:

term% upas/smtp -d -as -h yourdomain.dom net!mgate.chello.at user csae9638@uibk.ac.at

ns: dns: dns failure
smtp: dns: dns failure (net!mgate.chello.at)
smtp 147: Retry, Temporary Failure

relevant part from my /lib/ndb/local:

ipnet=msnet ip=192.168.0.0 ipmask=255.255.255.0
	ipgw=192.168.0.1
	dns=1.2.3.4
	smtp=mgate.chello.at
	auth=gonzo


-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail


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

* Re: [9fans] dns failure
  2007-05-03 10:25 [9fans] dns failure thagonzo
@ 2007-05-03 12:01 ` Steve Simon
  2007-05-03 12:47   ` Frank Walser
  2007-05-03 16:34 ` geoff
  1 sibling, 1 reply; 7+ messages in thread
From: Steve Simon @ 2007-05-03 12:01 UTC (permalink / raw)
  To: 9fans

>  term% upas/smtp -d -as -h yourdomain.dom net!mgate.chello.at user csae9638@uibk.ac.at

I assume you are not really seting your from-domain to be "yourdomain.dom" ?

the relevant bit of my /mail/lib/remotemail looks like:

	fd=quintile.net
	exec /bin/upas/smtp -g $addr -h $fd $addr $sender $*

also, try this:

	ndb/ipquery sys $sysname smtp	# Note the $ here is not escaped

which should print

	smtp=mgate.chello.at

I.E. your /lib/ndb/local is consistent and being resolved correctly.


-Steve


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

* Re: [9fans] dns failure
  2007-05-03 12:01 ` Steve Simon
@ 2007-05-03 12:47   ` Frank Walser
  2007-05-03 13:15     ` Steve Simon
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Walser @ 2007-05-03 12:47 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs



> the relevant bit of my /mail/lib/remotemail looks like:
> 
> 	fd=quintile.net
> 	exec /bin/upas/smtp -g $addr -h $fd $addr $sender $*


My entry looks the same.


> 
> also, try this:
> 
> 	ndb/ipquery sys $sysname smtp	# Note the $ here is not escaped
> 
> which should print
> 
> 	smtp=mgate.chello.at
> 

Yeap, i got smtp=mgate.chello.at


Frank

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail


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

* Re: [9fans] dns failure
  2007-05-03 12:47   ` Frank Walser
@ 2007-05-03 13:15     ` Steve Simon
  2007-05-04 16:23       ` thagonzo
  0 siblings, 1 reply; 7+ messages in thread
From: Steve Simon @ 2007-05-03 13:15 UTC (permalink / raw)
  To: 9fans

Ok, to get as much debug as you can,
first try to send some mail.

once that has failed, do:
	tail /sys/log/runq

you should get somthing like this:

	May  3 10:46:10 steve/C.225661: execing '/mail/lib/remotemail' 'smtp' 'steve' 'net!$smtp' 'theirname@theirdomain.com' 

so, cut and pasteing from that you can run
remotemail under rc-x like this:

	rc -x '/mail/lib/remotemail' 'smtp' 'steve' 'net!$smtp' 'theirname@theirdomain.com'

which will give you some more debug, the last line of which is:

	exec /bin/upas/smtp -i -a -h mydomain.com 'net!$smtp' my-username-on-my-mail-relay theirname@theirdomain.com

interrupt this, and you can now re-run smtp, adding a -d option
to see the smtp debug:

	/bin/upas/smtp -d -i -a -h mydomain.com 'net!$smtp' my-username-on-my-mail-relay theirname@theirdomain.com

	expanding /net!$smtp
	sending /net/dns 'my.mail.relay.com mx'
	dns: dns: resource does not exist
	mxdial trying /net/net!mymailrelay.mydomain.com!smtp
	220 my.mail.relay.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at  Thu, 3 May 2007 14:10:40 +0100 
	EHLO myhost.mydomain.com
	250-mymailrelay.mydomain.com Hello [192.168.253.1]
	250-TURN
	250-SIZE
	...etc

somwhere here you should be able see where your problem is occuring.

-Steve


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

* Re: [9fans] dns failure
  2007-05-03 10:25 [9fans] dns failure thagonzo
  2007-05-03 12:01 ` Steve Simon
@ 2007-05-03 16:34 ` geoff
  1 sibling, 0 replies; 7+ messages in thread
From: geoff @ 2007-05-03 16:34 UTC (permalink / raw)
  To: 9fans

ndb/dns has been changing in recent weeks.  You might do a
replica/pull, reboot and see if that changes your symptoms or cures
your problem.



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

* Re: [9fans] dns failure
  2007-05-03 13:15     ` Steve Simon
@ 2007-05-04 16:23       ` thagonzo
  2007-05-04 17:20         ` Steve Simon
  0 siblings, 1 reply; 7+ messages in thread
From: thagonzo @ 2007-05-04 16:23 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi,
I hope that I don't waste your time. I get only

smtp: dns: dns failure (net!$smtp)

as debug output. If I change $smtp to mgate.chello.at I get the same behavior.
I've updated my system but I think that's not the problem.

Frank

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail


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

* Re: [9fans] dns failure
  2007-05-04 16:23       ` thagonzo
@ 2007-05-04 17:20         ` Steve Simon
  0 siblings, 0 replies; 7+ messages in thread
From: Steve Simon @ 2007-05-04 17:20 UTC (permalink / raw)
  To: 9fans

> smtp: dns: dns failure (net!$smtp)

Ok, it looks like its just a plain DNS problem.

Did you try doing a pull and a reboot as geoff suggested?
this will ensure you are running the latest ndb/dns resolver

if so, what happens if you try these, note the > is the prompt
printed by dnsquery:

	term% ndb/dnsquery
	> mgate.chello.at mx
	> mgate.chello.at.mx

here is what I get:

	felix% ndb/dnsquery
	> mgate.chello.at
	mgate.chello.at ip	213.46.255.2
	> mgate.chello.at mx
	!dns: resource does not exist

if you have trouble with dns, then check which dns server
you are using (cat /net/ndb), and maybe experiment with
ndb/dnsdebug (check the manual for details).

-Steve


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

end of thread, other threads:[~2007-05-04 17:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-03 10:25 [9fans] dns failure thagonzo
2007-05-03 12:01 ` Steve Simon
2007-05-03 12:47   ` Frank Walser
2007-05-03 13:15     ` Steve Simon
2007-05-04 16:23       ` thagonzo
2007-05-04 17:20         ` Steve Simon
2007-05-03 16:34 ` geoff

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