Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-24-2008, 05:27 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
exploratory postfox questions

Hi Guys

This is more of a exploratory question before we start bashing out the nitty gritties of the problem.

I am using postfix, postfixadmin and dovecot to offer mail to all our users at the office. Seeing as we are a sales orientated company we do suffer from high turnover. My question is this. Is it possible to move the mail from the fired/resigned staff into the sales managers mailbox from the mail server itself and not have to add the account to the sales managers outlook.

Let me see if i can explain this a little better.

Sales person leaves. I want to start forwarding all new email to sales manager. Sales person still has old mail in virtual directory structure that the sales manager would like to read and clear out that which does not belong to the company. I would to move all the old mail in the virtual directory to the sales managers virtual mailbox. Then delete the sales persons email and put a permanent forward all mail to sales manager.

I have looked at the directory structure and tried to copy mail out to a test mailbox. Outlook borks once all the mail has been moved. Looks to have something to do with dovecots dovecot.index, dovecot.index.cache, dovecot.index.log, dovecot-uidlist, maildirfolder files. Are there any solution or tools out there to migrate users mail to other mailboxes.


Old 11-24-2008, 12:46 PM   #2
Registered: May 2008
Distribution: Gentoo, Ubuntu, RHEL, CentOS, BSD, Solaris
Posts: 82

Rep: Reputation: 23
Well the first part of making sure new email that was destined for your old user is pretty easy that's easiest to do with aliases ( /etc/aliases usually) you need an entry like olduser: newuser@domain Check the man pages for aliases or

I'm not terrible familiar with Dovecot but with other programs you can usually you can do something like cp -r /var/spool/olduser/mailbox /var/spool/imap/newuser/mailbox

If you're not sure where the mail is stored should help you discover that.

Test that, lemme know how it works and I'll see if I can't help more =)
Old 11-24-2008, 02:28 PM   #3
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
A couple of possibilities (sorry, but I unclear as to whether you are using mbox or maildir format mailboxes):

1) I would expect you can simply concatenate on mbox to another.
2) Try restarting dovecot post copy to see if it regenerates it's indices.
3) Open the account yourself (or get the manager to do it) using a different mail client like Thnderbird and see if that forces a rebuild.
4) You may be able to force rebuild by deleting the index files.

I'd be trying these on a test account first.

Last edited by billymayday; 11-24-2008 at 02:30 PM.
Old 11-24-2008, 11:06 PM   #4
Registered: Apr 2008
Location: sydney
Distribution: centos5.2
Posts: 50

Rep: Reputation: 15
under my setting of postfix, I have a file call "virtual" and "virtual.db". It assigns all users/virtual-users to real-users. If the old salesman left, just assign his entries to sale-manager.
under, virtual_alias_maps = hash:/.../.../virtual


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
basic questions on hostname and domain name + related postfix questions Moebius Linux - Newbie 7 09-04-2007 11:50 AM
LXer: Questions Answered, Questions Posed - What Happened? LXer Syndicated Linux News 0 05-14-2007 02:46 PM
swaret, questions, questions!! BashTin Slackware 11 04-26-2007 03:37 AM
Solaris - Questions! Questions! Questions! qs_tahmeed Solaris / OpenSolaris 2 07-16-2005 05:27 AM
window manager questions and/or theme questions t3gah Linux - Software 2 02-27-2005 04:16 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration