Forum Moderators: phranque

Message Too Old, No Replies

Mail with "Received: (from apache@localhost)" regarded as spam

Apache not showing the real domain.server name

         

Loophole

1:22 am on Jul 20, 2005 (gmt 0)

10+ Year Member



Hi,

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

jatar_k

6:06 am on Jul 21, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld Loophole,

have you tried just setting extra mail headers when using the mail function?

Loophole

5:48 am on Jul 24, 2005 (gmt 0)

10+ Year Member



Yes, have added all the extra headers but still no success.

Any help ...advice would be appreciated.