Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to configure Postfix in out dev and stage environment to only save the emails like Papercut and Neptune?

It's very important that the actual emails are not sent but only saved, to be able to check them as part of the QA work.

share|improve this question

2 Answers 2

Use a regular expression map to rewrite all recipients. As long as your email is submitted via SMTP, this will suffice.

In main.cf

virtual_alias_maps = regexp:/etc/postfix/recipients

In /etc/postfix/recipients


\#user@example.com is a mailbox where QA will receive email
/.+/   user@example.com
share|improve this answer

Why setup a fully fledged mail server you could just use python to do that.

python -m smtpd -n -c DebuggingServer localhost:25 | tee emails.log
share|improve this answer
    
That's a neat solution for simple email debugging, but we need some other features such as: * Beeing able to clear the inbox * Beeing able to imap the mail to check html-mails and attachements –  orjan Aug 19 '10 at 5:13

Your Answer

 
discard

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.