procmail
[Top] [All Lists]

Using procmail with no home directory

2005-01-24 17:12:01

We have a helpdesk application that works as follows (it is Request Tracker, if anyone is familiar)... you send email to helpdesk(_at_)wherever(_dot_)edu, and on the mail server there is a script rt-mailgate, which takes as input an email and then converses with RT's web interface to create a new ticket. So, in the mail server's /etc/aliases file, you have helpdesk: "|/usr/bin/rt-mailgate" (there are some params to the script, but not important here).

Lately, a lot of spam has been hitting our helpdesk email address, creating bogus helpdesk tickets. Our email server already uses Spam Assassin to tag likely spam, so now all I need to do is filter on that spam score. What I don't know how to do is how to use procmail in an environment where there is no home directory - there is no /home/helpdesk or anything, so I can't have a .procmail rules file, I guess I would need to use it more as a script called from the aliases file. Are there examples or documentation for this? I'm not having much luck with my Googling. I guess what I want is:

postfix --> procmail --> rt-mailgate or /dev/null based on spam header scores

but I have no idea where I'd put the procmail rule. There's no home directory for 'helpdesk', and I don't think I want it in any sort of global /etc/procmailrc and have to check that rule for every piece of mail that comes in, checking if it is for the helpdesk (well under 1% of mail is for helpdesk).

I'm using postfix as the MTA, but I don't think that postfix has a facility for doing what I need without a filter-capable MDA like procmail.

Thanks,
Fran


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>