Question: I need to forward \*@domain.com to a script.

I know the [EXIM way](https://serverfault.com/questions/229964/forward-all-mail-on-a-specified-domain-to-script) and the [PROCMAIL way](https://stackoverflow.com/q/557906/313192).

Is there a lighter way? Any experiences? Which one is the fastest if I JUST WANT it to delivery emails to script? (no pop accounts, nothing else)

(I knew qmail but I don't want to install "big" software that eats too many resources on the server).

Answer: 
Do you really want the script to just run, regardless of what is passed to it? Or do you want proper SMTP handling?

The lightest way might be to use something like Python's Twisted library listening for SMTP or a node.js [SMTP server script](https://github.com/riegel/node.js-SMTP-server), and have it fire of a script on each message required. That way you get full multi-threading, without much of anything else in the way.

I would say though that Exim and the others like it will be more than fast enough for 99% of uses.
If you just want to recieve E-Mails you can use a "server" like <http://code.google.com/p/subethasmtp/> .

You can have a 1 file java program using this library that will accept all emails and execute some code for it. The problem with it is you will need to have java present on the machine.