Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delivery denied - hostname unresolvable

Status
Not open for further replies.

rouse01

IS-IT--Management
Sep 10, 2001
143
US
I setup a second linux server in my office to do some PHP/MySQL development & testing on. I setup sendmail on this server to relay email through my primary linux server & everything works mostly fine. Using a email transfer class for PHP, my script cycles through a SQL table & fires off emails, but quite a few emails bounce with the following message:

----- Transcript of session follows -----
... while talking to destination.mailserver.com.:
>>> MAIL From:<apache@linux80.mydomain.net> SIZE=26727
<<< 571 5.7.1 Delivery denied your hostname is unresolvable
554 5.0.0 Service unavailable

I know the reason is because of the 'apache@linux80' (linux80 is my own name for the development machine & php runs as apache user). The mydomain.net is my legitimate domain.
Question is, how to change the 'apache@linux80.mydomain.net' to something like 'info@mydomain.net'?
Hope this makes sense & thanks.
Keith
 
Sleipnir,
From a client successfully delivered to, the &quot;From:&quot; is as I set it in the php script. The php class I'm using( allows:

$mail->setFrom('info@mydomain.net');
$mail->setSubject('Message from My Company');

I discovered the class also gives:

$mail->setReturnPath('info@mydomain.net');

so I added this to my script and tested on an address that bounced before. It worked!, but header exam reveals:

X-Authentication-Warning: linux80.mydomain.net: apache set sender to info@mydomain.net using -f

I'm concerned - should I be?
 
Sleipnir -
I've got spam assassin running on both the destination server & my primary office server. I'll bet my primary put the x-header in there.

It looks like 'Return-Path' is the key in php generated mail, even though (I think) it doesn't fool spam assassin. I was hoping that I could get sendmail to 'stamp' all my emails.

Can you suggest a different approach?

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top