VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: hotrod on October 20, 2013, 15:14:19 PM

Title: Ask question about product From address not matching authenticated address
Post by: hotrod on October 20, 2013, 15:14:19 PM
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.
Title: Re: Ask question about product From address not matching authenticated address
Post by: jenkinhill on October 20, 2013, 18:03:29 PM
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.
Title: Re: Ask question about product From address not matching authenticated address
Post by: hotrod on October 20, 2013, 18:41:28 PM
Thank You Jen,  Very Much.  I missed that.  works perfect now.