Article delegate-en/4395 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A4394@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: dg 9.9.1 as SMTP gateway
10 Mar 2009 11:08:38 GMT "Bladt, Norbert" <peiiqbdyi-6cfuxbqugb3r.ml@ml.delegate.org>


Hi

I am exactly using your example, but it does not work.
I renamed the delegate directory, there are those warning messages: SMTPGATE not defined, etc.

But the connection is attempted to a@b or x@y, regardless what I try.
OK, the name I use was longer, so I even reduced the length of the name, but still the same
problem.

delegated -P9999 -fv SERVER=smtp MOUNT="SMS@tss.ch smtp://fakeuser@fakedomain.com"

Telnet session:
---------------

telnet localhost 9999
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
220 localhost SMTP/DeleGate/9.9.1 ready at Tue, 10 Mar 2009 11:58:51 +0100
helo localhost
250 localhost Hello localhost (localhost)
mail from:sender@t-systems..ch
250 sender@.. Sender ok
rcpt to:SMS@tss..ch
250 to:SMS@.. Recipient ok
data
354 Enter mail, end with "." on a line by itself
Subject: SysMgtTest

Test nummer 1005
.
421 cannot open SMTP for forwarding.
Connection closed by foreign host. 

Server output (trying it with SMS@tss yields a similar result)
--------------------------------------------------------------

03/10 11:58:44.62 [9120] 0+0: MOUNT[4]X[2] SMS@tss..ch smtp://fakeuser@fakedomain.com

03/10 11:58:55.79 [9122] 1+0: 250 localhost Hello localhost (localhost)^M
03/10 11:58:58.02 [9122] 1+0: >>> mail from:sender@t-systems..ch^M
03/10 11:58:58.02 [9122] 1+0: SMTP [mail][from:sender@t-systems..ch]^M
03/10 11:58:58.02 [9122] 1+0: Sender: <sender@t-systems..ch> from:sender@t-systems.ch
03/10 11:58:58.02 [9122] 1+0: 250 sender@.. Sender ok^M
03/10 11:59:00.06 [9122] 1+0: >>> rcpt to:SMS@tss..ch^M
03/10 11:59:00.06 [9122] 1+0: SMTP [rcpt][to:SMS@tss..ch]^M
03/10 11:59:00.06 [9122] 1+0: SMS@tss..ch => //tss.ch/sms
03/10 11:59:00.06 [9122] 1+0: Recipient: <SMS@tss..ch> to:SMS@..ch
03/10 11:59:00.06 [9122] 1+0: 250 to:SMS@.. Recipient ok^M
03/10 11:59:01.44 [9122] 1+0: >>> data^M
03/10 11:59:01.44 [9122] 1+0: SMTP [data][]^M
03/10 11:59:01.44 [9122] 1+0: 354 Enter mail, end with "." on a line by itself^M
03/10 11:59:03.87 [9122] 1+0: >>> .^M
03/10 11:59:03.87 [9122] 1+0: GWNAME = SMS
03/10 11:59:03.87 [9122] 1+0: Content-MD5 = a9660dce3e270739177e1a3bee804ab9
03/10 11:59:03.87 [9122] 1+0: No SMTPGATE directory specified.
03/10 11:59:03.87 [9122] 1+0: GWNAME = @default (default gateway)
03/10 11:59:03.87 [9122] 1+0: No SMTPGATE directory specified.
03/10 11:59:03.87 [9122] 1+0: conf + CONTROL/INHERIT:sendmail^M
03/10 11:59:03.87 [9122] 1+0: conf + CONTROL/RECIPIENT:${recipient}^M
03/10 11:59:03.87 [9122] 1+0: conf + CONTROL/SERVER-HOST:${recipient.mx}^M
03/10 11:59:03.87 [9122] 1+0: GWNAME = sendmail (built-in)
03/10 11:59:03.87 [9122] 1+0: substitute -- ${recipient} => SMS@tss..ch
03/10 11:59:13.87 [9122] 1+0: ## connect[24] TIMEOUT(10000)
03/10 11:59:13.87 [9122] 1+0: *** CON_TIMEOUT: 10.00/10s -> 12.42.108.61:25
03/10 11:59:13.87 [9122] 1+0: [24] ConnectToServer connect failed 12.42.108..61:25 [10.00s] errno=107
(UNIX) 11:59:13.870 [9122] -- SLOW-CONN[-1]  10.00s 0/0/1 + 12.42.108.61:25
03/10 11:59:13.87 [9122] 1+0: ERROR: cannot connect to smtp://-MX.tss.ch:25 - -1
03/10 11:59:13 [9122]-P9999 E-C: Can't connect: localhost:49147 => smtp://-MX.tss.ch (timeout)
03/10 11:59:13.87 [9122] 1+0: E-C: Can't connect: localhost:49147 => smtp://-MX.tss.ch (timeout)
03/10 11:59:13.87 [9122] 1+0: willSTLS_SV: ServerFlags=0
03/10 11:59:23.87 [9122] 1+0: ## connect[24] TIMEOUT(10000)
03/10 11:59:23.87 [9122] 1+0: *** CON_TIMEOUT: 10.00/10s -> 12.42.108.61:25
03/10 11:59:23.87 [9122] 1+0: [24] ConnectToServer connect failed 12.42.108..61:25 [10.00s] errno=107
(UNIX) 11:59:23.869 [9122] -- SLOW-CONN[-1]  10.00s 0/0/1 + 12.42.108.61:25
03/10 11:59:23.87 [9122] 1+0: ERROR: cannot connect to smtp://tss.ch:25 - -1
03/10 11:59:23 [9122]-P9999 E-C: Can't connect: localhost:49147 => smtp://tss.ch (timeout)
03/10 11:59:23.87 [9122] 1+0: E-C: Can't connect: localhost:49147 => smtp://tss.ch (timeout)
03/10 11:59:23.87 [9122] 1+0: willSTLS_SV: ServerFlags=0
03/10 11:59:23.87 [9122] 1+0: 421 cannot open SMTP for forwarding.^M
03/10 11:59:23.87 [9122] 1+0: END(-1) SMS@tss..ch <- sender@t-systems..ch

> -----Original Message-----
> From: Yutaka Sato [mailto:feedback@delegate.org] 
> Sent: Tuesday, March 10, 2009 11:17 AM
> To: feedback@delegate.org
> Cc: Bladt, Norbert
> Subject: Re: [DeleGate-En] dg 9.9.1 as SMTP gateway
> 
> Hi,
> 
> In message 
> <785B8446609F95478C181D8A974632707F06F43C95@TSS-EXCH01.t-syste
> ms.ch> on 03/10/09(18:46:22)
> you "Bladt, Norbert" <peiiqbdyi-6cfuxbqugb3r.ml@ml.delegate.org> wrote:
>  |The "MOUNT=fakeuser@fakedomain.com 
> smtp://realuser@existingdomain.com" 
>  |does not work.
>  |If I send mail to fakeuser@fakedomain.. delegate tries to 
> open a connection to fakedomain.com !?!?
>  |That does not work, of course.
> 
> !?!?
> (possibly you are using some configuration in your SMTPGATE 
> which should
>  be removed for the test)
> 
> Of cource DeleGate tries to connect to the (MX of) 
> "existingdomain.com".
> You can test it as follows for example:
> 
> (server)
>     % delegated -P9999 -fv SERVER=smtp MOUNT="x@y 
> smtp://test@delegate.org"
> 
> (client)
> >   % telnet localhost 9999
>     Trying ::1...
>     telnet: connect to address ::1: Connection refused
>     Trying 127.0.0.1...
>     Connected to localhost.
>     Escape character is '^]'.
>     220 localhost SMTP/DeleGate/9.9.2 ready at Tue, 10 Mar 
> 2009 19:00:56 +0900
> >   HELO a
>     250 localhost Hello a (localhost)
> >   MAIL from:a@b
>     250 a@.. Sender ok
> >>> RCPT to:x@y
>     250 to:x@.. Recipient ok
> >   DATA 
>     354 Enter mail, end with "." on a line by itself
> >   Subject: test
> >   
> >   test
> >   .
> 
> (server)
>   ...
>     03/10 19:00:50.16 [899] 0+0: MOUNT[4]X[2] x@y 
> smtp://test@delegate.org 
>   ...
>     03/10 19:00:56.36 [922] 1+0: (0) accepted [24] 
> -@[127.0.0.1]localhost:61558 (0.012s)(1)
>     03/10 19:00:56.36 [922] 1+0: PATH: 
> smtp://-:25!localhost:9999!localhost:61558!anonymous@localhost
> ;1236679256
>     03/10 19:00:56.37 [922] 1+0: Free proxy -- smtp://-/
>     03/10 19:00:56.38 [922] 1+0: new SmtpEnv[0] = 2013C00
>     03/10 19:00:56.38 [922] 1+0: 220 localhost 
> SMTP/DeleGate/9.9.2 ready at Tue, 10 Mar 2009 19:00:56 +0900^M
> >   03/10 19:01:01.56 [922] 1+0: >>> HELO a^M
>     03/10 19:01:01.56 [922] 1+0: SMTP [HELO][a]^M
>     03/10 19:01:01.56 [922] 1+0: CALLBACK[127.0.0.1] 1 
> 05.2/05.2 HELO: 1 <a> localhost 
>     03/10 19:01:01.56 [922] 1+0: 250 localhost Hello a (localhost)^M
> >   03/10 19:01:11.06 [922] 1+0: >>> MAIL from:a@b^M
>     03/10 19:01:11.06 [922] 1+0: SMTP [MAIL][from:a@b]^M
>     03/10 19:01:11.06 [922] 1+0: Sender: <a@b..> from:a@b..
>     03/10 19:01:11.06 [922] 1+0: 250 a@.. Sender ok^M
> >>> 03/10 19:01:15.68 [922] 1+0: >>> RCPT to:x@y^M
>     03/10 19:01:15.69 [922] 1+0: SMTP [RCPT][to:x@y]^M
>     03/10 19:01:15.69 [922] 1+0: *** x@y => 
> smtp://test@delegate.org/ ***
>     03/10 19:01:15.69 [922] 1+0: x@y => smtp://test@delegate.org/
>     03/10 19:01:15.69 [922] 1+0: >>>> RCPT to:<test@delegate.org>^M
>     03/10 19:01:15.69 [922] 1+0: Recipient: <test@delegate.org> to:x@y
>     03/10 19:01:15.69 [922] 1+0: 250 to:x@.. Recipient ok^M
> >   03/10 19:01:20.14 [922] 1+0: >>> DATA^M
>     03/10 19:01:20.14 [922] 1+0: SMTP [DATA][]^M
>     03/10 19:01:20.14 [922] 1+0: 354 Enter mail, end with "." 
> on a line by itself^M
> >   03/10 19:01:28.70 [922] 1+0: >>> .^M
>     03/10 19:01:28.70 [922] 1+0: GWNAME = test 
>     03/10 19:01:28.70 [922] 1+0: Content-MD5 = 
> a00181fff04b6894c3e362ad7a772834
>     03/10 19:01:28.70 [922] 1+0: No SMTPGATE directory specified.
>     03/10 19:01:28.70 [922] 1+0: GWNAME = @default (default gateway)
>     03/10 19:01:28.70 [922] 1+0: No SMTPGATE directory specified.
>     03/10 19:01:28.70 [922] 1+0: conf + CONTROL/INHERIT:sendmail^M
>     03/10 19:01:28.70 [922] 1+0: conf + 
> CONTROL/RECIPIENT:${recipient}^M
>     03/10 19:01:28.70 [922] 1+0: conf + 
> CONTROL/SERVER-HOST:${recipient.mx}^M
>     03/10 19:01:28.71 [922] 1+0: GWNAME = sendmail (built-in)
>     03/10 19:01:28.71 [922] 1+0: substitute -- ${recipient} 
> => test@delegate.org
>     03/10 19:01:28.73 [922] 1+0: ConnectToServer connected 
> [25] {210.155.199.28:25 <- 192.168.1.xx:61563} [0.001s]
> ### 210.155.199.28 is the MX of delegate.org ###
>     03/10 19:01:28.73 [922] 1+0: willSTLS_SV: ServerFlags=0
>     03/10 19:01:28.99 [922] 1+0: SMTP > 220 me 
> SMTP/DeleGate/9.9.2-pre6 ready at Tue, 10 Mar 2009 19:01:28 +0900^M
>     03/10 19:01:29.04 [922] 1+0: <<< EHLO ysimac2.localdomain^M
>     03/10 19:02:29.62 [922] 1+0: SMTP > 250-me Hello 
> ysimac2.localdomain (amakubo.com)^M
>     03/10 19:02:29.62 [922] 1+0: SMTP > 250 XECHO^M
>     03/10 19:02:29.62 [922] 1+0: 250 XECHO^M
>     03/10 19:02:29.62 [922] 1+0: willSTLS_SV: ServerFlags=800
>     03/10 19:02:29.62 [922] 1+0: SMTP : From: <a@b..> -- a@b..^M
>     03/10 19:02:29.62 [922] 1+0: <<< MAIL From: <a@b..>^M
>     03/10 19:02:59.62 [922] 1+0: SMTP > 250 a@.. Sender ok^M
>     03/10 19:02:59.62 [922] 1+0: 250 a@.. Sender ok^M
>     03/10 19:02:59.62 [922] 1+0: SMTP : <test@delegate.org>: 
> To -- test@delegate.org^M
>     03/10 19:02:59.62 [922] 1+0: <<< RCPT To: <test@delegate.org>^M
>     03/10 19:03:29.62 [922] 1+0: SMTP > 250 To: 
> <test@delegate.org>... Recipient ok^M
>     03/10 19:03:29.62 [922] 1+0: 250 To: 
> <test@delegate.org>... Recipient ok^M
>     03/10 19:03:29.62 [922] 1+0: <<< DATA^M
>     03/10 19:03:29.63 [922] 1+0: SMTP > 354 Enter mail, end 
> with "." on a line by itself^M
>     03/10 19:03:29.63 [922] 1+0: 354 Enter mail, end with "." 
> on a line by itself^M
>     03/10 19:03:29.63 [922] 1+0: Received: from localhost by 
> localhost (DeleGate/9.9.2-pre6) for test@delegate.org 
> (test@delegate.org); Tue, 10 Mar 2009 19:03:29 +0900^M
>     03/10 19:03:29.63 [922] 1+0: .^M
> 
> Cheers,
> Yutaka
> --
>   9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
>  ( ~ )  National Institute of Advanced Industrial Science and 
> Technology
> _<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
> Do the more with the less -- B. Fuller
> 

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V