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

Hide
Michiel Meeuwissen added a comment - 1970-01-01 00:59
Does JMSendMail have the same problem?
Show
Michiel Meeuwissen added a comment - 1970-01-01 00:59 Does JMSendMail have the same problem?
Hide
Gerard van Enk added a comment - 2003-08-01 23:30
Sendsendmail module sometimes doesn't give fully qualified host in helo
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?
Show
Gerard van Enk added a comment - 2003-08-01 23:30 Sendsendmail module sometimes doesn't give fully qualified host in helo 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?
Hide
Gerard van Enk added a comment - 2003-08-01 23:31
SendMail module sometimes doesn't give fully qualified host in helo
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?
Show
Gerard van Enk added a comment - 2003-08-01 23:31 SendMail module sometimes doesn't give fully qualified host in helo 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?

People

Dates

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