Windows Phone Thoughts - Daily News, Views, Rants and Raves

Check out the hottest Windows Mobile devices at our Expansys store!


Digital Home Thoughts

Loading feed...

Laptop Thoughts

Loading feed...

Android Thoughts

Loading feed...




Go Back   Thoughts Media Forums > WINDOWS PHONE THOUGHTS > Windows Phone Thoughts Site Updates

Reply
 
Thread Tools Display Modes
  #1  
Old 07-20-2002, 10:00 AM
Jason Dunn
Executive Editor
Jason Dunn's Avatar
Join Date: Aug 2006
Posts: 29,160
Default A new contact form

http://www.pocketpcthoughts.com/contact.php

Not the most exciting thing I've ever announced, but we now have a new contact form. It will hopefully cut down on the amount of spam we get to the news@ alias, since most spam harvesters don't scan HTML code (I hope). You can keep using news@ in your email, but I hope that people who have always wondered how to submit Pocket PC news will find this easier than ever (and you can submit news anonymously). Nothing special on the form, but you can pick who you want the message to go to - the entire team, individual members, etc. We've actively removed all our email addresses off the site - this form is your single point of contact if you don't already have our email addresses in your address book.

It's all nicely done in PHP, with special thanks to the second of my PHP Samurai, Elad Yakobowicz (a.k.a. EmXtrix). I've been meaning to create a nice contact form for quite some time, but other matters always seemed more importance. Elad asked me if he could help, and help me he did! Thanks Elad!

There is one problem with it, however. It seems that 50% of the time, it's incredibly slow, taking 30+ seconds to process. The email always gets sent, but the other 50% of the time it takes half a second to process. Everyone helping me with this is totally stumped, and I need someone who knows a lot about Linux server administration to take a look at our server configuration - we're clearly not doing something correct.
 
Reply With Quote
  #2  
Old 07-20-2002, 01:04 PM
Elad Yakobowicz
Ponderer
Join Date: Jul 2003
Posts: 64
Send a message via AIM to Elad Yakobowicz Send a message via MSN to Elad Yakobowicz

Wow, me - a PHP Samurai, who would have thought! :P

Just wanted to drop by and say hello. Enjoy the contact form, everyone! :flasingsmile:
__________________
PCsynapse.com
"When the sky looks like crap, that's when you know it's time for God to change his graphics card"
 
Reply With Quote
  #3  
Old 07-20-2002, 07:27 PM
/dev/niall
Ponderer
Join Date: Feb 2002
Posts: 79
Default Things to look into for delays

Is sendmail doing a reverse DNS lookup that may take a long time? Mucking around with ident?

Sendmail will look up the MX record of any host you send mail to; regardless of whether or not it is in the /etc/hosts file. Your bottleneck may be your DNS server.

You could test this out quite easily by setting up a caching name server on your box so the requests are handled more quickly.

Or you could configure sendmail to just relay all the mail to a smart host who would actually send the mail. If sendmail knows it's always going to forward the mail on to someone else it won't bother with the lookups.

Is sendmail configured to send the mail immediatly? You could try telling it to process the queue every 5 minutes or so. I think it would try the lookup when the queue is processed and not when the mail is submitted to be sent.

[pause for a google search]

There's actually a pretty decent page on Linux Gazette that may be helpful:

http://www.linuxgazette.com/issue31/tag_maildns.html

and

http://www.linuxgazette.com/issue36/tag/20.html

Pretty much says what I just said except it goes into more detail on possible solutions.

Hope this helps! Dealing with sendmail can be nasty.
 
Reply With Quote
  #4  
Old 07-20-2002, 11:27 PM
Jason Dunn
Executive Editor
Jason Dunn's Avatar
Join Date: Aug 2006
Posts: 29,160

Thanks for the tips - we'll look into it!
 
Reply With Quote
  #5  
Old 07-22-2002, 04:26 AM
njb42
Ponderer
Join Date: Jun 2005
Posts: 56
Send a message via ICQ to njb42 Send a message via AIM to njb42 Send a message via MSN to njb42 Send a message via Yahoo to njb42
Default Reverse DNS/IDENT definitely a possibility

(Note: I am also assuming that you use sendmail, although I do not see that stated explicitly. If you're using Postfix or qmail, the same principles would probably still apply, but YMMV.)

I would definitely second the suggestion that you check your sendmail configuration for reverse-DNS lookups. These can take a long time, especially if the user is on a dialup or DSL account configured with DHCP or RADIUS. Not all ISP's take the time to create IN PTR DNS records for every single address in their dialup pool.

The problem may also lie in the way you're calling sendmail. If you submit messages into the sendmail queue using /sbin/sendmail, the program should return immediately -- the DNS lookups are done by the daemon when it processes the queue. Most CGI scripts call sendmail as an external process this way.

If your script is in fact opening a connection to port 25 instead of invoking /sbin/sendmail, then these delays are more likely the cause of DNS problems. Note also that sendmail may perform an MX lookup to see if it is authoritative to accept the incoming message. If there is some misconfiguration in your DNS server, or if the mail and DNS servers are separated by a few hops on the network, this could also cause the problem.

If you need help with sendmail, I can try to pitch in. I've done a fair amount of work with it. I've also been a Linux geek for about 11 years. :twisted:
 
Reply With Quote
  #6  
Old 07-22-2002, 02:46 PM
Madoc Owain
Pupil
Join Date: Jun 2002
Posts: 16
Send a message via ICQ to Madoc Owain
Default Spam harvesters LOVE HTML, mmm good!

Unfortunately, it's been my experience that spam harvesters DO scan HTML code, at least to look for "mailto:" tags. I don't have enough of a readership to explain it by saying it's people getting the address "by hand" and submitting it to spammers. http://www.madocowain.com

M.O.
 
Reply With Quote
  #7  
Old 07-24-2002, 10:36 PM
njb42
Ponderer
Join Date: Jun 2005
Posts: 56
Send a message via ICQ to njb42 Send a message via AIM to njb42 Send a message via MSN to njb42 Send a message via Yahoo to njb42
Default Spam harvesters

Oh, spammers definitely scan HTML for mailto: links or anything that looks like a valid SMTP address. Often they use web spiders that masquerade their USER-AGENT strings to look like MSIE or Netscape so you won't suspect you're being harvested.

There are numerous stories over at slashdot.org if anyone's interested.
 
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:09 PM.