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

Chris Wenn Chris.Wenn at rbg.vic.gov.au
Tue Sep 19 20:51:00 EDT 2006


My Perl knowledge is very little indeed! But surely there's a better way than hacking core RT modules?

Chris

Chris Wenn
IT Support Officer

Royal Botanic Gardens
Royal Botanic Gardens Melbourne
PH: (03) 9252 2354   FAX: (03) 9252 2442
EMAIL: Chris.Wenn at rbg.vic.gov.au 
WEB: http://www.rbg.vic.gov.au

>>> Andreas Putzo <putzoa at gmx.de> 19/09/2006 8:16:29 pm >>>
Hi,

On Sep 19, Chris Wenn wrote:
> 
> Has anyone got a way of restricting RT's autoreply function to a single domain?
> 
> I don't want users outside rbg.vic.gov.au to receive communication from my RT system.
> 
> It's v3.4.4, running on Ubuntu Dapper 6.06, with postfix, apache2 and mysql as the backend.
> 
> Chris

If you have a little knowledge of perl you may take a look at
lib/RT/Action/SendEmail.pm. Should not be too hard to match $TO
against your domain name and either rewrite the address or discard it.
This would be a nice feature IMO.

Perhaps using postfix's canonical maps may work, too. But i am not
sure whether it is possible to rewrite TO only if From matches your RT
email address.






More information about the rt-users mailing list