Use procmail to handle OTRS requests instantly instead of POP3/fetch
Do you want to have OTRS react instantly instead of however often fetchmail/PostMaster.pl runs?
The answer is procmail (on Linux).
This is what I did to make it work for my default postfix system:
- rename .procmailrc.dist to .procmailrc (if it wasn't already)
- You may need to modify .procmailrc to have a proper SYS_HOME (maybe /opt/otrs?)
- add an alias for root in /etc/aliases to a "real" address
- run newaliases as root
- edit /etc/postfix/main.cf and make sure this line is in there:
mailbox_command = /usr/bin/procmail (or your own path)
- restart postfix
emails sent to otrs@otrsserver will (should?) now instantly be handled by procmail/OTRS. Have the box that you're fetching mail forward to the OTRS account. --Crythias 15:58, 10 May 2010 (UTC)
I should mention that if you can't send an email directly to the otrs server, this won't work for you. If you simply want the fetching to go faster, change the /10 (every ten minutes) in the crontab to something like /3. --Crythias 02:35, 29 May 2010 (UTC)