1

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 [email protected] arrives at the postfix server, i'd like that message to be related to one of : [email protected], [email protected], [email protected], [email protected], or [email protected].

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?

thanks,

Me

3 Answers 3

3

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 :)

5
  • Jira is not a troubleticketing system. I'd suggest RT4 for the easiest to use and set up.
    – adaptr
    Jan 28, 2013 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. Jan 28, 2013 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, 2013 at 10:24
  • You mean RT4 right? :) Jan 28, 2013 at 10:42
  • Argh burble urgh you...you...
    – adaptr
    Jan 28, 2013 at 11:34
0

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

0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .