Disabling Autoresponder to specific addresses

Hi there,

Is it possible to disable the Autoresponder in RTIR/RT3 so that it will
not autorespond to a specific address? Failing that is it possible to
disable autoresponding all together?

Jarrod Loidl
IT Security of Infrastructure Services,
Information Technology Services, Monash University - Clayton
Phone: +61 3 99052055 Fax: +61 3 99054746

Hi,

Is it possible to disable the Autoresponder in RTIR/RT3 so that it will
not autorespond to a specific address? Failing that is it possible to
disable autoresponding all together?

If you want to disable the Autoresponder, you just delete the
“Autoreply” scrip, and your system won’t reply any mail.

Cheers,
Carlos

Carlos Fuentes Bermejo carlos@cert.ja.net
JANET-CERT

Jarrod Loidl wrote:

Is it possible to disable the Autoresponder in RTIR/RT3 so that it will
not autorespond to a specific address? Failing that is it possible to
disable autoresponding all together?

I am currently looking at the other way round (only send an auto-reply
if the recipient has a corporate email address). It should be easy
enough as you only need to copy over /opt/rt3/lib/RT/Action/Autoreply.pm
to /opt/rt3/local/lib/RT/Action/MyAutoreply.pm, register the new Action,
change all scripts with “Autoreply” to “MyAutoreply” and set the
recipients only if they match a certain pattern (probably something to
import from RT_SiteConfig.pm). Note that this might generate warnings
about empty recipient lists.

sub SetRecipients {
my $self=shift;
my $recipient = $self->TicketObj->Requestors->MemberEmailAddresses;

 push(@{$self->{'To'}}, $recipient) if($recipient =~ 

/$RT::autoreplypattern/oi);

 return(1);

}

and RT_SiteConfig.pm:

$autoreplypatter = ‘@(host.)?my.domain’;

It’s on my “to-do” list, so the above is not tested.

Best regards,

Ruediger Riediger

Dr. Ruediger Riediger Sun Microsystems GmbH
NSG - SunCERT Komturstr. 18a
mailto:Ruediger.Riediger@Sun.com D-12099 Berlin
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
PGP 2048RSA/0x2C5020E9 964C E189 0FF0 8882 2BAB 65E2 6912 1FF2

Jarrod Loidl wrote:

Is it possible to disable the Autoresponder in RTIR/RT3 so that it will
not autorespond to a specific address? Failing that is it possible to
disable autoresponding all together?

Ruediger Riediger wrote:

[…] need to copy over /opt/rt3/lib/RT/Action/Autoreply.pm
to /opt/rt3/local/lib/RT/Action/MyAutoreply.pm, register the new Action,
change all scripts with “Autoreply” to “MyAutoreply” and […]

even more easy :slight_smile:

drop the attached into /opt/rt3/local/lib/RT/Action/Autoreply_Local.pm,
then set in RT_SiteConfig.pm:

Set($AllowAutoReplyRegexp, ‘@([\w.-]+.)?your-domain.com$’);
Set($DenyAutoReplyRegexp,
‘^(Post(ma?(st(e?r)?|n)|of|ficl)|(send)?Mail(er)?|daemon|m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)|NETSERV|o(wner|ps)|r(e(quest|sponse)|oot)|b(ounce|bs.smtp)|echo|mirror|s(erv(ices?|er)|mtp(error)?|ystem)|A(dmin(istrator)?|MMGR|utoanswer))@’);

This will send only autoreplies to requesters matching your Allow
pattern and will further exclude your Deny pattern (Deny is current
DAEMON description from procmail). Obviously, Allow and Deny are ignored
if not set.

Note: this has not yet been tested completely.

Best regards,

Ruediger Riediger

Dr. Ruediger Riediger Sun Microsystems GmbH
NSG - SunCERT Komturstr. 18a
mailto:Ruediger.Riediger@Sun.com D-12099 Berlin
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
PGP 2048RSA/0x2C5020E9 964C E189 0FF0 8882 2BAB 65E2 6912 1FF2

Autoreply_Local.pm (592 Bytes)