Re: [exim] Fastest way to send multiple messages?

Etusivu
Poista viesti
Vastaa
Lähettäjä: Tony Finch
Päiväys:  
Vastaanottaja: Juuso Töytäri
Kopio: exim-users
Aihe: Re: [exim] Fastest way to send multiple messages?
On Wed, 11 Jan 2006, Juuso Töytäri wrote:
>
> Few days ago i started creating a newsletter program that should send
> the same mail to multiple users. But because we are talking HUGE amounts
> of mail (60,000 mail addresses) i thought to ask your opinion of what
> would be the smartest and fastest way to do this (mails should leave in
> 2-4h).


Don't use a separate message for each recipient if you can avoid it.
Probably a few hundred recipients per message is about right - too many
and the time to route the message becomes too large because of the
sequential DNS lookups.

You probably don't want to fire off all the delivery processes at oncee,
unless your machine is beefy enough to cope with hundreds of them.
Instead, try submitting the messages in queue-only mode and use a custom
concurrent queue runner, such as
http://www.exim.org/mail-archives/exim-users/Week-of-Mon-20050620/msg00162.html

Do all the usual Exim performance optimizations. Ensure you have a local
DNS server. Turn on split_spool_directory. Turn off message_logs. Put your
spool/db directory on a RAM filesystem. Put your logs and your spool/input
on different disks. Strip down your configuration file.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}