Results 1 to 4 of 4

Thread: Postfix Mail Directory

  1. #1

    Default Postfix Mail Directory

    Hi everyone, i need to transfer some peoples mail boxes to a new server, such that they login to that server and access all their mail.
    Both servers are running suse10.3 and have the exact postfix squirrelmail and dovecot, usernames and passwords all the same
    My challenge is, i dont exactly know which directories on the server contain user's mail because i need to copy them onto a harddrive and paste them in the exact directories on the new server. Atleast i got that of the attachements.
    Any idea?
    Thank you all.

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Postfix Mail Directory

    If using mbox format, usually /var/spool/mail/<user>

    If using Maildir format, usually ~user/Mail or ~user/Maildir, depending on the settings of Postfix and Dovecot.

  3. #3

    Default Re: Postfix Mail Directory

    Hey,
    Thanx for the response, checked out /var/spool/mail, seems like its the ideal folder, let me copy it and see how things work out. will get back to you.
    Thanks Man.

  4. #4
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Postfix Mail Directory

    Make sure the ownerships are correct after the copying, since your UIDs might not match up or they might end up being owned by root after the copy. Something like this perhaps:

    Code:
    cd /var/spool/mail
    for i in *
    do
      chown $i $i
    done
    Just a suggestion. Make your own judgement as to usability of this shell fragment.

Posting Permissions

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