FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » smtp AUTH
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
smtp AUTH [message #5490] Wed, 04 September 2002 15:55 Go to next message
crac is currently offline  crac   Switzerland
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #5493 is a reply to message #5490] Wed, 04 September 2002 16:14 Go to previous messageGo to next message
crac is currently offline  crac   Switzerland
Messages: 7
Registered: September 2002
Karma: 0
Junior Member
hi

thx for the fast answer! if i leave 'STMP Server Login' empty, then i get the following error:

Quote:


Invalid STMP return code: 555 5.5.4 FORUM parameter unrecognized



doesn't it need to know, which emailadress I want use? or is the ADMIN_EMAIL enough?
Re: smtp AUTH [message #5498 is a reply to message #5493] Wed, 04 September 2002 17:37 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #5504 is a reply to message #5490] Thu, 05 September 2002 08:37 Go to previous messageGo to next message
crac is currently offline  crac   Switzerland
Messages: 7
Registered: September 2002
Karma: 0
Junior Member
NOTIFY_FROM = ADMIN_EMAIL, both are set up correctly ... it works here with phpbb2, so it has to be a bug ...

nobody else having this problem?

I'm going trough the code now ...
icon4.gif  Re: smtp AUTH [message #5505 is a reply to message #5490] Thu, 05 September 2002 08:58 Go to previous messageGo to next message
crac is currently offline  crac   Switzerland
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

icon13.gif  Re: smtp AUTH [message #5506 is a reply to message #5490] Thu, 05 September 2002 09:15 Go to previous messageGo to next message
crac is currently offline  crac   Switzerland
Messages: 7
Registered: September 2002
Karma: 0
Junior Member
I found other bugs with emails too; I think you should realy again have a look at that code ... !!
Re: smtp AUTH [message #5509 is a reply to message #5505] Thu, 05 September 2002 13:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #5510 is a reply to message #5490] Thu, 05 September 2002 13:42 Go to previous messageGo to next message
crac is currently offline  crac   Switzerland
Messages: 7
Registered: September 2002
Karma: 0
Junior Member
right, cool!

hey, I hope you don't think I dont like your work ... I found your forum yesterday and I realy like it! It has a lot of very nice features, is very easy to administrate, and is easy to be adopted to own preferences! great work!!! Very Happy
Re: smtp AUTH [message #5514 is a reply to message #5510] Thu, 05 September 2002 16:27 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Cool Wink

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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: bug in adm/admmassemail.php
Next Topic: last post in thread link not working?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 12:02:05 GMT 2024

Total time taken to generate the page: 0.06895 seconds