andrew_ wrote:
thekiwi : did you quote the wrong person?
If you meant to quote me... Thats really beside the point. Whether or not that should be the issue, it makes total sense. My IP Address does not resolve to the same domain as the sender because im being virutally hosted. Changing the code as I showed fixed the issue and allowed me to send through to hotmail and msn OK.
|
My guess is that you have inadvertantly corrected a problem somewhere else ... and more likely your default from address was/is incorrect. THis can be a simple imput error, or a DNS misconfiguration in your domain details. But if it works for you ... hey ... good stuff.
To illustrate, my DEV environment is on an internal network (10.0.0.8) with a mails server (10.0.0.2) being used for relaying. Its on a Dynamic IP Address and I can send to Hotmail, Yahoo etc etc accounts. If you reverse lookup my SMTP relay IP Address you will get my ISP's FQDN. If you reverse lookup on my FROM address and resolve its MX you will get my hosting server somewhere else in the world. Remember, not all domains have/need an IP Address .. and a lot just have an MX record.
DP was right on... A reverse dns look-up does not resolve the senders domain with the ip. Thats dead on, and was my case to the T.
|
Good stuff ... but in computer fault finding your process does not imply cause and effect.
For example, I can send to my hotmail account using a faked Email address from my ISP's DSL connection ... the FROM address can be literally anything (in my tested cases) and all work fine.
It would be a great addition to the codebase if a reversedns lookup could be performed, or even directly inputted into the config and used in that fashion. It just works.
|
Good stuff ... but Im almost 99% sure you are bypassing an error in your forum config and/or your domains setup (eg at a DNS level).
Like I offered b4, if you send us the URL of your forum and/or the Email address you are using to send from ... we can test.