Hi,

  Just to let everyone know of a neat "feature" I figured out today
during my conversion from an old Postfix mail server to a set of two
clustered qmailldap ones.
  I'm gradually moving users over to the new server and have already
created ldap entries for them, mainly so that I can use ldap as an
address book.
  As I move users over I put a .forward on the old mail server
(accepting mail for @domain1.com) to [EMAIL PROTECTED]  Postfix
then forwards the mail to that DNS A record which is one of the two
qmailldap boxes.  Works great.
  The first problem I ran to was in using the two as an smtp server for
domain1.com.  If one of the new users sent email through the clustered
servers for [EMAIL PROTECTED] it will fail as all the accounts I
haven't moved over yet have accountStatus set to disabled.
  So I got around that by installing a 3rd qmail-smtpd server and have
everyone send mail through that.  It knows via smtproutes to send mail
to @domain1.com to the old server and @mail.domain1.com to the new one.
Pretty easy stuff.
  Well today I ran into a problem where an old user sent a new user a
mail that was then re-directed by bogofilter to
[EMAIL PROTECTED]  I hadn't setup the -catchall
mailalternateaddress yet so the email bounced.  Except the bounce was to
a qmailldap account.  Qmail gave up and delivered it to the postmaster,
like it should.
  So I looked into mailfowardaddress, which worked fine except it seemed
a little goofy for me.  Qmail would accept the mail and the forward it
to the old server, probably ruining any Addressed-To fields (I'm not
100% sure of that).
  Anyway it struck me: extend clustering to the postfix server!  5
minutes later I have a working QMQPD instance on the old postfix server
(thanks to http://www.din.or.jp/~ushijima/qmail-conf.html).  It listens
on port 628 so it doesn't interfere with Postfix.  Luckily the person
that installed Postfix used Maildir delivery so all I had to to was
startup qmail-send and have it deliver into the user's Maildir.
  I then changed the mailHost to the old Postfix server for the old
accounts and mail went from the qmail cluster over to the postfix
server flawlessly.
  I'll eventually writeup a howto on how I did this migration to help
out the community.  If you have any particular things you'll like to see
addresses, let me know.

Chris

Reply via email to