I'm posting this message to the site using this new email script that I got from John Blade. It's supposed to support attachments so that I can post pictures and files along with my email. I don't know if I will ever use this feature, but it might be useful to have.

More importantly, it prevents random users from posting via the secret email address by checking the sending address against the list of valid users in the database. Neat.

Comments

Comment by Pat on .
Pat
The question is, "How does it prevent spoofing sending addresses?". If there's no authentication mechanism, then it's only really a stop-gap measure. Email itself is unauthenticated, so there's no way you can tell the message really came from who it was supposed to have come from. This could probably be mitigated by only allowing email from your own server (which in theory should not support spoofing). You'd have to make sure that it kind of taps directly into the server, though, and doesn't ever use anything like message headers. Alternatively, you could build in your own authentication mechanism, like digitally signed emails, or something similar.
Comment by John Blade on .
John Blade
I'm heavily in redevelopment of the wordpress mail script. Originally I modified it for simple attachment of images, but later found it was easier to pretty much scrap it all and start again. What I'm going to add is a GPG/PGP feature; so when you send your PGP signed email it will be verifed by wordpress. This is very hard to forge - unless they have your private PGP key. Other then using PGP signatures, there could be a secret passcode or something you could include somewhere in the message - that could be fun. :)