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'd like to have postfix relay incoming email to one of 5 possible recipients in a somewhat random - or at least evenly distributed way.

for example, when a message addressed to arrives at the postfix server, i'd like that message to be related to one of :,,,, or

each incoming message would go to one of the adminX addresses and all messages would be load balanced across all 5 evenly(ish).

is that doable?



share|improve this question

No, postfix can't do that by itself. A procmail filter might help, but why not set up a real ticketing system where you can track progress of issues, share them and make sure things proceed when an admin goes on holiday?

OTRS is a decent ticketing system for smaller environments. Atlassian JIRA is good too, but rather expensive. There are other options too of course :)

share|improve this answer
Jira is not a troubleticketing system. I'd suggest RT4 for the easiest to use and set up. – adaptr Jan 28 '13 at 9:51
Jira is definitely useful as a ticketing system. Or at least my 170000 tickets think so :) I find RT more an exercise in masochism than a ticketing system, though I've not used RT4 yet. – Dennis Kaarsemaker Jan 28 '13 at 9:56
But it is a bugtracker. It has no sane options to control ticket flows without re-programming the whole damn thing. – adaptr Jan 28 '13 at 10:24
You mean RT4 right? :) – Dennis Kaarsemaker Jan 28 '13 at 10:42
Argh burble urgh – adaptr Jan 28 '13 at 11:34

You might be able to send to a common address and then program procmail to do something like this.

share|improve this answer

If you are interested in commercial solution I can add this feature to MSH Traffic Policy - server side rules for automatic content control and flow administration for Postfix and Sendmail.

Application has big potential, so if you want to try it, let me know.

share|improve this answer

I definitely agree with the need to have a real ticket system...if that is what you are trying to do.

That being said, you CAN do this by using a combination of postfix and haproxy. You will need to setup multiple instances of postfix (take a look at the "postmulti" command), one for each user you need to include. You then have each instance send all it's mail to one user (lookup the luser_relay in the Postfix configuration docs.)

Once you have multiple instances setup and running on different posts (all must run on something other than 25), setup haproxy on port 25 and have it load balance between the instances.

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.