Mohammad Kermani created JAMES-1527:
---------------------------------------

             Summary: HELO name problem on windows
                 Key: JAMES-1527
                 URL: https://issues.apache.org/jira/browse/JAMES-1527
             Project: James Server
          Issue Type: Bug
          Components: Mailet Contributions, SMTPServer
    Affects Versions: 3.0-beta4, 3.0.0-beta5
         Environment: Any Windows server
            Reporter: Mohammad Kermani
            Priority: Critical


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; [email protected]
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    |



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to