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 Howtoforge Staff

  3. bernikm

    bernikm New Member

  4. falko

    falko Super Moderator Howtoforge Staff

    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