Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1527

HELO name problem on windows

    XMLWordPrintableJSON

Details

    Description

      On Windows server host name cannot contain . - ' " / \ and etc. So in our case we could not set hostname to payamnet.com computer name is just payamnet.
      In this case some mail servers require FQDN for HELO, but even by setting following attributes :
      <heloName>payamnet.com</heloName>
      <mail.smtp.localhost>payamnet.com</mail.smtp.localhost>
      on RemoteDelivery mailet it still does not deliver mails,because james's still using computer name instead of setting localhost, I checked source code, source sets both attributes. but compiled snapshot does not work.
      here's the mail status:
      Reporting-MTA: dns; 130.185.73.21
      Received-From-MTA: dns; payamnet.com

      Final-Recipient: rfc822; [somebody]@cc.iut.ac.ir
      Action: failed
      Status: 5.5.2 <payamnet>: Helo command rejected: need fully-qualified hostname
      Diagnostic-Code: X-James; 5.5.2 <payamnet>: Helo command rejected: need fully-qualified hostname
      Last-Attempt-Date: Mon, 4 Nov 2013 08:29:09 -0800 (PST)

      LOG:
      jvm 1 | INFO 08:59:27,290 | james.mailetcontext | Permanent exception delive
      ring mail (Mail1383584366400-76aa12c1-84c9-4131-b920-e030cadfe9d5-to-cc.iut.ac.i
      r. RemoteHost said: Invalid Address (org.apache.geronimo.javamail.transport.smtp
      .SMTPAddressFailedException: 5.5.2 <payamnet>: Helo command rejected: need fully
      -qualified hostname): org.apache.geronimo.javamail.transport.smtp.SMTPSendFailed
      Exception: Invalid Address (org.apache.geronimo.javamail.transport.smtp.SMTPAddr
      essFailedException: 5.5.2 <payamnet>: Helo command rejected: need fully-qualifie
      d hostname)
      jvm 1 | at org.apache.geronimo.javamail.transport.smtp.SMTPTransport.sen
      dMessage(SMTPTransport.java:343)
      jvm 1 | at org.apache.james.transport.mailets.RemoteDelivery.deliver(Rem
      oteDelivery.java:1033)
      jvm 1 | at org.apache.james.transport.mailets.RemoteDelivery.run(RemoteD
      elivery.java:791)
      jvm 1 | at java.lang.Thread.run(Thread.java:724)
      jvm 1 | Caused by: org.apache.geronimo.javamail.transport.smtp.SMTPAddressFai
      ledException: 5.5.2 <payamnet>: Helo command rejected: need fully-qualified host
      name
      jvm 1 | at org.apache.geronimo.javamail.transport.smtp.SMTPConnection$Se
      ndStatus.getException(SMTPConnection.java:1288)
      jvm 1 | at org.apache.geronimo.javamail.transport.smtp.SMTPTransport.gen
      erateExceptionChain(SMTPTransport.java:525)
      jvm 1 | at org.apache.geronimo.javamail.transport.smtp.SMTPTransport.sen
      dMessage(SMTPTransport.java:340)
      jvm 1 | ... 3 more
      jvm 1 |

      Attachments

        Activity

          People

            Unassigned Unassigned
            mohkermani Mohammad Kermani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified