On Tuesday 27 January 2009 16:34:16 Ian Hobson wrote:
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).
Normally, something like PHP's mail function will hand off e-mail to your
local MTA (such as Exim by default on Debian, Postfix, or Sendmail if you're
unlucky). I'd imagine the return value simply indicates whether it was
passed to the MTA successfully (i.e. it returned 0).
The MTA will then carry out the delivery of the e-mail to the destination
asynchronously, which could take hours or days if there are temporary
failures.
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?
BitFolk won't have anything to do with it, it's your server. But indeed, your
server will most probably not look at RBLs to send e-mail!
Any other reason I could check out?
Try and locate the log files for your MTA, it should shed some light on errors
it receives while trying to deliver the e-mail. For Exim on Debian,
check /var/log/exim4/mainlog.
Cheers,
--
Dominic Cleal
dominic(a)computerkb.co.uk