Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 610993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:44:08+00:00 2026-05-13T17:44:08+00:00

This is not technically a programming question but perhaps someone can help me. Yes,

  • 0

This is not technically a programming question but perhaps someone can help me. Yes, it’s totally off topic, but i’m desperate for help as I’m no expert at this type of thing.

We had a problem on our mail server over the weekend and upon updating postfix, i noticed that mail was no longer being delivered to the /home/$user/Maildir/ as defined by the alias map. We have now fixed that, and mail is getting delivered, but previous mail that was not being delivered to mailboxes was stacking up in the spool in /var/mail as flat files containing email data.

I would like to get postfix (or whatever other program … from postfix i use procmail to filter) to go through those files again and deliver to the appropriate mailbox. I have tried ‘postqueue -f’ but that hasn’t done anything. ‘mailq’ obviously says that the mail queue is empty.

Can anyone help?? 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:44:08+00:00Added an answer on May 13, 2026 at 5:44 pm

    Nevermind, problem solved, I hope this helps someone else.
    After much searching, this is the method that works. Your paths may be different.

    it is user specific, depending on how your server is set up. So if you have multiple users. So:

    1) Log in as user. I called my test user ‘testytest’ … don’t ask

    cp /var/mail/testytest ~/send-testytest
    cat ~/send-testytest | formail -s procmail
    rm ~/send-testytest
    

    2) Log in as root

    rm /var/mail/testytest
    

    That should work. I hope it helps anyone struggling with this!

    First we make a copy of the mail spool file in question. This is apparently to prevent an infinite processing loop. We read the whole mail file, and then with that we use formail, which comes with procmail, to re-process. It will then use procmail to distribute as it would normally. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 373k
  • Answers 373k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer RewriteRule's R[=code] flag allows code only from range 300-400. Don't… May 14, 2026 at 7:30 pm
  • Editorial Team
    Editorial Team added an answer CREATE TABLE `user` ( `id` INT auto_increment PRIMARY KEY, `name`… May 14, 2026 at 7:30 pm
  • Editorial Team
    Editorial Team added an answer You should choose in your parent composite for example FillLayout.… May 14, 2026 at 7:30 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.