Before I go on I just want to say that I know this is a duplicate question, but every answer I have seen hasn't worked for me.
Basically I have a php script that I am using to send an email to users who have forgotten their password. The code looks like this: mail("user@domain.co", "testing", "test");
I am using localhost which I know can be a problem with this sort of thing but I have a postfix server installed which should be fixing things. When I check my mail logs the server does indeed appear to have tried to send the mail, however its status shows up as bounced and the email is never delivered (not even in spam). Does anyone know what might be happening?
Heres what shows up in the log: Aug 13 10:14:31 kali postfix/error[3079]: 0E61F9DB8F: to=address@gmail.com, relay=none, delay=2.3, delays=2.2/0/0/0.06, dsn=5.0.0, status=bounced (gmail.com)
The postconf output is way to long to show, sorry.