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

as said above I want to create temporary email addresses which only forward a received message to another (external) email address. When possible without haveing to store the entire mail on the server. Can that be realized? Thanks in advance for your comments.

I'm using qmail on Debian etch and want to store the aliases inside a database (mysql or maybe redis). It would be enough when I get a rough prototype working. Working out specifics like file/db IO, security or performance is secondary in the first step.


share|improve this question

Besides using static aliases it's quite easy to configure a .qmail-default file as a catch-all which calls a script doing lookups and forward your mails accordingly. Here's a well-known example:

In your lookup program, you can easily used environment variables set by qmail to identify the address catched by the catch-all; in this case the DEFAULT environment variable which matches the address the catch-all catched.

Regarding "without haveing to store the entire mail on the server": The mail will not go into any local Maildir, but for sure qmail will have to store it in its queue - there's no way around that. I don't know the exact reason why you don't want the mail to be stored on the server. If you tell us your concrete problem, maybe we'll be able to address it in some other way.

share|improve this answer

Just create some aliases in your qmail configuration. See on how to do it.

share|improve this answer

Your Answer


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