Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 want to set up an "internal only" mail server on a Linux machine. We need it for our integration test environment:

  • Our integration test server will send mail (via SMTP) to "...@localmail.lan"
  • The mail server must reject mail for all other recipient domains.
  • Our testers will fetch the mail via POP/IMAP over SSL. They don't have a unix account on the mail server. Each tester needs about 100 email aliases for their account.

There are lots of tutorials out there, but they usually set up a full Postfix server + a separate MDA (like Courier)? Aren't there easier options, as the server will never have to transfer mail to other mail servers?

(BTW, the server machine already runs a PostgreSQL instance - I could use this to store mails, if this is the easiest option to allow virtual accounts?)

share|improve this question

No there are no easier options. If you need a mail server then you need to install a mail server. If you need an IMAP server you need to install an IMAP server. If you can live with local mail storage then you do not need a RDBMS to store mails.

(You don't need Postfix and Courier. You need either of them as MTA/MDA. And Courier-IMAP or Dovecot as IMAP server.)

share|improve this answer
Can I have local mail storage without giving the users a unix account on the mail server? – Chris Lercher Sep 16 '11 at 9:17
Definitively. This is called virtual mailboxes as described in – mailq Sep 16 '11 at 23:28

I'd recommend enabling Dovecot and Postfix or Sendmail and going from there if you're looking for something quick. However, due to the large number of aliases you're working with, management would be a pain. Would something like a Zimbra install make more sense in this case?

share|improve this answer

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.