Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Writing a script for a mailserver
by toma (Vicar) on Jan 18, 2004 at 19:00 UTC | |
|
Re: Writing a script for a mailserver
by pg (Canon) on Jan 18, 2004 at 18:29 UTC | |
|
Re: Writing a script for a mailserver
by CountZero (Bishop) on Jan 18, 2004 at 20:08 UTC | |
by Anonymous Monk on Jan 19, 2004 at 03:26 UTC | |
|
Re: Writing a script for a mailserver
by elwarren (Priest) on Jan 19, 2004 at 22:17 UTC | |
|
Re: Writing a script for a mailserver
by MidLifeXis (Monsignor) on Jan 19, 2004 at 18:04 UTC |