postfix / procmail question

Discussion in 'Installation/Configuration' started by wr19026, Dec 18, 2006.

  1. wr19026

    wr19026 New Member

    I posted this in the general linux forum as well but maybe this is a more appropriate place to ask...

    I have an Ubuntu 6.06 server with ISPConfig.

    Today one of the harddisks started giving some problems so I had to reboot the server a few times.

    When I look in /var/mail, there are mails from earlier today that have not been delivered to the intended recipients. New mails do arrive as expected.

    Question:
    What can I do to trigger the correct delivery of the mails stuck in /var/mail/web(x)_user1 to /var/www/web(x)/user/web(x)_user1/Maildir/

    Thanks in advance.
     
  2. falko

    falko Super Moderator ISPConfig Developer

  3. wr19026

    wr19026 New Member

    The problem is that the Maildirs already exist; won't using mb2md overwrite the existing Maildir?

    Edit: It worked and here's how I did it:
    - used a fake account with no mail to import to (mb2md -s /var/mail/web[x]_[user] -d /var/www/web4/user/web[x]_postmaster/Maildir
    - used mailclient to move the messages to the correct Maildirs

    Question remains though: what would happen if I could not do that - would I have to import them to something like postmaster and do a forward from there?
     
    Last edited: Dec 18, 2006
  4. falko

    falko Super Moderator ISPConfig Developer

    Forwarding doesn't work because no mailserver is involved when mb2md is called. mb2md write directly to the files.
     

Share This Page