Telnet to port 25 testing through GWIA fails

While troubleshooting an email issue I used the old telnet to port 25, and was sending to several unrelated gmail addresses and it failed. I then tested the same at another GW 2012 SP2 site and it failed.
I have tried using Putty and telnet. Telnet was even tried from Windows and Linux. Normal GW client email sends OK, as does some backup software that uses GWIA as the SMTP relay, just not from telnet. Does anyone have any ideas why this is the case?

TELNET TRANSCRIPT:

[INDENT]220 mail.ef.com.au Ready
helo
250 mail.ef.com.au Ok
mail from:test@ef.com.au
250 Ok
rcpt to:me@gmail.com
250 Ok
data
354 Enter mail, end with "." on a line by itself

hi there at 1741
.
250 Ok
. <--------- Here is where I expect to see a "Transferred message"
500 Syntax error
.
500 Syntax error
.
500 Syntax error
.
500 Syntax error
.
500 Syntax error[/INDENT]


GWIA LOG showing the error

17:40:19 F3C8 DMN: MSG 113639 Accepted connection: [192.168.0.11] (ef5.ef.corp)
17:40:40 F3C8 DMN: MSG 113639 Receiving file: /gwsystem/efgwia2/wpgate/GWIA2/receive/811f5325.032
17:41:17 F3C0 MSG 113639 Processing inbound message: /gwsystem/efgwia2/wpgate/GWIA2/receive/811f5325.032
17:41:17 F3C0 MSG 113639 Sender: test@ef.com.au
17:41:17 F3C0 MSG 113639 Recipient: me@gmail.com
17:41:17 F3C0 DoCharSetDetection: Character Set: ISO-8859-1, Confidence = 98
17:41:17 F3C0 MSG 113639 Converting message to SMTP: /gwsystem/efgwia2/wpgate/GWIA2/send/x235f13d.008
17:41:17 F3C0 MSG 113639 Queuing message to daemon: /gwsystem/efgwia2/wpgate/GWIA2/send/s235f13d.008
17:41:17 F3C0 Recipient: me@gmail.com
17:41:17 F3D0 DMN: MSG 113639 Sending file: /gwsystem/efgwia2/wpgate/GWIA2/send/p235f13d.008
17:41:17 F3D0 NgwResQuery(gmail.com, 1, 15)
17:41:17 F3D0 Querying server (# 1) address = 192.168.0.2
17:41:17 F3D0 HEADER:
17:41:17 F3D0 opcode = QUERY, id = 54, rcode = NOERROR, flags: qr rd ra
17:41:17 F3D0 query = 1, answer = 5, authority = 0, additional = 1
17:41:17 F3D0
17:41:17 F3D0 QUESTIONS:
17:41:17 F3D0 gmail.com, type = MX, class = IN
17:41:17 F3D0
17:41:17 F3D0 ANSWERS:
17:41:17 F3D0 gmail.com
17:41:17 F3D0 type = MX, class = IN, ttl = 1 hour 9 mins 50 secs, dlen = 25
17:41:17 F3D0 preference = 10, name = aspmx2.googlemail.com
17:41:17 F3D0 gmail.com
17:41:17 F3D0 type = MX, class = IN, ttl = 1 hour 9 mins 50 secs, dlen = 11
17:41:17 F3D0 preference = 10, name = aspmx3.googlemail.com
17:41:17 F3D0 gmail.com
17:41:17 F3D0 type = MX, class = IN, ttl = 1 hour 9 mins 50 secs, dlen = 19
17:41:17 F3D0 preference = 1, name = aspmx.l.google.com
17:41:17 F3D0 gmail.com
17:41:17 F3D0 type = MX, class = IN, ttl = 1 hour 9 mins 50 secs, dlen = 9
17:41:17 F3D0 preference = 5, name = alt1.aspmx.l.google.com
17:41:17 F3D0 gmail.com
17:41:17 F3D0 type = MX, class = IN, ttl = 1 hour 9 mins 50 secs, dlen = 9
17:41:17 F3D0 preference = 5, name = alt2.aspmx.l.google.com
17:41:17 F3D0
17:41:17 F3D0 ADDITIONAL RECORDS:
17:41:17 F3D0 aspmx.l.google.com
17:41:17 F3D0 type = A, class = IN, ttl = 3 mins 3 secs, dlen = 4
17:41:17 F3D0 internet address = 173.194.79.26
17:41:17 F3D0
17:41:17 F3D0 DMN: MSG 113639 Attempting to connect to aspmx.l.google.com
17:41:18 F3D0 DMN: MSG 113639 Connected to [173.194.79.26] (aspmx.l.google.com)
17:41:19 F3D0 DMN: MSG 113639 Send Failure: 550 5.7.1 RFC 2822 specifications for more information. e5si5113815pba.357 - gsmtp
17:41:19 F3D0 DMN: MSG 113639 SMTP session ended: [173.194.79.26] (aspmx.l.google.com)
17:41:27 F476 MSG 113639 Analyzing result file: /gwsystem/efgwia2/wpgate/GWIA2/result/r235f13d.008
17:41:27 F476 MSG 113639 Command: gmail.com
17:41:27 F476 MSG 113639 Response: 220 mx.google.com ESMTP e5si5113815pba.357 - gsmtp
17:41:27 F476 MSG 113639 Command: EHLO mail.ef.com.au
17:41:27 F476 MSG 113639 Response: 250 ok
17:41:27 F476 MSG 113639 Command: MAIL FROM:<test@ef.com.au>
17:41:27 F476 MSG 113639 Response: 250 2.1.0 OK e5si5113815pba.357 - gsmtp
17:41:27 F476 MSG 113639 Command: RCPT TO:<me@gmail.com>
17:41:27 F476 MSG 113639 Response: 250 2.1.5 OK e5si5113815pba.357 - gsmtp
17:41:27 F476 MSG 113639 Command: DATA
17:41:27 F476 MSG 113639 Response: 354 Go ahead e5si5113815pba.357 - gsmtp
17:41:27 F476 MSG 113639 Detected error on SMTP command
17:41:27 F476 MSG 113639 Command: Data...
17:41:27 F476 MSG 113639 Response: 550 5.7.1 RFC 2822 specifications for more information. e5si5113815pba.357 - gsmtp

17:41:27 F476 Building undeliverable message

Can any one else confirm if they can telnet successfully through their GW 2012 SP2 GWIA to a GMAIL address

Thanks
Gordon

Tags:

Parents
  • gordon_mzano;2282343 wrote:


    TELNET TRANSCRIPT:

    [INDENT]220 mail.ef.com.au Ready
    helo
    250 mail.ef.com.au Ok
    mail from:test@ef.com.au
    250 Ok
    rcpt to:me@gmail.com
    250 Ok
    data
    354 Enter mail, end with "." on a line by itself

    hi there at 1741
    .
    250 Ok
    . <--------- Here is where I expect to see a "Transferred message"
    500 Syntax error
    .
    500 Syntax error
    .
    500 Syntax error
    .
    500 Syntax error
    .
    500 Syntax error[/INDENT]


    Interestingly the same telnet commands that fail if sent through Groupwise, work if I issue them against the ISP's SMTP relay, gmail then receives them fine.
Reply
  • gordon_mzano;2282343 wrote:


    TELNET TRANSCRIPT:

    [INDENT]220 mail.ef.com.au Ready
    helo
    250 mail.ef.com.au Ok
    mail from:test@ef.com.au
    250 Ok
    rcpt to:me@gmail.com
    250 Ok
    data
    354 Enter mail, end with "." on a line by itself

    hi there at 1741
    .
    250 Ok
    . <--------- Here is where I expect to see a "Transferred message"
    500 Syntax error
    .
    500 Syntax error
    .
    500 Syntax error
    .
    500 Syntax error
    .
    500 Syntax error[/INDENT]


    Interestingly the same telnet commands that fail if sent through Groupwise, work if I issue them against the ISP's SMTP relay, gmail then receives them fine.
Children
  • I'm curious to see the telnet transcript as well as the message source as seen in gmail.

    -- Bob
  • Bob,

    I'll try to answer why I think Google accepted my original telnet emails (without the extra from:) via the ISP SMTP server, but not via GWIA.

    TEST TELNET TRANSCRIPT:
    telnet mail.isp.net.au 25
    Trying 202.65.65.34...
    Connected to mail.isp.net.au.
    Escape character is '^]'.
    220 mail.isp.net.au ESMTP mail.isp.net.au (Debian/GNU)
    helo
    501 Syntax: HELO hostname
    mail from:itsupport@ef.com.au
    250 2.1.0 Ok
    rcpt to:me@gmail.com
    250 2.1.5 Ok
    data
    354 End data with <CR><LF>.<CR><LF>
    subject: Test via ISP SMTP server
    This was using my original method with just data and subject.
    .
    250 2.0.0 Ok: queued as 0DB9610B0010 <---- Accepted by Google !!




    I think that the answer is in this extract of the email message source:
    Received: from mail.ef.com.au (mail.ef.com.au
    [123.123.123.123]) by mail.isp.net.au (Postfix) with SMTP id 0DB9610B0010
    for <me@gmail.com>; Thu, 19 Sep 2013 16:30:45 0800 (WST)
    subject: Test via ISP SMTP server
    Message-Id: <20130919083055.0DB9610B0010@mail.isp.net.au>
    Date: Thu, 19 Sep 2013 16:30:45 0800 (WST)
    From: itsupport@ef.com.au
    To: undisclosed-recipients:;


    This was using my original method with just data and subject.



    The ISP SMTP server is Postfix and it must have adjusted the received telnet email and added the additional fields that I have bolded above, which made it fully compliant, before handing off to Gmail.
    So after many years of using telnet to test email, I'll have to update my method to include, as you suggested, and Stela at Novell TS confirmed, at least the "from:" field.

    Cheers and beers

    -- Gordon
  • Hi Gordon,

    Thanks for posting back your solution - we can all learn from it :)

    Cheers,