When a domain is running in SUPHP and a mail is send using a PHP script this mail is received as:
send from: [email protected]
How can this be changed?
The problem here is that some mail servers cannot resolve this user, especially when using an external mail server or the mail server itself on the server is disabled for this domain.
In this specific case a rule is set in exim.conf that all mail from a domain must be delivered from a special antispam/virus server, but the send from address which is send along is NOT the domain which sended the mail!
The recipient is checking is the sender address is valid but does this based on the "send from" address. This user does not exist (it is the servername) and exim will report that mail is only accepted from 1 server and does not allow checks. The result is that the mail is not accepted by the remote mail server.
SO how can I change where PHP mail specify the send from value?
(this is not a mailheader command in php)
send from: [email protected]
How can this be changed?
The problem here is that some mail servers cannot resolve this user, especially when using an external mail server or the mail server itself on the server is disabled for this domain.
In this specific case a rule is set in exim.conf that all mail from a domain must be delivered from a special antispam/virus server, but the send from address which is send along is NOT the domain which sended the mail!
The recipient is checking is the sender address is valid but does this based on the "send from" address. This user does not exist (it is the servername) and exim will report that mail is only accepted from 1 server and does not allow checks. The result is that the mail is not accepted by the remote mail server.
SO how can I change where PHP mail specify the send from value?
(this is not a mailheader command in php)