views:

161

answers:

0

Hi,

I have a web server running CentOS 5.3, Apache and sendmail (and other bits and pieces). I am sending email from Apache using the local sendmail process. I haven't changed any of the default CentOS values for sendmail. I have 2 questions which have been bugging me for a while now...

How do I pause the outgoing sendmail queue? I would like to be able to pause the queue so I can look inside the queue folders and look at the emails before they are sent. Then I'll resume the queue and the queued emails will be sent.

Is is possible to send email in batches, and specify how often batches of emails are sent out? Say for example I have a Python script that sends email to 5000 addresses from a loop. I'd like these to queue up in sendmail in batches of 100, and 100 emails are sent every 5 minutes. I'm worried that if they're all sent out at once then it might look like spam - is this the case?

I look forward to any advice anybody can give me!

Cheers, Nick