This is less a PHP question and more of a mail question, but I hope that the PHP folk might have experience with this problem.
I've got a form on a website that mails out the contents to a preset email address. It's pretty simple, using mail(). And it seems to send mail just fine. Trouble is, sometimes the mail isn't received. From my testing, I know that hotmail, yahoo, nzoomail, and other free inbox providers receive the mail correctly. But it doesn't reach any other inboxes, such as my own inbox in my domain.
I can't figure out exactly what the problem is. My first instincts tell me it's probably a spam/filtering problem. If it is, how would I fix it? I can see from the headers why spam blockers might think it's a bit dodgy... what would I have to do to correct them? Is there possibly any other cause for the inconsistency? Solutions? Ideas?
Busy posted this at 09:07 — 28th November 2003.
He has: 6,151 posts
Joined: May 2001
One of the spam crowds blocks a lot of webhosts, puts the server in a blacklist and this list gets spread around. forgot who it is, but should be able to find out who. you can try email your webhost to try ask them to remove their server but all it takes is one complaint from someone about someone on your set of servers and your back on it.
Also AOL has real stupid spam filters set up at the moment
Abhishek Reddy posted this at 10:03 — 28th November 2003.
He has: 3,348 posts
Joined: Jul 2001
Blacklist may be an idea. I'll check up on that.
The mailer sends a mail only to the client's one email address, so I'm looking to defeat every spam filter in the planet. Just this one. But I suspect if I figure out how to get past this one, I'll break through most others.
How do spam filters work, anyway? I know there are many levels of "defence", but I can't pick out which one is causing this to be blocked. As I mentioned previously, I think it's the mis- (or un-) configured headers -- there's a nobody@localhost and a nobody@[domain] in the from field. Do filters expect anonymous server-generated mails with apparently spoofed headers to be spam? Or am I missing the point altogether?
Busy posted this at 21:10 — 28th November 2003.
He has: 6,151 posts
Joined: May 2001
it was spamcop, here is a quote from them
and I believe if you put your ip on the end of this link you should be able to see if your blocked or not www.spamcop.net/w3m?action=checkblock&ip=
might also find this useful too http://www.ecommercetimes.com/perl/story/32009.html
Abhishek Reddy posted this at 21:50 — 28th November 2003.
He has: 3,348 posts
Joined: Jul 2001
Well, the server is not blacklisted (*phew*) but I'll check with the host if he might be on any other BLs.
druagord posted this at 21:54 — 28th November 2003.
He has: 335 posts
Joined: May 2003
did you check sendmail logs (or whatever your mailserver is) logs are the best friend of any mailserver admin
Abhishek Reddy posted this at 02:26 — 29th November 2003.
He has: 3,348 posts
Joined: Jul 2001
As it happens, I admin very little on that site and server (not even the actual live site), so not much I can do to get my hands on the logs. What should I be looking for in the logs?
Mark Hensler posted this at 09:33 — 1st December 2003.
He has: 4,048 posts
Joined: Aug 2000
Any sign of bounced mail, or other indication as to why the email didn't go through.
Abhishek Reddy posted this at 10:48 — 1st December 2003.
He has: 3,348 posts
Joined: Jul 2001
No sign, afaik. The local inbox doesn't collect it as trash or spam, so best guess is that a server along the way blocked it.
druagord posted this at 13:59 — 1st December 2003.
He has: 335 posts
Joined: May 2003
Usually the server write in the logs the reson it didn't send the message. I would be looking first did the message got all the way to the server then if it did the reason why it didn't go any further.
IF , ELSE , WHILE isn't that what life is all about
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.