I am writing a mail script for a server (not sure which server yet), but the basic object of this program is to:
1) For the first time ANY email address emails ANY user on the mail server (anyone *@mydomain.com)
2) The autoreply will be an text-image writer, much like Yahoo! and other big companies use so people can't automate their forms. The user is required to type in this validation key and the form submits back to this script and tells the server "Okay, this is a real email address.. let it through"
3) Send an email (if the user isn't verified) to the recipient with a generic. "A user named $name tried to email you a message on $date that was $emailsize kb in size. The email will be delivered once their email account is verified".
Basically, this is a kill-all spam disallowing ANY user to email a person at my domain until they verify their account through a web form which generates image keys.
My questions:
1) How do I write a script for a mail server? I can write Perl/CGI scripts for the most part without a problem, but I have never had to deal with this before. How do I force a mail server to use this script for each email it recieves?
2) What dependencies are there? What information do I need to know about the mailserver/server it's running on before looking deeper into this project?
3) Is Image::Magick the best way to go for the image-text writer?
Thanks for your help everyone.
In reply to Writing a script for a mailserver by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |