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

My helpdesk system doesn't allow to filter by email. Some users send helpdesk tickets from their personal accounts by accident. I would like to make sure that only emails coming from will be forwarded. Every other mail account needs to be unaffected by this "filter".

My mailserver runs postfix on opensuse. Any idea how I could do that?

share|improve this question

I would use procmail.

Setup a .procmailrc for your helpdesk account.

# .procmailrc
# routes incoming mail to appropriate mailboxes

# Put mail from into default RT queue
* ^From: .+@domain\.com
| /usr/local/rt3/bin/rt-mailgate --queue default --action correspond --url http://localhost/

All you need to do is create a file called .forward in the helpdeskuser home dir that looks like this:

"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #helpdeskuser"

share|improve this answer
Thank you. I'll check it out. – user58613 Jun 2 '11 at 18:57

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.