-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

+++ Kingsly John [linux-india] <18/01/02 12:04 +0530>:
> Are the any tools to migrate the files in the mailqueue when upgrading
> from 8.9 to 8.11 ? I've noticed that the filenames and stuff are
> different.

Your best bet is to flush the mailq entirely (stop sendmail and run it with
- -q to do that) before you upgrade sendmail.

Or, have 8.9.3 running separately (as sendmail.old -Csendmail-893.cf -q5m) -
where a different queue-directory (say /var/spool/mqueue.old) is specified.
Your 8.9.3 queue will reside there till it clears out.

Note this quote from man sendmail though ...

- -Cfile Use alternate configuration file.  Sendmail refuses
       to run as root if an alternate  configuration  file
       is specified.

> Also if I were to enable multiple mailqueues ....
> can I just copy all the queue files to one of the new queues ? (sendmail
> would *not* be running when I do this.)

Yes you can.  If you enable multiple queues - like
/var/spool/mqueue/q[1..20], just copy all the files to one queue IF you are
doing this in the same version of sendmail (8.9.3 mail in 8.11 multiple
queues may not work ... never tried that one though, but don't want to try it
in a production environment) :)

That is, the entire set of queues will be 8.11 queues, processed by sendmail
8.11.x (btw go to 8.11.6 - or go straight to 8.12.2 - the latest stable
sendmail.  It has some added extras you'll like - like pipelining etc).

Remember to copy df*, qf* and any xf* files (temporary stuff) that's around.

Or use contrib/qtool.pl from the sendmail source if you want to move mail
around in a live mail queue.  The syntax of qtool is a bit weird though ;)

> and how does "/usr/sbin/sendmail -q -v" react in case of multiple queues ?
> and what is a decent number of queues to have ?

Sendmail is heavily I/O limited.  So multiple queues across multiple spindles
should speed things up.

On some VERY high traffic mailservers (like several thousand emails per hour)
we have running a mysql patched sendmail 8.11.x on freebsd 4.4-stable with 
ufs+softupdates, we have 20 mail queues as /var/spool/mqueue/q[1..20]

You might experiment with a greater or lesser number as you please.  See that
you have a fast and stable filesystem though.

        -srs
- -- 
Suresh Ramasubramanian  <---->  mallet <at> efn dot org
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin
[Linux One Stanza Tip]  From : <[EMAIL PROTECTED]>
LOST #025        -**< Sub : DOS to Unix conversion (#1) >**-
Method #1:
To convert a DOS text file to Unix so that the extra ASCII 13
does not show up when viewing / editing a DOS text file.
$cat filename.dos | tr -d '\015' > filename.unix
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: Finger mallet<@>efn.org for key

iD8DBQE8R8W8RB4r9e3t77kRAm6sAKDWnO0im8Abf2qC25QrYtm20vznTQCg3iWT
CRfHPJOklEq7EPPMAC70yag=
=gOZG
-----END PGP SIGNATURE-----

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to