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

  • Home
  • SEARCH
  • 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 8138467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:30:16+00:00 2026-06-06T11:30:16+00:00

The short version: I need to save mail from Exim to a networked directory,

  • 0

The short version: I need to save mail from Exim to a networked directory, but ideally I want to save these as unqiue files rather than appended to a mailbox.

The long version: I have a PHP script which parses mail. Currently this is located on the same box as the mail server, allowing me to pipe the mail directly to the PHP script – easy.

Soon my mail server will be hosted on a separate (connected over NFS) server. My initial plan was to simply create a symlink to the mailbox, and schedule the script to parse the mail via cron, deleting mail after it has been parsed.

The problem is that the mail is stored in mbox format, ie appended into a single file. With PHP unable to reliably use file locks over NFS, I’m worried that my script will trash new mail which arrives during execution.

So – instead of writing mail to a single file, can I get Exim to save each mail into a separate file?

Thanks for any advice.

  • 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-06-06T11:30:17+00:00Added an answer on June 6, 2026 at 11:30 am

    In short, you use use maildir for your mailboxes instead of mbox.

    Take a look at this how-to on Exim4 and Maildir setup.

    Something else you can do, is use the PHP IMAP extension to access your local mail server. This way, each message would be parsed independently as well, and allow you to access individual files without changing your mail server configuration.

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

Sidebar

Related Questions

Short Version: I have 7 SSISDeploymentManifest files I need to run. Is there a
Short version: How can I map two columns from table A and B if
Short version: For a cache class I need to get notified if an object
Short Version I have a list of int s that I need to figure
Short version of what I want to accomplish : I have a foot pedal
Possible Duplicate: Getting a value from HttpServletRequest.getRemoteUser() in Tomcat without modifying application Short version:
Short version: How can I get a regex that matches a@a.aaaa but not a@a.aaaaa
Short version: assuming I don't want to keep the data for long, how do
The short version: do I need to do something tricky to get JDialog's setMaximumSize()
Short version: I need mysql code that will change [href=http://a-random-domain.com]hyperlink[/href] into <a href=http://a-random-domain.com>hyperlink</a> without

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.