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

I'm changing postfix installations from one installed years ago by people who are no longer here on an operating system which is no longer supported, and I'd like to get a sampling of real data from the existing postfix installation to test the new installation.

So, is there a way to get a copy of all e-mails going through a postfix saved somewhere?

Please note that most stress test tools I found out there are not adequate for our needs, because what most needs testing is how anti-spam and anti-virus are reacting, and the stress testers I found generate random data instead of using real samples.

share|improve this question

Previously on Stackoverflow

share|improve this answer
Not really what I want, but I'll keep it in mind. In particular, it won't send e-mail that is being held or rejected, which are the ones most important to me. – Daniel C. Sobral Dec 3 '10 at 20:38

Yes you can copy all mail i can give now example

If you instal in old server postfix in /home/vmail .. for example you have domains , , You can copy all domains with rsync in new server with root. After that you need to change grup like that. In new server on domain /home/vmail/ you have to make this chown vmail:vmail /home/vmail/ -Rf . You need laste command becouse only vmail have permition to write and read this folder . If root is owner on this folder you cant make anything.

share|improve this answer
Sorry, this isn't what I'm looking for. I have an SMTP relay, and I want a copy of all mail going through it. – Daniel C. Sobral Dec 3 '10 at 20: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.