7/01/2004
Joshua Teitelbaum
joshuat@cryptomail.org

Welcome to the CryptoMail MailDrop README.

The idea of CMMailDrop.exe is to allow incoming mail destined to a cryptomail user, to go into the database.

It is worthy to note that there are a couple ways to get sendmail to route mail (intended for a particular domain) to a program.  In fact, there's alot of ways to do a particular task in sendmail :) I don't have a wizard cap when it comes to sendmail, and I don't even know enough to be dangerous.

However, for CryptoMail, one path of least resistance is to map mail to your cryptomail domain to a particular mailer.  This can be done by setting sendmail up with a mailer entry:

# deal with local cryptomail delivery
R$* < @ www.cryptomail.org . > $*       $#crypto $: $1  local crypto mailer
R$* < @ cryptomail.org . > $*           $#crypto $: $1  local crypto mailer

Mcrypto, P=/home/crypto/CMMailDropWrapper.exe, F=lsDFMA5qSnm9,
        S=EnvFrom/HdrFromL, R=EnvToL/HdrToL,
        T=DNS/RFC822/X-Unix,
        A=CMMailDropWrapper.exe $u


As you can see, the CMMailDropWrapper.exe executable takes the destination user name and reads the message from stdin.


Other ideas include using the virtual users methodology, and map everyone from your cryptomail domain to a single user.  Then, this single user has a .forward which includes:
"|/home/youruser/SomeShellScriptThatObtainsThe$UserNameAndCalls_CMMailDrop.exe_$user.sh"


However, in this methodology, you will have to get the destination user name out from the message ( which is entirely in stdin :_( at that point   )
The path of least resistance is to get the mail drop wrapper working using the above rules methodology.  If configure.sh has run its course, there should be a cryptomail.cf for you to merge into your site.
