smtp AUTH [message #5490] |
Wed, 04 September 2002 15:55 |
crac
Messages: 7 Registered: September 2002
Karma: 0
|
Junior Member |
|
|
hi
as you know there are also smtp servers which do not require AUTH. so it would be nice, if
$FUD_SMTP_PASS = "";
is empty, that it tries automaticaly not use SMTP-AUTH ...
thx!
|
|
|
Re: smtp AUTH [message #5491 is a reply to message #5490] |
Wed, 04 September 2002 16:05 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If you leave the 'STMP Server Login' no authentication will be used.
FUDforum Core Developer
|
|
|
|
Re: smtp AUTH [message #5498 is a reply to message #5493] |
Wed, 04 September 2002 17:37 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Unusual error code, according to the RFC I've found it means:
If the server SMTP does not recognize or cannot implement one or more of the parameters associated with a particular MAIL FROM or RCPT TO command, it will return code 555.
I believe you also need to have a valid address set in NOTIFY_FROM field inside GLOBALS.php.
FUDforum Core Developer
|
|
|
|
Re: smtp AUTH [message #5505 is a reply to message #5490] |
Thu, 05 September 2002 08:58 |
crac
Messages: 7 Registered: September 2002
Karma: 0
|
Junior Member |
|
|
ok, I found the 2 bugs:
You have to change three files (smtp.inc, theme/default/email.php, and theme/default/remail.php):
change the following functions:
FROM
function send_to_hdr()
{
if( !@is_array($this->to) ) $this->to = array($this->to);
foreach( $this->to as $to_addr ) {
$this->wts("RCPT TO: ".$to_addr);
if( !$this->get_return_code() ) return;
}
return 1;
}
TO
function send_to_hdr()
{
if( !@is_array($this->to) ) $this->to = array($this->to);
foreach( $this->to as $to_addr ) {
$this->wts("RCPT TO: <".$to_addr.">");
if( !$this->get_return_code() ) return;
}
return 1;
}
AND FROM
function send_from_hdr()
{
$from_name = $GLOBALS['FORUM_TITLE'] ? $GLOBALS['FORUM_TITLE'] : $GLOBALS['NOTIFY_FROM'];
$this->wts("MAIL FROM: ".from_name." <".$GLOBALS['NOTIFY_FROM'].">");
return $this->get_return_code();
}
TO
function send_from_hdr()
{
//$from_name = $GLOBALS['FORUM_TITLE'] ? $GLOBALS['FORUM_TITLE'] : $GLOBALS['NOTIFY_FROM'];
$this->wts("MAIL FROM: <".$GLOBALS['NOTIFY_FROM'].">");
return $this->get_return_code();
}
[Updated on: Thu, 05 September 2002 10:38] Report message to a moderator
|
|
|
|
Re: smtp AUTH [message #5509 is a reply to message #5505] |
Thu, 05 September 2002 13:18 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I see, it appears your mail server unlike the ones I've used for testing the code do not allow MAIL FROM: user name <users(at)email(dot)com>, nor do they allow RCPT TO to contain more then just the email address.
The latest CVS release will contain your suggested patches.
FUDforum Core Developer
|
|
|
|
Re: smtp AUTH [message #5514 is a reply to message #5510] |
Thu, 05 September 2002 16:27 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Cool
If you can try to grab the latest CVS release and see if the problems with SMTP you've encountered are no longer there. I am afraid my own tests are insufficient since my SMTP servers seemed to have worked fine with the original code.
FUDforum Core Developer
|
|
|