[prev in list] [next in list] [prev in thread] [next in thread]
List: squirrelmail-stable
Subject: [SM-STABLE] Invalid domain name ( 501 ) Problem - Fixed / Explained / Workaround
From: "James Richardson" <james () time4tea ! net>
Date: 2003-04-22 11:03:02
[Download RAW message or body]
A change between 1.2.4 and 1.4.0 is that now in class/deliver/Deliver_SMTP.class.php \
the variable HTTP_HOST is used as the 'HELO' line for sendmail, as opposed to the \
domain setting in the configuration.
This will work fine, unless your webserver is running on a non-standard port, and \
your URL to access is includes this port number. Then, http host will be \
192.168.0.10:8080 or something, which sendmail will not allow.
To work around this and revert to the previous behaviour:
edit the above file, and change line 56 so that it looks as follows
53 /* If $_SERVER['HTTP_HOST'] is set, use that in our HELO to the SMTP
54 server. This should fix the DNS issues some people have had */
55 if (sqgetGlobalVar('HTTP_HOST', $HTTP_HOST, SQ_SERVER)) { // \
HTTP_HOST is set 56 $helohost = $domain;
57 } else { // For some reason, HTTP_HOST is not set - revert to old \
behavior 58 $helohost = $domain;
59 }
Regards,
James
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>A change between 1.2.4 and 1.4.0 is that now in
class/deliver/Deliver_SMTP.class.php the variable </FONT></DIV>
<DIV><FONT face=Arial size=2>HTTP_HOST is used as the 'HELO' line for sendmail,
as opposed to the domain setting in the configuration.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This will work fine, unless your webserver is
running on a non-standard port, and your URL to access is includes this port
number.</FONT></DIV>
<DIV><FONT face=Arial size=2>Then, http host will be 192.168.0.10:8080 or
something, which sendmail will not allow.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>To work around this and revert to the previous
behaviour:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>edit the above file, and change line 56 so that it
looks as follows</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2> 53 /* If
$_SERVER['HTTP_HOST'] is set, use that in our HELO to the
SMTP<BR>
54
server. This should fix the DNS issues some people have had
*/<BR>
55 if
(sqgetGlobalVar('HTTP_HOST', $HTTP_HOST, SQ_SERVER)) { // HTTP_HOST is
set<BR>
56
$helohost = $domain;<BR>
57 } else { // For some
reason, HTTP_HOST is not set - revert to old behavior<BR>
58
$helohost = $domain;<BR>
59 }<BR></FONT><FONT
face=Arial size=2></DIV></FONT>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>James</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
squirrelmail-stable mailing list
squirrelmail-stable@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/squirrelmail-stable
http://squirrelmail.org/cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic