[rt-users] using procmail to filter autoreply for RT

Mary Steiner steiner.mary at gmail.com
Thu May 3 14:39:27 EDT 2007


Hi,
I am trying to filter email sent to rt due to out of office autoreplies.


*I have an aliases set up in /etc/aliases as:*
IT.Help: "|/usr/bin/procmail -m /usr/local/etc/procmail/rt.rc"

My rt.rc file has permissions 644

*My rt.rc files looks like:*
PATH=/usr/local/bin:/bin:/usr/bin
LOGFILE=/var/log/procmail.log

#procmailrc recipe for dropping mail matching a string anywhere in the
header
:0 h
* auto-replied (zimbra; vacation)
/dev/null
#end of recipe
:0w
| /opt/rt3/bin/rt-mailgate --url http://rt.mydomain.com/ --queue IT.Help --
action correspond


*The error message I receive when sending email to
**it.help at mydomain.com*<it.help at mydomain.com>
* is:*
----- The following addresses had permanent fatal errors -----
"|/usr/bin/procmail -m /usr/local/etc/procmail/rt.rc"
(reason: Can't create output)
(expanded from: <it.help at rt.mydomain.com>)

----- Transcript of session follows -----
procmail: Couldn't read "/usr/local/etc/procmail/rt.rc"
550 5.0.0 "|/usr/bin/procmail -m /usr/local/etc/procmail/rt.rc"... Can't
create output

I am not sure which user procmail is trying to run rt.rc as, but I have a
feeling that my error message is related to who the user is that is running
rt.rc.

Any ideas are appreciated!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070503/5784a980/attachment.htm>


More information about the rt-users mailing list