Hello, I'm trying to send mail through PHP in a contact form.
This email gets to our bussiness as if it would be coming from the customer, due to that the existing code sets the From header to the email of the person who is trying to reach us.
I'm relaying all of our emails through Zoho by using postfix.
But everytime the From header is set to something different than *@nickhard.com.ar I'm getting the following error:
May 7 11:14:08 nickhard postfix/qmgr[5963]: 9B738121A4A: from=<
ventas@nickhard.com.ar>, size=1392, nrcpt=1 (queue active)
May 7 11:14:09 nickhard postfix/smtp[25851]: 945F6121A49: to=<
ventas@nickhard.com.ar>, relay=127.0.0.1[127.0.0.1]:11125, delay=1.3, delays=0.02/0/0.94/0.31, dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] said:
553 Relaying disallowed as Sr =?UTF-8?Q?Nicol=C3=A1s?= Navarretta <navarretta87@hotmail.com> (in reply to end of DATA command))
Is there any kind of workaround I could use to circumvent this issue ?
Thanks