MMBase

SendMail module sometimes doesn't give fully qualified host in helo

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6.3
  • Fix Version/s: 1.8.0
  • Component/s: Email
  • Description:
    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.

Activity

People

Dates

  • Created:
    2006-03-24 18:38
    Updated:
    2006-12-27 17:55
    Resolved:
    2006-11-24 12:53