Script to list e-mail account that have mail on a server

Discussion in 'Programming/Scripts' started by bernikm, Feb 16, 2011.

  1. bernikm

    bernikm New Member

    Hi

    On gentoo Linux I'm trying to find out which users have e-mail messages still on server.
    We're moving all user/mail account to a new Linux distribution (RedHat) so I need to know which users still have e-mail messages on a server. Yes I know I can look into each users folder and list messages, but if anyone has a script that will seatch through all users mailboxes and list how much e-mail messages each user still has on a server that would be great!
    Any ideas or instructions how to do this?
    Regards,
    Miha
     
  2. falko

    falko Super Moderator

  3. bernikm

    bernikm New Member

    Thanks! Tried with imapsync, I get error on second server that I want to transfer mail to

    Error login: [XXX.XXX.XXX.XXX] with user [testb@mydomain.com] auth [CRAM-MD5]: 2 NO [ALERT] Unsupported authentication mechanism.

    Any ideas how to solve this?
     
  4. falko

    falko Super Moderator

    There seems to be something wrong with authentication on the second server? Did you check the mail log?
     
  5. bernikm

    bernikm New Member

    Hi

    Running with option --authmech2 LOGIN solved the issue!
     

Share This Page