Hide
original bugid: #6146
The SendMail module uses the java.net.InetAddress.getHostName method to get the hostname which it uses in the HELO. This method returns the fully qualified host name for the InetAddress object. The format of the String returned by getHostName is, however, platform-dependent. On some platforms it'll contain a fully qualified domain name, yet in others it'll contain only the host part of that name.
Some mailserver require the fqdn to accept a message, because of this sending sometimes fails.
What would be the best option to solve this? Use the ip adress instead of the hostname?
The current email application (from 1.7 onwards) uses 'Transport.send(msg);', which comes from the javamail API.
This API is supposed to send out good FQDN's, and if it doesn't, then it's a bug in javamail and not in MMBase.
Show
original bugid: #6146
The SendMail module uses the java.net.InetAddress.getHostName method to get the hostname which it uses in the HELO. This method returns the fully qualified host name for the InetAddress object. The format of the String returned by getHostName is, however, platform-dependent. On some platforms it'll contain a fully qualified domain name, yet in others it'll contain only the host part of that name.
Some mailserver require the fqdn to accept a message, because of this sending sometimes fails.
What would be the best option to solve this? Use the ip adress instead of the hostname?
The current email application (from 1.7 onwards) uses 'Transport.send(msg);', which comes from the javamail API.
This API is supposed to send out good FQDN's, and if it doesn't, then it's a bug in javamail and not in MMBase.