I have setup an Amazon EC2 instance and trying to send emails using php's mail()
function. Email sending works fine but the send address contains apache@ip-XX-XXX-XX-XXX.us-west-2.compute.internal
where XX
are integers. This causes the email to be classified as spam at the inbox. I have tried using needle headers as suggested here with no avail.
I have a domain name pointing to this server and how can I link it to the sending address?