Right now, I have my web server (apache2) on one server and my email
server on another. The web server and email server work fine
independently (i.e. the website and scripts are operational and the
email server works from both the webmail interface and also from
witihn email clients like outlook). The problem arises when we want
to send out (using php or sendmail) email from the web server based on
the customer's input. These emails are being blocked by spam blockers
on the receiving end because the "From" of the email is
name@domainname.com but when those receiving hosts try to match up the
domainname.com with the IP it is coming from, there's an incongruity.
I've looked at the headers and it still says that the email is being
sent from either "apache@localhost" or from the domain
"localhost.localdomain" I've tried multiple programming techniques
(e.g. trying to set the "from", "reply-path", "reply-to" headers as
well as internal php config settings like "SMTP", "SMTP_port", and
"sendmail_from"), none of which have produced the results desired. So,
I suppose there should be an actual question in here - how do I get
emails to be sent from my web server through php using the email
addresses from my email server without spam blockers deflecting them? |