--On Friday, October 17, 2003 11:28 -0700 Chinku Simon <[EMAIL PROTECTED]> wrote:

However, the number of mails that are being sent is pretty huge --
around 2000 mails in a span of 30 minutes.
The perl program crashes after sending around 700 mails with the
Bulk mail error log giving the following error.

error: Could not make socket for 10.10.54.160, Socket error (Too
many open files)        code : MBS002 error: Could not make socket for
10.10.54.160, Socket error (Too many open files)        code : MBS002
error: Could not make socket for 10.10.54.160, Socket error (Too
many open files)        code : MBS002 error: Could not make socket for
10.10.54.160, Socket error (Too many open files)        code : MBS002
error: Could not make socket for 10.10.54.160, Socket error (Too
many open files)        code : MBS002

Please let me know if anyone has come across the same situation and
if so please advice as to what a good solution to this would be.

Well, I was hoping that someone who actually knew what they were doing would try to answer you, but since no one seems to have stepped up...


That said, what it sounds like is that you have a smtp server that can't handle the number of connections that Mail::Bulkmail generates. The first thing to check is to see if you can scale back the number of connections. Given that, a perusal of the docs turns up a few possibilities for this; the most immediately relevant is the option 'max_messages_while_awake' coupled with 'sleep_length'. (Both documented in the Mail::Bulkmail::Server docs.) Try setting the first to, oh say 650 or so, and the second to 30-60 seconds (it is in seconds) to start with, and play from there. It'll take a little longer to send all the emails, but hopefully it won't overwhelm the server.

Hope that helps. If your problem is something else, come on back with whatever info you've got from this. ;-)

Daniel T. Staal

---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to