On Tue, Jan 27, 2009 at 04:34:16PM +0000, Ian Hobson wrote:
Hi all,
I wish to set up sending email from my vps - and I have been testing
php's mail facility.
Mail to two of my addresses (@googlemail.com, and @ntlworld.com) work
just fine. Three out of three got through - all within 2 or 3 seconds.
Mail to my preferred address - this one - is not being delivered,
although the call to mail returns true. (three out of three lost).
I wish to know why.
The server handling my incoming mail, is running on my firewall, with a
"dynamic" IP address, and thus the IP is in various black lists. Could
this be the reason for the non-delivery? Seems a long-shot to me. Why
should bitfolk care?
Any other reason I could check out?
Always the first thing to do -- look in the log files for every
piece of software on the delivery path. Does the PHP mail function
you're using have return codes? If so, do you check it, and what
result do you get in the failing cases?
Are you sending direct from the PHP to the wide world, or are you
sending through the local hub onyour VPS? If the latter, what does the
mail server log on the VPS say when you try to send these mails?
Finally, check the logs on your home mail server -- is it receiving
any incoming mail connections when you run your test? If it is, why is
the mail failing?
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk |
darksatanic.net | lug.org.uk ===
PGP key: 515C238D from
wwwkeys.eu.pgp.net or
http://www.carfax.org.uk
--- Your problem is that you've got too much taste to be ---
a web developer.