9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] SMTP problem
@ 2008-01-23 16:01 Rodolfo kix Garci­a
  2008-01-23 16:17 ` Gary Wright
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Rodolfo kix Garci­a @ 2008-01-23 16:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi,

I am tired and I can't find the problem. I am changing my smtp server to 
my new one. The problem is about the relay denied:

cpu% upas/smtp -a -s -i -d -h kix.es net!mail.kix.es foo foo@bar.com
sending /net/dns 'mail.kix.es mx'
dns mx: mail.kix.es mx    0 mx1.balanced.janky.mail.dreamhost.com
dns mx: mail.kix.es mx    0 mx2.balanced.janky.mail.dreamhost.com
dns mx; got 2 entries
mxdial trying /net/net!mx2.balanced.janky.mail.dreamhost.com!smtp
220 jankymail-mx2.g.dreamhost.com ESMTP
EHLO kix.es
250-jankymail-mx2.g.dreamhost.com
250-PIPELINING
250-SIZE 40960000
250-ETRN
250-STARTTLS
250 8BITMIME
STARTTLS
220 Ready to start TLS
EHLO kix.es
250-jankymail-mx2.g.dreamhost.com
250-PIPELINING
250-SIZE 40960000
250-ETRN
250 8BITMIME
MAIL FROM:<kix-AT-kix.es>  <--changed  for the  9fans list
250 Ok
RCPT TO:<foo@bar.com>
554 <foo@bar.com>: Relay access denied
Wed Jan 23 16:53:12 CET 2008 connect to net!mail.kix.es:
554 <foo@bar.com>: Relay access denied
QUIT
221 Bye
cpu%

The problem is about the user/pass auth (I think it), but is correct in 
factotum:

cpu% cat /mnt/factotum/ctl
key proto=pass server=mail.kix.es service=imap user=foo !password?
key proto=pass service=smtp user=foo server=mail.kix.es !password?
key proto=pass server=mx1.balanced.janky.mail.dreamhost.com service=smtp 
user=foo !password?
key proto=pass server=mx2.balanced.janky.mail.dreamhost.com service=smtp 
user=foo !password?

With my own mail address at the server, it runs ok.

Heeeelp!

slds, kix.


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

* Re: [9fans] SMTP problem
  2008-01-23 16:01 [9fans] SMTP problem Rodolfo kix Garci­a
@ 2008-01-23 16:17 ` Gary Wright
  2008-01-23 16:31   ` Rodolfo kix Garci­a
  2008-01-23 16:37 ` Gabriel Diaz Lopez de la Llave
  2008-01-23 17:54 ` Micah Stetson
  2 siblings, 1 reply; 7+ messages in thread
From: Gary Wright @ 2008-01-23 16:17 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


On Jan 23, 2008, at 11:01 AM, Rodolfo kix Garci a wrote:

> Hi,
>
> I am tired and I can't find the problem. I am changing my smtp  
> server to my new one. The problem is about the relay denied:
>
> cpu% upas/smtp -a -s -i -d -h kix.es net!mail.kix.es foo foo@bar.com

I'm not sure if I'm telling you something you already know but...

Most (sane) mail servers will not forward email to an arbitrary  
address (bar.com) unless you have authenticated your SMTP session.   
Based on that SMTP trace, it doesn't look like any SMTP  
authentication took place and so relaying to bar.com was denied.

Gary Wright


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

* Re: [9fans] SMTP problem
  2008-01-23 16:17 ` Gary Wright
@ 2008-01-23 16:31   ` Rodolfo kix Garci­a
  0 siblings, 0 replies; 7+ messages in thread
From: Rodolfo kix Garci­a @ 2008-01-23 16:31 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Yes!

but I don't know why upas/smtp do not send my user/password. My 
credentials are in the factotum database for mail.kix.es, and the 
dreamhost mail exchangers (proto=smtp).

Thanks.

Gary Wright wrote:
>
> On Jan 23, 2008, at 11:01 AM, Rodolfo kix Garci a wrote:
>
>> Hi,
>>
>> I am tired and I can't find the problem. I am changing my smtp server 
>> to my new one. The problem is about the relay denied:
>>
>> cpu% upas/smtp -a -s -i -d -h kix.es net!mail.kix.es foo foo@bar.com
>
> I'm not sure if I'm telling you something you already know but...
>
> Most (sane) mail servers will not forward email to an arbitrary 
> address (bar.com) unless you have authenticated your SMTP session.  
> Based on that SMTP trace, it doesn't look like any SMTP authentication 
> took place and so relaying to bar.com was denied.
>
> Gary Wright


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

* Re: [9fans] SMTP problem
  2008-01-23 16:01 [9fans] SMTP problem Rodolfo kix Garci­a
  2008-01-23 16:17 ` Gary Wright
@ 2008-01-23 16:37 ` Gabriel Diaz Lopez de la Llave
  2008-01-23 17:54 ` Micah Stetson
  2 siblings, 0 replies; 7+ messages in thread
From: Gabriel Diaz Lopez de la Llave @ 2008-01-23 16:37 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

hello


>
> EHLO kix.es
> 250-jankymail-mx2.g.dreamhost.com

I think that name should be in factotum.

you could try to put wilcards in the server option like  
*.dreamhost.com but I don't if that works or makes sense to factotum.

You could send email choosing one server of the dreamhost.com pool and  
using it by its direct name instead mail.kix.es, I think this way upas/ 
smtp will find your key correctly, and you will speak allways with the  
same server instead of a 'random' one.

slds.



>
> 250-PIPELINING
> 250-SIZE 40960000
> 250-ETRN
> 250-STARTTLS
> 250 8BITMIME
> STARTTLS
> 220 Ready to start TLS
> EHLO kix.es
> 250-jankymail-mx2.g.dreamhost.com
> 250-PIPELINING
> 250-SIZE 40960000
> 250-ETRN
> 250 8BITMIME
> MAIL FROM:<kix-AT-kix.es>  <--changed  for the  9fans list
> 250 Ok
> RCPT TO:<foo@bar.com>
> 554 <foo@bar.com>: Relay access denied
> Wed Jan 23 16:53:12 CET 2008 connect to net!mail.kix.es:
> 554 <foo@bar.com>: Relay access denied
> QUIT
> 221 Bye
> cpu%
>
> The problem is about the user/pass auth (I think it), but is correct  
> in factotum:
>
> cpu% cat /mnt/factotum/ctl
> key proto=pass server=mail.kix.es service=imap user=foo !password?
> key proto=pass service=smtp user=foo server=mail.kix.es !password?
> key proto=pass server=mx1.balanced.janky.mail.dreamhost.com  
> service=smtp user=foo !password?
> key proto=pass server=mx2.balanced.janky.mail.dreamhost.com  
> service=smtp user=foo !password?
>
> With my own mail address at the server, it runs ok.
>
> Heeeelp!
>
> slds, kix.


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

* Re: [9fans] SMTP problem
  2008-01-23 16:01 [9fans] SMTP problem Rodolfo kix Garci­a
  2008-01-23 16:17 ` Gary Wright
  2008-01-23 16:37 ` Gabriel Diaz Lopez de la Llave
@ 2008-01-23 17:54 ` Micah Stetson
  2008-01-23 19:41   ` Rodolfo kix Garci­a
  2 siblings, 1 reply; 7+ messages in thread
From: Micah Stetson @ 2008-01-23 17:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> STARTTLS
> 220 Ready to start TLS
> EHLO kix.es
> 250-jankymail-mx2.g.dreamhost.com
> 250-PIPELINING
> 250-SIZE 40960000
> 250-ETRN
> 250 8BITMIME

The SMTP server doesn't claim to support AUTH.  You should get a line like this:

250 AUTH CRAM-MD5 DIGEST-MD5

Or some such.

Micah


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

* Re: [9fans] SMTP problem
  2008-01-23 17:54 ` Micah Stetson
@ 2008-01-23 19:41   ` Rodolfo kix Garci­a
  2008-01-23 22:00     ` Rodolfo Garcia (kix)
  0 siblings, 1 reply; 7+ messages in thread
From: Rodolfo kix Garci­a @ 2008-01-23 19:41 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Thanks Micah,

I try with tcpdump, and this is the result, some servers 
(jankymail-a*dreamhost.com) are using auth methods, at the other hand, 
other servers (jankymail-m*dreamhost.com) do not use it. When I use 
Linux and Thunderbird, the servers has authentication, but with telnet, 
or upas not. Why? Why? Why?

look this:

Using Linux + Thunderbird

20:08:38.679978 IP 192.168.1.12.41663 > janky.mail.dreamhost.com.smtp: P 
1:22(21) ack 41 win 92 <nop,nop,timestamp 470474 4213406710>
   0x0000:  4500 0049 f62e 4000 4006 2dea c0a8 010c  E..I..@.@.-.....
   0x0010:  d061 8480 a2bf 0019 19c7 db66 e248 27eb  .a.........f.H'.
   0x0020:  8018 005c d05b 0000 0101 080a 0007 2dca  ...\.[........-.
   0x0030:  fb23 7bf6 4548 4c4f 205b 3139 322e 3136  .#{.EHLO.[192.16
   0x0040:  382e 312e 3132 5d0d 0a                   8.1.12]..
20:08:38.926309 IP janky.mail.dreamhost.com.smtp > 192.168.1.12.41663: P 
41:192(151) ack 22 win 4401 <nop,nop,timestamp 4213406957 470474>
   0x0000:  4500 00cb 5016 4000 eb06 2880 d061 8480  E...P.@...(..a..
   0x0010:  c0a8 010c 0019 a2bf e248 27eb 19c7 db7b  .........H'....{
   0x0020:  8018 1131 8c85 0000 0101 080a fb23 7ced  ...1.........#|.
   0x0030:  0007 2dca 3235 302d 6a61 6e6b 796d 6169  ..-.250-jankymai
   0x0040:  6c2d 6132 2e67 2e64 7265 616d 686f 7374  l-a2.g.dreamhost
   0x0050:  2e63 6f6d 0d0a 3235 302d 5049 5045 4c49  .com..250-PIPELI
   0x0060:  4e49 4e47 0d0a 3235 302d 5349 5a45 2034  NING..250-SIZE.4
   0x0070:  3039 3630 3030 300d 0a32 3530 2d45 5452  0960000..250-ETR
   0x0080:  4e0d 0a32 3530 2d53 5441 5254 544c 530d  N..250-STARTTLS.
   0x0090:  0a32 3530 2d41 5554 4820 4c4f 4749 4e20  .250-AUTH.LOGIN.
   0x00a0:  504c 4149 4e0d 0a32 3530 2d41 5554 483d  PLAIN..250-AUTH=
   0x00b0:  4c4f 4749 4e20 504c 4149 4e0d 0a32 3530  LOGIN.PLAIN..250
   0x00c0:  2038 4249 544d 494d 450d 0a              .8BITMIME..

Using Plan9 + upas/smtp:

20:10:38.700084 IP 192.168.1.12.24932 > 
jankymail-mx1.g.dreamhost.com.smtp: P 1:14(13) ack 42 win 65535
   0x0000:  4500 0035 2b64 0000 fe06 7aca c0a8 010c  E..5+d....z.....
   0x0010:  d061 847e 6164 0019 6b46 c59f 9c31 53e3  .a.~ad..kF...1S.
   0x0020:  5018 ffff 4fc5 0000 4548 4c4f 206b 6978  P...O...EHLO.kix
   0x0030:  2e65 730d 0a                             .es..
20:10:38.929136 IP jankymail-mx1.g.dreamhost.com.smtp > 
192.168.1.12.24932: P 42:150(108) ack 14 win 4393
   0x0000:  4500 0094 a577 4000 eb06 d357 d061 847e  E....w@....W.a.~
   0x0010:  c0a8 010c 0019 6164 9c31 53e3 6b46 c5ac  ......ad.1S.kF..
   0x0020:  5018 1129 ae72 0000 3235 302d 6a61 6e6b  P..).r..250-jank
   0x0030:  796d 6169 6c2d 6d78 322e 672e 6472 6561  ymail-mx2.g.drea
   0x0040:  6d68 6f73 742e 636f 6d0d 0a32 3530 2d50  mhost.com..250-P
   0x0050:  4950 454c 494e 494e 470d 0a32 3530 2d53  IPELINING..250-S
   0x0060:  495a 4520 3430 3936 3030 3030 0d0a 3235  IZE.40960000..25
   0x0070:  302d 4554 524e 0d0a 3235 302d 5354 4152  0-ETRN..250-STAR
   0x0080:  5454 4c53 0d0a 3235 3020 3842 4954 4d49  TTLS..250.8BITMI
   0x0090:  4d45 0d0a                                ME..



Micah Stetson wrote:
>> STARTTLS
>> 220 Ready to start TLS
>> EHLO kix.es
>> 250-jankymail-mx2.g.dreamhost.com
>> 250-PIPELINING
>> 250-SIZE 40960000
>> 250-ETRN
>> 250 8BITMIME
>>     
>
> The SMTP server doesn't claim to support AUTH.  You should get a line like this:
>
> 250 AUTH CRAM-MD5 DIGEST-MD5
>
> Or some such.
>
> Micah
>   


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

* Re: [9fans] SMTP problem
  2008-01-23 19:41   ` Rodolfo kix Garci­a
@ 2008-01-23 22:00     ` Rodolfo Garcia (kix)
  0 siblings, 0 replies; 7+ messages in thread
From: Rodolfo Garcia (kix) @ 2008-01-23 22:00 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 130 bytes --]

Ok,

I change the name by the IP of the smtp server in /lib/ndb/local and in the factotum.

Problem solved.

Thanks

kix

[-- Attachment #2: Type: message/rfc822, Size: 6238 bytes --]

From: "Rodolfo kix Garci­a" <kix@kix.es>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] SMTP problem
Date: Wed, 23 Jan 2008 20:41:46 +0100
Message-ID: <4797987A.9000806@kix.es>

Thanks Micah,

I try with tcpdump, and this is the result, some servers 
(jankymail-a*dreamhost.com) are using auth methods, at the other hand, 
other servers (jankymail-m*dreamhost.com) do not use it. When I use 
Linux and Thunderbird, the servers has authentication, but with telnet, 
or upas not. Why? Why? Why?

look this:

Using Linux + Thunderbird

20:08:38.679978 IP 192.168.1.12.41663 > janky.mail.dreamhost.com.smtp: P 
1:22(21) ack 41 win 92 <nop,nop,timestamp 470474 4213406710>
   0x0000:  4500 0049 f62e 4000 4006 2dea c0a8 010c  E..I..@.@.-.....
   0x0010:  d061 8480 a2bf 0019 19c7 db66 e248 27eb  .a.........f.H'.
   0x0020:  8018 005c d05b 0000 0101 080a 0007 2dca  ...\.[........-.
   0x0030:  fb23 7bf6 4548 4c4f 205b 3139 322e 3136  .#{.EHLO.[192.16
   0x0040:  382e 312e 3132 5d0d 0a                   8.1.12]..
20:08:38.926309 IP janky.mail.dreamhost.com.smtp > 192.168.1.12.41663: P 
41:192(151) ack 22 win 4401 <nop,nop,timestamp 4213406957 470474>
   0x0000:  4500 00cb 5016 4000 eb06 2880 d061 8480  E...P.@...(..a..
   0x0010:  c0a8 010c 0019 a2bf e248 27eb 19c7 db7b  .........H'....{
   0x0020:  8018 1131 8c85 0000 0101 080a fb23 7ced  ...1.........#|.
   0x0030:  0007 2dca 3235 302d 6a61 6e6b 796d 6169  ..-.250-jankymai
   0x0040:  6c2d 6132 2e67 2e64 7265 616d 686f 7374  l-a2.g.dreamhost
   0x0050:  2e63 6f6d 0d0a 3235 302d 5049 5045 4c49  .com..250-PIPELI
   0x0060:  4e49 4e47 0d0a 3235 302d 5349 5a45 2034  NING..250-SIZE.4
   0x0070:  3039 3630 3030 300d 0a32 3530 2d45 5452  0960000..250-ETR
   0x0080:  4e0d 0a32 3530 2d53 5441 5254 544c 530d  N..250-STARTTLS.
   0x0090:  0a32 3530 2d41 5554 4820 4c4f 4749 4e20  .250-AUTH.LOGIN.
   0x00a0:  504c 4149 4e0d 0a32 3530 2d41 5554 483d  PLAIN..250-AUTH=
   0x00b0:  4c4f 4749 4e20 504c 4149 4e0d 0a32 3530  LOGIN.PLAIN..250
   0x00c0:  2038 4249 544d 494d 450d 0a              .8BITMIME..

Using Plan9 + upas/smtp:

20:10:38.700084 IP 192.168.1.12.24932 > 
jankymail-mx1.g.dreamhost.com.smtp: P 1:14(13) ack 42 win 65535
   0x0000:  4500 0035 2b64 0000 fe06 7aca c0a8 010c  E..5+d....z.....
   0x0010:  d061 847e 6164 0019 6b46 c59f 9c31 53e3  .a.~ad..kF...1S.
   0x0020:  5018 ffff 4fc5 0000 4548 4c4f 206b 6978  P...O...EHLO.kix
   0x0030:  2e65 730d 0a                             .es..
20:10:38.929136 IP jankymail-mx1.g.dreamhost.com.smtp > 
192.168.1.12.24932: P 42:150(108) ack 14 win 4393
   0x0000:  4500 0094 a577 4000 eb06 d357 d061 847e  E....w@....W.a.~
   0x0010:  c0a8 010c 0019 6164 9c31 53e3 6b46 c5ac  ......ad.1S.kF..
   0x0020:  5018 1129 ae72 0000 3235 302d 6a61 6e6b  P..).r..250-jank
   0x0030:  796d 6169 6c2d 6d78 322e 672e 6472 6561  ymail-mx2.g.drea
   0x0040:  6d68 6f73 742e 636f 6d0d 0a32 3530 2d50  mhost.com..250-P
   0x0050:  4950 454c 494e 494e 470d 0a32 3530 2d53  IPELINING..250-S
   0x0060:  495a 4520 3430 3936 3030 3030 0d0a 3235  IZE.40960000..25
   0x0070:  302d 4554 524e 0d0a 3235 302d 5354 4152  0-ETRN..250-STAR
   0x0080:  5454 4c53 0d0a 3235 3020 3842 4954 4d49  TTLS..250.8BITMI
   0x0090:  4d45 0d0a                                ME..



Micah Stetson wrote:
>> STARTTLS
>> 220 Ready to start TLS
>> EHLO kix.es
>> 250-jankymail-mx2.g.dreamhost.com
>> 250-PIPELINING
>> 250-SIZE 40960000
>> 250-ETRN
>> 250 8BITMIME
>>     
>
> The SMTP server doesn't claim to support AUTH.  You should get a line like this:
>
> 250 AUTH CRAM-MD5 DIGEST-MD5
>
> Or some such.
>
> Micah
>   

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

end of thread, other threads:[~2008-01-23 22:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-23 16:01 [9fans] SMTP problem Rodolfo kix Garci­a
2008-01-23 16:17 ` Gary Wright
2008-01-23 16:31   ` Rodolfo kix Garci­a
2008-01-23 16:37 ` Gabriel Diaz Lopez de la Llave
2008-01-23 17:54 ` Micah Stetson
2008-01-23 19:41   ` Rodolfo kix Garci­a
2008-01-23 22:00     ` Rodolfo Garcia (kix)

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