Article delegate-en/4394 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:<_A4393@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: dg 9.9.1 as SMTP gateway
10 Mar 2009 10:17:10 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


Hi,

In message <_A4393@delegate-en.ML_> on 03/10/09(18:46:22)
you "Bladt, Norbert" <peiiqbdyi-6cfuxbso2b3r.ml@ml.delegate.org> wrote:
 |The "MOUNT=fakeuser@fakedomain.. 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