Re: GLUG: sendmail to qmail migration - help
* To: Eugene van Zyl <evz@xxxxxxxxxxx>
* Subject: Re: GLUG: sendmail to qmail migration - help
* From: "Schalk W. Cronje" <schalkc@xxxxxxxxxxx>
* Date: Fri, 12 Feb 1999 10:31:28 +0200
* Cc: GLUG <glug@xxxxxxxxxxxx>
* References: <
[email protected]>
As far as I can remember do the following
1. Create your new server with the users on them and install qmail
2. Decide if you will be using Mailbox or Maildir (the latter is recommended).
3. Run the following patches if you will be using Maildirs.
a) IMAP (qmail-imap-4.5.beta-2.i386.rpm)
b) Pine (pine-4.04-1.i386.rpm)
Check
ftp://summersoft.fay.ar.us/pub/qmail for tgz versions as well.
4. Set this server up with an MX number higher than the current mailserver.
5. For POP3 support you will need to install checkpassword or something similar
http://pobox.com/~djb/checkpwd.html
6. Start qmail and test
7. Ensure that your users change over to use smtp on this server
8. Maildirs: Create Maildirs for everybody
9. Disable smtp on you old mailserver. (Either via inetd.conf or by stopping
sendmail). Read the qmail
documentation REMOVE.sendmail
10. All mail will automatically be delivered to the new server.
11. Your next concern is to get hold of the mail on the old server. One
solution is to ensure that all users POP
the mail, but as you cannot necessarly trust users ....
12. Otherwise do a temporary mount of /var/spool/mail (probably via NFS).
MAILDIR: Run mbox2maildir for each user. This will safely convert the mbox
files to maildirs.
MAILBOX: Copy the old mbox files to Mailbox file in each user's home. If
you are to do this, do it before
enabling smtp on the machine as mail might be lost!
13. Having done all this you will have porbably have mail left in the queue on
the old server.
a) Remove the MX for the old server to ensure that no mail will go there
anymore.
b) Change the sendmail.cf file to ensure that all mail is relayed via the
new server.
c) Manually run sendmail -q until /var/spool/mqueue is empty.
Other Notes:
========
** From inetd.conf
imap stream tcp nowait root /usr/sbin/imapd
pop3 stream tcp nowait root /usr/local/qmail/bin/qmail-popup
/usr/local/qmail/bin/qmail-popup YOUR.DOMAIN /usr/local/bin/checkpassword
/usr/local/qmail/bin/qmail-pop3d Maildir
smtp stream tcp nowait qmaild /usr/local/qmail/bin/tcp-env tcp-env
/usr/local/qmail/bin/qmail-smtpd
** Relaying
If you are to use one host for mail relay purposes and you have a qmail to
qmail relay over smtp, the relay host suffers when run under inetd switch off
for upto ten minutes at a time. In such cases you should consider installing
tcpserver
I hope I did not leave anything out.