well, this looks like it is hard-coded in AbstractConfigurableAsyncServer.java
in the trunk code,
/**
* Configure the helloName for the given Configuration
*
* @param handlerConfiguration
* @throws ConfigurationException
*/
protected void configureHelloName(Configuration handlerConfiguration)
throws ConfigurationException {
StringBuilder infoBuffer;
String hostName;
try {
hostName = InetAddress.getLocalHost().getHostName();
} catch (UnknownHostException ue) {
hostName = "localhost";
}
infoBuffer = new StringBuilder(64).append(getServiceType()).append(" is
running on: ").append(hostName);
getLogger().info(infoBuffer.toString());
boolean autodetect = handlerConfiguration.getBoolean(HELLO_NAME +
".[@autodetect]", true);
if (autodetect) {
helloName = hostName;
} else {
helloName = handlerConfiguration.getString(HELLO_NAME);
if (helloName == null || helloName.trim().length() < 1) {
throw new ConfigurationException("Please configure the
helloName or use autodetect");
}
}
infoBuffer = new StringBuilder(64).append(getServiceType()).append("
handler hello name is: ").append(helloName);
getLogger().info(infoBuffer.toString());
}
I am looking at a fix for this, but I am not an expert in this codebase either.
On Oct 27, 2014, at 9:07 AM, Robert Munn <[email protected]> wrote:
> hmm, wait, that isn’t working . another check ...
>
> On Oct 27, 2014, at 1:51 AM, Robert Munn <[email protected]> wrote:
>
>> Your rDNS: mail.jwmhosting.com looks correct to me.
>>
>> I just did a telnet check of your smtp server:
>>
>> $ telnet
>> telnet > open mail.jwmhosting.com 25
>> telnet > helo foo.com
>>
>> reply shows:
>> 250 jwmhosting.com Hello foo.com [xx.xx.xx.xx]) <- my ip address
>>
>>
>> What is important here is the helo name : jwmhosting.com. It should say
>> mail.jwmhosting.com. This is a spammer flag and can get your mail rejected
>> depending on the host. That is what the mail-tester service is complaining
>> about.
>>
>> You set this in smptserver.xml (smtpserver.conf in beta4?)
>>
>> Look for the block below, change it :
>>
>> <helloName autodetect=“false”>mail.jwmhosting.com</helloName>
>>
>>
>> <!-- This is the name used by the server to identify itself in the SMTP
>> -->
>> <!-- protocol. If autodetect is TRUE, the server will discover its
>> -->
>> <!-- own host name and use that in the protocol. If discovery
>> fails, -->
>> <!-- the value of 'localhost' is used. If autodetect is FALSE,
>> James -->
>> <!-- will use the specified value. -->
>> <!--
>> <helloName autodetect="true">myMailServer</helloName>
>> -->
>>
>> FYI, beta4 has a deadlocking problem, you might want to upgrade to beta 5. I
>> have instructions on how to build it from source on YouTube:
>>
>> https://www.youtube.com/channel/UChNyi0dlyanLLhp7cA9q5dA
>>
>> or if you prefer a text tutorial, on my blog:
>>
>> http://blog.bonnydoonmedia.com/post.cfm/building-apache-james-from-source
>>
>>
>>
>> On Oct 26, 2014, at 10:44 PM, Jerry Malcolm <[email protected]> wrote:
>>
>>> I have been running James 3 b4 for several months. I was having some
>>> outbound mail rejected by gmail and started doing some research. I did an
>>> email test using mail-tester.com and got the error message that my HELO did
>>> not match the rDNS. It reports:
>>>
>>> IP: 64.34.163.186
>>> HELO: p2825577
>>> rDNS: mail.jwmhosting.com
>>>
>>> The p2825577 number is my Windows Server 2008 machine name. I don't want
>>> to use that.
>>>
>>> In the RemoteDelivery mailet config, I have the following:
>>>
>>> <mail.smtp.localhost>mail.jwmhosting.com</mail.smtp.localhost>
>>>
>>> If I'm reading the instructions correctly, this should cause the specified
>>> value (mail.jwmhosting.com) to be sent on the HELO instead of the p282...
>>> number, correct? But it isn't.
>>>
>>> What am I doing wrong?
>>>
>>> BTW... I tried changing my rDNS to the p282... number. rDNS's have to be
>>> a fully qualified domain name. So it won't take it. Fine... I then tried
>>> changing my Win Server 08 machine name to be mail.jwmhosting.com. No go on
>>> that either. Can't have periods in Win machines names.... So I'm stuck.
>>> Please advise....
>>>
>>> This is kinda urgent since I now realize that there's a distinct
>>> possibility that some of my clients' emails are not getting through due to
>>> this. So thanks in advance for a quick reply to this.
>>>
>>> Jerry
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>
>