Page 1 of 1

Error SMTP: 5.7.1 Sender address rejected: not owned by user

Posted: 17 Jul 2012, 15:27
by ecolora
Hello!

Joomla 2.5.6, Phoca Guestbook 2.0.5.

I'm using external SMTP-server in my Joomla. When user try to add new entry to Phoca Guestbook, he see the error:
Error SMTP: 5.7.1 Sender address rejected: not owned by auth user.
The new review is storing in database and i can see it in phoca guestbook messages in my admin panel, but Your component can not send the e-mail to administrator, cause it's using the sender address, not the Joomla contact e-mail (storing in options of Joomla).

Why? How could i change it to default Joomla sites e-mail (i mean sites e-mail in Joomla configuration)? Where can i change the Phoca Guestbook webmasters e-mail (i mean the default sender e-mail)?

I mean if guestbooks sender e-mail is: vasya@gmail.com, it must always replace to the default Joomla sites e-mail (info@mysite.com, for example), so the SMTP-server will acept that request.

Thanks.

Re: Error SMTP: 5.7.1 Sender address rejected: not owned by

Posted: 17 Jul 2012, 15:52
by ecolora
I founded it!

In file components/com_phocaguestbook/models/guestbook.php i founded lines:

Code: Select all

		if (isset($post2['email']) && $post2['email'] != '') {
			$mailfrom = $post2['email'];
		} else {
			$mailfrom = $rows[0]->email;
		}
I added one line after that:

Code: Select all

		$mailfrom = 'info@mysite.com';
So it's now working fine.

Re: Error SMTP: 5.7.1 Sender address rejected: not owned by

Posted: 17 Jul 2012, 16:17
by ecolora
I added recomendations for Russian users to my Blog.

Phoca Guestbook: Ошибка SMTP: 5.7.1 Sender address rejected: not owned by auth user.

Thanks!

Re: Error SMTP: 5.7.1 Sender address rejected: not owned by

Posted: 18 Jul 2012, 16:07
by Jan
Hi, great, thank you for this info and for the article.

Jan