Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why is qmail-inject working so slow?

Status
Not open for further replies.

133tcamel

Programmer
Sep 22, 2002
137
IN
Hi,
I've been using the following perl script to add messages to qmail's queue.. the system works fine but it takes about 10 mins to inject 3000 messages.. I'm not talking about the delivery part, just that part where qmail-inject takes a message and add its in the queue..

Here, is the perl code:
Code:
  for (1 .. 3000)
  {
    open(QMAIL, "|/var/qmail/bin/qmail-inject") or (print "Can't fork for qmail: $!\n" and sleep 10);
    print QMAIL $EMAILS{$_}; #contains all the form, subject, etc...
    close(QMAIL) or warn "qmail didn't close nicely";
  }

the above snippet even when run as the root as a cron job takes about 10 mins to queue 3000 messages.. I have rackspace dedicated server with the following specs:
Hard Drive 1 : 18GB SCSI
Hard Drive 2 : 18GB SCSI
Special Case : 2U Case
Bandwidth : 30GB (30GB incld.)
Memory : 512MB ECC RAM
Operating System : RedHat Linux 7.2
RAID : SCSI RAID Controller
Processor : Single 866 Mhz in a Dual Motherboard

Do you know whats causing this (BTW I installed qmail using the life w/ qmail handbook and the queue/remote directory has 23 subdirectories

Any help will be appreciated.

Thanks,
san. ---
cheers!
san.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top