I use a perl script to backup and sort my lists.
The only argument is the listname subscriber file.
#!/usr/bin/perl
$list = $ARGV[0];
system("mv $list $list.bak ; cat $list.bak | tr A-Z a-z | sort -t@ -k2 >
$list ; chmod 660 $list ; chown majordomo:majordomo $list\n");
exit(0);
Note the 4th line is a continuation of the system command on the 3rd line.
First backup the subscriber file, then cat the file piping output to the tr
program to translate uppercase chars to lowercase chars. Output from tr is
piped to sort, using '@' as a separator and starting the sort after the
'@'. This will sort by domain, and then output to the original list
filename. Mode and ownership are then correctly set on the file, in case I
run the program as root.
At 03:38 AM 6/15/01 -0500, Daniel Liston wrote:
>The most common reason for this is that your sendmail is starting to run
another
>delivery queue before the first one is completed. You could speed this up
by
>keeping your "large" list sorted by domain, and using bulk_mailer.
Bulk_mailer
>would probably be most beneficial.
|
|