[rt-users] Re: Can I restrict autoreplies to the local domain?

Gary Hall hall at fas.sfu.ca
Wed Sep 20 13:12:21 EDT 2006


I neglected to say in my original email that we identify the source of the
email using procmail prior to piping incoming email messages to rt-mailgate.

E.g, if there's an account "helpdesk" to which users send help requests,
in ~helpdesk/.procmailrc:

...
# Messages from inside go to internal queue
:0
* ^From: .+@(.+\.)*mysite\.ca>?$
{
   * ^TOhelpdesk_cmt@
   |/opt/rt3/bin/rt-prodn-mailgate --queue "Internal" --action comment --url 
https://helpdesk.sfu.ca/

   # By default, messages are assumed to be correspondence to the main queue
   :0
   |/opt/rt3/bin/rt-prodn-mailgate --queue "Internal" --action correspond 
--url https://helpdesk.sfu.ca/
}
# Remaining messages are from outside
:0 E
{
   :0
   * ^TOhelpdesk_cmt@
   |/opt/rt3/bin/rt-prodn-mailgate --queue "External" --action comment --url 
https://helpdesk.sfu.ca/

   :0
   |/opt/rt3/bin/rt-prodn-mailgate --queue "External" --action correspond
--url https://helpdesk.sfu.ca/
}





> ------------------------------------------------------------------------
> 
> Subject:
> [rt-users] Re: Can I restrict autoreplies to the local domain?
> From:
> "Chris Wenn" <Chris.Wenn at rbg.vic.gov.au>
\
> 
> Hm
> 
> Has potential for my situation, but I'm trying to figure out how you actually _identify_ the mail coming from other domains. I suppose what I want is something simple that says "if the mail is from rbg.vic.gov.au, autoreply. if not, don't autoreply but continue processing as normal" but my perl-fu is too weak to figure it out!
> 
> Chris

> 
>>>> Gary Hall <hall at fas.sfu.ca> 20/09/2006 2:38:24 am >>>
> We divert all incoming mail from outside the domain to a separate queue
> and enable autoreply only on the internal queue. (I.e., we removed the
> global autoreply scrips and recreated them on the internal queue.)
> 
> We're a help-desk operation serving internal users who sometimes send
> requests from external email accounts. Such requests get moved to the
> internal queue and the Respondor value is corrected to the internal
> account name for the user.
> 
> All remaining tickets in the external queue are spam and dealt with
> accordingly.
> 
> Gary
> 


-- 
Gary Hall hall at fas.sfu.ca   | Voice (604) 291-5925
Faculty of Applied Sciences | Fax   (604) 291-5404
Simon Fraser University     |
Burnaby, B.C.  V5A 1S6      |



More information about the rt-users mailing list