Results 1 to 9 of 9

Thread: A way to set/change POP mail IDs ? (UIDL command)

  1. #1
    Join Date
    Jan 2007
    Location
    Lyon, France
    Posts
    16
    Rep Power
    8

    Question A way to set/change POP mail IDs ? (UIDL command)

    Hello,

    I've got a POP server (dovecot, more than 200 clients) which I want to replace with Zimbra. This server has a DNS alias (CNAME) "pop.domain.com". What I want to do is :
    - shut down mail arrival on the dovecot server,
    - synchronize all the mailboxes with the empty Zimbra server,
    - change "pop.domain.com" DNS alias to the Zimbra server.

    This way, the Thunderbird clients wouldn't have to be reconfigured. Transparent POP migration.

    *The* problem is that all the mails which have been kept on the POP server by the clients will be downloaded again by the clients (duplicated messages in Thunderbird). That's because Zimbra and dovecot don't answer the same IDs when replying to the POP "UIDL" command.

    Is there a way, in Zimbra, to configure / set the message IDs ? Or to tell Zimbra to use the X-UIDL or X-UID mail header as IDs ?

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    No. But you can tell the Zimbra POP server to hide all messages received before a certain date. That's controlled with the "zimbraPrefPop3DownloadSince" server attribute.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Jan 2007
    Location
    Lyon, France
    Posts
    16
    Rep Power
    8

    Default

    Thanks for replying, but I can't use that since I don't have such control over the clients (if and when they download new mails).

    The transparent one-time POP migration seems compromised. I'm investigating a "one user at a time" migration, per user request.

  4. #4
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Dan's talking about the server side setting:
    In 5.0.6: Bug 27293 - Provide a way (presumably a config/setting) to limit POP downloads
    In 5.0.7 user UI controls: Bug 27912 - Provide web client config/setting to limit POP downloads

    As an admin you could configure that time better:
    zmprov -l ma user@domain.com zimbraPrefPop3DownloadSince 200807151000000Z

  5. #5
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    So the new process would be:
    - shut down mail arrival on the dovecot server
    - synchronize all the mailboxes with the empty Zimbra server (impasync?)
    - set the zimbraPrefPop3DownloadSince on all accounts
    - change "pop.domain.com" DNS alias to the Zimbra server (might adjust your TTL down just a little in advance)

  6. #6
    Join Date
    Jan 2007
    Location
    Lyon, France
    Posts
    16
    Rep Power
    8

    Default

    The problem with this solution is that the POP clients won't have the mails received from their last check to the migration time (because they will switch to the new server - Zimbra - which won't let them download those mails through POP because of the zimbraPrefPop3DownloadSince setting). Some people are not in the office since few days or weeks. I don't see how to avoid duplicates *and* client's reconfiguration.

  7. #7
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Ya there's a 'barrel full of monkeys' when it comes to caveats - POP is just oh so fun!

    So sounds like you're planning a Split Domain - Zimbra :: Wiki one at a time for migration, then having them update server addresses manually. Which kinda defeats the 'transparent' migration intent, but might just be the way to go so you're not in a frenzy.

    Crazy idea:
    Don't know your environment (& if you can get a day with all 200 capable!) but you could do what I like to call 'an informed day in advance' where you go "Hey this Friday everyone needs to sync their mail between 4pm-5pm" queue incoming/internal mail from 4pm on. Anyone who can't make it work with in advance to go "When's the last time you can sync?" (then disable they're login after their last sync so they can't mess it up -lol)

  8. #8
    Join Date
    Jan 2007
    Location
    Lyon, France
    Posts
    16
    Rep Power
    8

    Default

    That will be easy, no need for a split domain configuration : I already have MXs and mail router in front of the Zimbra server. So I'll just have to modify the mail transport address of each LDAP account to redirect to Zimbra. There's no zimbra-mta package on the Zimbra server, it will use our existing smtp server.

    No need to disable old POP accounts too, I will give "information in advance" to add an IMAP account for Zimbra in Thunderbird I only needed POP for transparent migration, but if the users must modify their Thunderbird settings... it's better to use IMAP now. Then we'll introduce the full-featured WebClient

    Maybe I should post an RFE to make the POP server use X-UID mail headers or something like that to reply UIDL commands ?

    Thanks for helping,
    Olivier

  9. #9
    Join Date
    Jan 2007
    Location
    Lyon, France
    Posts
    16
    Rep Power
    8

    Default

    Maybe I should post an RFE to make the POP server use X-UID mail headers or something like that to reply UIDL commands ?
    Like dovecot uidl configuration : see "POP3 Migration" on Migration - Dovecot Wiki. That would have been perfect for a transparent migration

    Or by allowing modification of IMAP mail UIDs. That way, imapsync could sync UIDs between IMAP servers, with a patch like http://www.linux-france.org/prj/imap...c.syncuid.diff. Hopefully, IMAP and POP UIDs will be the same
    Last edited by osmedts; 07-16-2008 at 03:10 AM.

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  2. Upgrade from 5.0.2 to 5.0.6
    By fconil in forum Installation
    Replies: 2
    Last Post: 06-10-2008, 05:49 PM
  3. Problem with Postfix and MTA
    By ZMilton in forum Administrators
    Replies: 16
    Last Post: 04-16-2008, 07:47 AM
  4. [SOLVED] Mailserver down when send file attach of 50Mb
    By ZMilton in forum Administrators
    Replies: 20
    Last Post: 04-10-2008, 12:44 PM
  5. receiveing mail
    By maybethistime in forum Administrators
    Replies: 15
    Last Post: 12-09-2005, 04:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •