Forum Moderators: phranque
It has been 2 days now trying to find a solution for this problem. Recently my local ISP changed their security settings and now emails generate from PHP scripts is being rejected due header "Received: (from apache@localhost)".
Searching various articles and forums i have come to know that webserver/computer cannot find its own name (so it comes out
as "localhost") when mails are being sent. I have every solution mentioned on the forums but still could not change the "localhost" part to my server name.
1. hostname at /etc/hosts is ok.
2. have added MASQUERADE_AS... to /etc/mail/sendmail.mc...
3. /etc/sysconfig/network is ok.
I have applied all what is said on this thread [experts-exchange.com...] but still not change.
I am now thinking that this is a apache setting problem as I can change what is before 'localhost' by editing the httpd.conf but cannot change the 'localhost' to my actual 'domain.server.com' name.
Has any one faced this problem or have a clue how to change let my server know it's actual name instead of 'localhost'.
Rgds,
Loophole