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

Phoca Guestbook - creating guestbooks in Joomla! CMS
ecolora
Phoca Member
Phoca Member
Posts: 10
Joined: 08 Apr 2011, 09:01
Location: Krasnoyarsk
Contact:

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

Post 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.
ecolora
Phoca Member
Phoca Member
Posts: 10
Joined: 08 Apr 2011, 09:01
Location: Krasnoyarsk
Contact:

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

Post 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.
ecolora
Phoca Member
Phoca Member
Posts: 10
Joined: 08 Apr 2011, 09:01
Location: Krasnoyarsk
Contact:

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

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48742
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hi, great, thank you for this info and for the article.

Jan
If you find Phoca extensions useful, please support the project
Post Reply