9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] SMTP Woes
@ 2007-04-13 14:34 Devon H. O'Dell
  2007-04-13 14:58 ` erik quanstrom
  2007-04-13 15:44 ` Russ Cox
  0 siblings, 2 replies; 9+ messages in thread
From: Devon H. O'Dell @ 2007-04-13 14:34 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

>From what I can tell, I've done everything correctly to set up SMTP
from my machine.
I've set smtp=smtp.gmail.com in /lib/ndb/local. I've copied
/mail/lib/rewrite.gateway to /mail/lib/rewrite. I've modified
/mail/lib/remotemail to pass the -a flag to upas/smtp. Just to be
sure, I'm passing -s too.

However, not all is happy. Running the proper commands, fgb gets:

g% /bin/upas/smtp -d -as -h yourdomain.dom net!smtp.gmail.com fgb
benavento@gmail.com
sending /net/dns 'smtp.gmail.com mx'
dns: dns: resource does not exist
mxdial trying /net/net!smtp.gmail.com!smtp
220 mx.google.com ESMTP 3sm2590210wrs

EHLO 192.168.233.128
:
:
[ continues on working. ]

When I run this command, I get:

9top% upas/smtp -d -as -h yourdomain.dom 'net!$smtp' dho devon.odell@gmail.com
expanding /net!$smtp
sending /net/dns 'smtp.gmail.com mx'
dns: dns: resource does not exist
mxdial trying /net/net!smtp.gmail.com!smtp
smtp: connection timed out (net!smtp.gmail.com)

Now, if I change the 'net!$smtp' to net!smtp.gmail.com, or even pass
-g smtp.gmail.com, I get the same behavior.

Any ideas what could be going wrong in my setup?

--dho


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

* Re: [9fans] SMTP Woes
  2007-04-13 14:34 [9fans] SMTP Woes Devon H. O'Dell
@ 2007-04-13 14:58 ` erik quanstrom
  2007-04-13 15:14   ` Devon H. O'Dell
  2007-04-13 15:44 ` Russ Cox
  1 sibling, 1 reply; 9+ messages in thread
From: erik quanstrom @ 2007-04-13 14:58 UTC (permalink / raw)
  To: 9fans

i think you need to replace yourdomain.dom with your real
domain in your rewrite file.

- erik

On Fri Apr 13 10:34:14 EDT 2007, devon.odell@gmail.com wrote:
> 9top% upas/smtp -d -as -h yourdomain.dom 'net!$smtp' dho devon.odell@gmail.com
> expanding /net!$smtp
> sending /net/dns 'smtp.gmail.com mx'
> dns: dns: resource does not exist
> mxdial trying /net/net!smtp.gmail.com!smtp
> smtp: connection timed out (net!smtp.gmail.com)
> 
> Now, if I change the 'net!$smtp' to net!smtp.gmail.com, or even pass
> -g smtp.gmail.com, I get the same behavior.
> 
> Any ideas what could be going wrong in my setup?
> 
> --dho


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

* Re: [9fans] SMTP Woes
  2007-04-13 14:58 ` erik quanstrom
@ 2007-04-13 15:14   ` Devon H. O'Dell
  2007-04-13 15:24     ` erik quanstrom
  0 siblings, 1 reply; 9+ messages in thread
From: Devon H. O'Dell @ 2007-04-13 15:14 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

2007/4/13, erik quanstrom <quanstro@coraid.com>:
> i think you need to replace yourdomain.dom with your real
> domain in your rewrite file.

fgb said that it didn't matter (from what I understood him saying, he
ran the same thing). I'll try doing that, but it's really strange that
not having that would cause my connection to time out. More later when
I can try that.

On a similar note, what is suggested for putting in `yourdomain.dom'
in the case where you're a laptop, and not really part of any
qualified domain in particular?

> - erik

--dho

> On Fri Apr 13 10:34:14 EDT 2007, devon.odell@gmail.com wrote:
> > 9top% upas/smtp -d -as -h yourdomain.dom 'net!$smtp' dho devon.odell@gmail.com
> > expanding /net!$smtp
> > sending /net/dns 'smtp.gmail.com mx'
> > dns: dns: resource does not exist
> > mxdial trying /net/net!smtp.gmail.com!smtp
> > smtp: connection timed out (net!smtp.gmail.com)
> >
> > Now, if I change the 'net!$smtp' to net!smtp.gmail.com, or even pass
> > -g smtp.gmail.com, I get the same behavior.
> >
> > Any ideas what could be going wrong in my setup?
> >
> > --dho
>


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

* Re: [9fans] SMTP Woes
  2007-04-13 15:14   ` Devon H. O'Dell
@ 2007-04-13 15:24     ` erik quanstrom
  2007-04-13 15:31       ` Devon H. O'Dell
  0 siblings, 1 reply; 9+ messages in thread
From: erik quanstrom @ 2007-04-13 15:24 UTC (permalink / raw)
  To: 9fans

i don't know anything about gmail, but smtp.gmail.com is not
an mx for gmail.com.  here's what i get:

	; ndb/dnsquery
	> gmail.com mx
	gmail.com mx	10 alt1.gmail-smtp-in.l.google.com
	gmail.com mx	50 gsmtp163.google.com
	gmail.com mx	5 gmail-smtp-in.l.google.com


do you have a rule for gmail that says to use smtp.gmail.com?

- erik



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

* Re: [9fans] SMTP Woes
  2007-04-13 15:24     ` erik quanstrom
@ 2007-04-13 15:31       ` Devon H. O'Dell
  2007-04-13 15:36         ` erik quanstrom
  0 siblings, 1 reply; 9+ messages in thread
From: Devon H. O'Dell @ 2007-04-13 15:31 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

2007/4/13, erik quanstrom <quanstro@coraid.com>:
> i don't know anything about gmail, but smtp.gmail.com is not
> an mx for gmail.com.  here's what i get:

Weird that it works for fgb then.

>         ; ndb/dnsquery
>         > gmail.com mx
>         gmail.com mx    10 alt1.gmail-smtp-in.l.google.com
>         gmail.com mx    50 gsmtp163.google.com
>         gmail.com mx    5 gmail-smtp-in.l.google.com
>
> do you have a rule for gmail that says to use smtp.gmail.com?
>
> - erik

I have only what I described -- let me try using `gmail.com' then
instead. (All the documentation that gmail has says to use
smtp.gmail.com as the mail server). Also, their DNS changes depending
on which DNS server actually gets your query and where you're located
and all sorts of stuff, so I don't think I can just set it to one of
those.

--dho


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

* Re: [9fans] SMTP Woes
  2007-04-13 15:31       ` Devon H. O'Dell
@ 2007-04-13 15:36         ` erik quanstrom
  0 siblings, 0 replies; 9+ messages in thread
From: erik quanstrom @ 2007-04-13 15:36 UTC (permalink / raw)
  To: 9fans

there appears to be a bad interaction between the mxlookup in smtp
and google's setup.  they have this record for smtp.gmail.com

	; ndb/dnsquery
	> smtp.gmail.com any
	smtp.gmail.com cname	gmail-smtp.l.google.com

evidently, the expect cname resolution before the mxquery.  perhaps
smtp isn't doing that.

- erik


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

* Re: [9fans] SMTP Woes
  2007-04-13 14:34 [9fans] SMTP Woes Devon H. O'Dell
  2007-04-13 14:58 ` erik quanstrom
@ 2007-04-13 15:44 ` Russ Cox
  2007-04-13 16:02   ` Devon H. O'Dell
  1 sibling, 1 reply; 9+ messages in thread
From: Russ Cox @ 2007-04-13 15:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> 9top% upas/smtp -d -as -h yourdomain.dom 'net!$smtp' dho devon.odell@gmail.com
> expanding /net!$smtp
> sending /net/dns 'smtp.gmail.com mx'
> dns: dns: resource does not exist
> mxdial trying /net/net!smtp.gmail.com!smtp
> smtp: connection timed out (net!smtp.gmail.com)

Your network connection is timing out (as it says).

Yourdomain.dom is used for various purposes
during the smtp conversation.  Smtp didn't even
bother looking for the MX of gmail.com.
So both of those are irrelevant.

Smtp did look to see if there was an MX for
smtp.gmail.com, but it didn't find one so it is
trying to connect directly.  That's just fine too.

You have a good error right there:

> mxdial trying /net/net!smtp.gmail.com!smtp
> smtp: connection timed out (net!smtp.gmail.com)

The network connection smtp is trying to make is timing out.
You don't have a mail problem; you have a network problem.
At least that is simpler.

Try connecting with a simple program:

  con -l tcp!smtp.gmail.com!smtp

When that fails, verify that you can resolve the name
smtp.gmail.com using ndb/dnsquery.

When that succeeds, try connecting directly to the IP address:

  con -l tcp!209.85.133.109!smtp

When that fails, make sure you can connect to other
systems:

  con -l tcp!plan9.bell-labs.com!http

When that succeeds, try connecting to the SMTP port using
a different operating system or machine on the same network.

It could be that your ISP is blocking external SMTP connections,
for example.

Russ


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

* Re: [9fans] SMTP Woes
  2007-04-13 15:44 ` Russ Cox
@ 2007-04-13 16:02   ` Devon H. O'Dell
  2007-04-13 16:05     ` Russ Cox
  0 siblings, 1 reply; 9+ messages in thread
From: Devon H. O'Dell @ 2007-04-13 16:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

2007/4/13, Russ Cox <rsc@swtch.com>:
> > 9top% upas/smtp -d -as -h yourdomain.dom 'net!$smtp' dho devon.odell@gmail.com
> > expanding /net!$smtp
> > sending /net/dns 'smtp.gmail.com mx'
> > dns: dns: resource does not exist
> > mxdial trying /net/net!smtp.gmail.com!smtp
> > smtp: connection timed out (net!smtp.gmail.com)
>
> Your network connection is timing out (as it says).
>
> Yourdomain.dom is used for various purposes
> during the smtp conversation.  Smtp didn't even
> bother looking for the MX of gmail.com.
> So both of those are irrelevant.
>
> Smtp did look to see if there was an MX for
> smtp.gmail.com, but it didn't find one so it is
> trying to connect directly.  That's just fine too.
>
> You have a good error right there:
>
> > mxdial trying /net/net!smtp.gmail.com!smtp
> > smtp: connection timed out (net!smtp.gmail.com)
>
> The network connection smtp is trying to make is timing out.
> You don't have a mail problem; you have a network problem.
> At least that is simpler.

Not really. Because this is with the same laptop I use to manage the
changes, I can run abaco and browse to my heart's content. I can IRC
from here, I can VNC to my Mac Mini.

> Try connecting with a simple program:
>
>   con -l tcp!smtp.gmail.com!smtp
>
> When that fails, verify that you can resolve the name
> smtp.gmail.com using ndb/dnsquery.
>
> When that succeeds, try connecting directly to the IP address:
>
>   con -l tcp!209.85.133.109!smtp
>
> When that fails, make sure you can connect to other
> systems:
>
>   con -l tcp!plan9.bell-labs.com!http
>
> When that succeeds, try connecting to the SMTP port using
> a different operating system or machine on the same network.
>
> It could be that your ISP is blocking external SMTP connections,
> for example.

I'd be inclined to say that this is the most likely culprit. What's
weird is that, using the same ISP at work, I don't have this issue at
work. I'll call them up and see what the issue is. Sorry for the
noise.

> Russ

--dho


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

* Re: [9fans] SMTP Woes
  2007-04-13 16:02   ` Devon H. O'Dell
@ 2007-04-13 16:05     ` Russ Cox
  0 siblings, 0 replies; 9+ messages in thread
From: Russ Cox @ 2007-04-13 16:05 UTC (permalink / raw)
  To: 9fans

>> At least that is simpler.
> 
> Not really. Because this is with the same laptop I use to manage the
> changes, I can run abaco and browse to my heart's content. I can IRC
> from here, I can VNC to my Mac Mini.

It's still a simpler problem -- if you can reproduce
it with con, then any extra complexity that smtp adds
is not relevant.

Russ



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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-13 14:34 [9fans] SMTP Woes Devon H. O'Dell
2007-04-13 14:58 ` erik quanstrom
2007-04-13 15:14   ` Devon H. O'Dell
2007-04-13 15:24     ` erik quanstrom
2007-04-13 15:31       ` Devon H. O'Dell
2007-04-13 15:36         ` erik quanstrom
2007-04-13 15:44 ` Russ Cox
2007-04-13 16:02   ` Devon H. O'Dell
2007-04-13 16:05     ` Russ Cox

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