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
----- 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