|
You can probably improve the program you have quite a bit.
1. Run a caching dns server on the same machine as the script.
2. Put the mqueue directory on a ram disk.
3. Sendmail creates the queue files in the current directory and then moves them into the queue directory. Either start your script from ram disk or have it cwd in.
4. Use envelopes so that you can deliver several messages to the same host with only one connection.
5. Tweak your sendmail timeout parameters so that it wastes less time on hosts that are slow or unreachable.
__________________
"Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
--H.L. Mencken
|