Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

With Sendmail, I want to accept messages to addresses formatted like this:

And then write them all to a separate mail file on server, instead of appending to same one email file.

I am able to fetch all mail by adding bounce+* to /etc/mail/virtusertable, it saves to any given alias. But how to save each message to a different file ?


share|improve this question
up vote 1 down vote accepted

I'm not familiar with Sendmail but the solution is to store mails as Maildir and not as mbox.

But as this post reveals Sendmail is not able to do so. Fortunately they also provide the solution.

share|improve this answer
Thank you, I will try by saving to same one file and then try to read and filter that file. (I am trying to fetch bouncing subscribers). Can you tell me what is a reliable delimiter in the long email file that stores multiple received messages? By looking at the saved file, all emails start with "From ... etc .. date". Is that the best delimiter to look for? – adrianTNT Oct 4 '11 at 18:30
@adrianTNT Read the Wiki about mbox. There you find many references that all mails start with From: and how to handle mboxes. Mailbox locking is important, dangerous and tricky. – mailq Oct 4 '11 at 18:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.