Ask question about product From address not matching authenticated address

Started by hotrod, October 20, 2013, 15:14:19 PM

Previous topic - Next topic

hotrod

Joomla 2.5.11
VM  2.0.22a
All other sending funtios are working fine on the site.

Site. www.hnctruckparts.com

The Ask A question About This Product web form is connecting to the mail server successfully, and authenticating successfully, but is then attempting to send the message with a sending address different from the authenticated address.  The SMTP logs for these two attempts are in full below, but the key line is the error "550 From address must match authenticated address". It appears the form is attempting to send the question email with the submitter of the form as the sending address. This would allow you to reply to the email and have the reply sent to the submitter of the form, but the process of creating the email for you to reply to is effectively attempting to spoof the address of the submitter, which my hosts server prevents from happening.

08:24:25 [204.12.60.133][7919096] rsp: 220 win-mail02.hostmanagement.net
08:24:25 [204.12.60.133][7919096] connected at 10/20/2013 8:24:25 AM
08:24:25 [204.12.60.133][7919096] cmd: EHLO hnctruckparts.com
08:24:25 [204.12.60.133][7919096] rsp: 250-win-mail02.hostmanagement.net Hello [204.12.60.133]250-SIZE 41943040250-AUTH LOGIN CRAM-MD5250-STARTTLS250 OK
08:24:25 [204.12.60.133][7919096] cmd: AUTH LOGIN
08:24:25 [204.12.60.133][7919096] rsp: 334 VXNlcm5hbWU6
08:24:25 [204.12.60.133][7919096] Authenticating as info@hnctruckparts.com
08:24:25 [204.12.60.133][7919096] rsp: 334 UGFzc3dvcmQ6
08:24:25 [204.12.60.133][7919096] rsp: 235 Authentication successful
08:24:25 [204.12.60.133][7919096] Authenticated as info@hnctruckparts.com
08:24:25 [204.12.60.133][7919096] cmd: MAIL FROM:<rod@njswf.com>
08:24:25 [204.12.60.133][7919096] rsp: 550 From address must match authenticated address
08:24:25 [204.12.60.133][7919096] disconnected at 10/20/2013 8:24:25 AM


I have searched the forums for the fix and can't seem to find it, If someone could point me to the file and code I need to change. I would appreciate it.
Bronze Member
VirtueMart 4.2.4 10922
Joomla!  ‎4.3.4
PHP 8.0

jenkinhill

In VM2.0.24 if you deselect "Use the vendor email address" in Config/Shop then the Joomla superadmin address is used as the from address in the ask question email.

Another possibility is to use Joomla's php mailer to send the mail. Not sure if your server will allow that, though, as some shared hosts block the use of php mailer.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

hotrod

Thank You Jen,  Very Much.  I missed that.  works perfect now.
Bronze Member
VirtueMart 4.2.4 10922
Joomla!  ‎4.3.4
PHP 8.0