phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [phpGroupWare-developers] Error sending mail in 0.9.13.015


From: Tony (Angles) Puglisi
Subject: Re: [phpGroupWare-developers] Error sending mail in 0.9.13.015
Date: Fri, 07 Dec 2001 21:39:29 +0000

Here's the error:

    err_code: '501';
    err_msg: '5.0.0 EHLO requires domain address ';

Here is the code snipped (from email/send_message.php) that makes part of you 
EHLO
string:

  // -----  MYMACHINE - The MTA HELO/ELHO DOMAIN ARG  -----
  // rfc2821 sect 4.1.1.1 - almost always the Fully Qualified
  //   Domain Name of the SMTP client machine
  // rarely, when the machine has dynamic FQD or no reverse mapping
  //   is available, *should* be "address leteral" (see sect 4.1.3)

  $mail_out['mta_elho_mymachine'] =
    trim($GLOBALS['phpgw_info']['server']['hostname']);

My notes seem to indicate the Domain Address should be the Fully Qualified 
Domain
Name ("FQDN" - ex. "mail.example.com") of your phpgw server, which in this case 
is a
"client" to that SMTP server.

However, my experiance with various SMTP servers is that some are configured 
only to
"do business with" a client whose FQDN can be reverse lookup'd to the FQDN's IP
address. These days, many FQDN's are not reverse lookup-able because your 
subnet may
ne behind your ISP, such as with hosting a server using DSL, this issue is 
covered
in the BIND documentation.

Also, many of these SMTP servers can be configured to "do business with" clients
whose FQDN is not reverse lookup-able, and/or also have the SMTP server just 
accept
 the Domain Name supplied in the clients EHLO string as "legit" and continue on.

If I remember correctly, sendmail has 2 options related to this, (paraphrasing)
(a) "don't do reverse lookups" and
(b) "accept connection from broken serverd (EHLO=)"

I also recall exim having some similar option.

So, you should:

1) have your $GLOBALS['phpgw_info']['server']['hostname'] be some form of 
acceptable
FQDN, and/or

2) see if your SMTP server is configured to not do reverse lookups and/or just
accept whats in the EHLO request from the "client" SMTP server, which is your 
phpgw
installation in this case.

3) my note also indicates that in some cases it is OK to give an "address 
leteral"
in place of your FQDN. Perhaps this may work? I'm not sure exactly where this
$GLOBALS['phpgw_info']['server']['hostname']
is filled, but that would what goes in your EHLO string.

Good luck...

Roy Sigurd Karlsbakk (address@hidden) wrote*:
>
>yep.
>
<snip>
>
>On Sat, 1 Dec 2001, Tony [iso-8859-1] (Angles) Puglisi wrote:
>
>> Is this still a problem?
>>
>> Roy Sigurd Karlsbakk (address@hidden) wrote*:
>> >
>> >Hi
>> >
>> >Is this problem being worked on? I just did a 'cvs update', but still I
>> >can't send mail
>> >
>> >roy
>> >
>> >On Sun, 28 Oct 2001, Roy Sigurd Karlsbakk wrote:
>> >
>> >> Hi
>> >>
>> >> When sending mail in a newly checked-out and configured 0.9.13.015
>> >> installation, I get the following error message
>> >>
>> >> Your message could not be sent!
>> >> The mail server returned:
>> >> err_code: '501';
>> >> err_msg: 'EHLO requires domain address ';
>> >> err_desc: ''.
>> >>
>> >> roy
>> >> ---
>> >> Praktiserende dyslektiker.
>> >> La ikke ortografiske krumspring skygge for
>> >> intensjonen bak denne fremstilling.
--
that's "angle" as in geometry





reply via email to

[Prev in Thread] Current Thread [Next in Thread]