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'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 help@domain.com arrives at the postfix server, i'd like that message to be related to one of : admin1@domain.com, admin2@domain.com, admin3@domain.com, admin4@domain.com, or admin5@domain.com.

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

share|improve this question
add comment

4 Answers

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 you...you... –  adaptr Jan 28 '13 at 11:34
add comment

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

share|improve this answer
add comment

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
add comment

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
add comment

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.