[rt-users] Blacklist is not working on 3.6.1

Mathew theillien at yahoo.com
Mon Nov 20 23:11:00 EST 2006


Thanks.  That could come in handy.

Mathew

Raed El-hames wrote:
> This is to prevent RT from emailing defined addresses, by default RT
> does not mail it self and mailer daemons etc
> One of the our guys few years back expanded the functionality into a
> config variable in RT_SiteConfig eg:
> Set($Blacklist, 'emailaddress at 1.net , 2 at 3.net,postmaster at whatever,
> ^mailer-daemon@* ')
> and for (3.6.1) edit lib/Action/SendEmail_Vendor.pm
> change near line 585 :
> ##########################
> my $squelch =
>          $self->TransactionObj->Attachments->First->GetHeader(
>            'RT-Squelch-Replies-To');
> 
>        if ($squelch || $RT::Blacklist) {
>            @blacklist = split( /,/, $squelch );
>            push (@blacklist,split (/,/, $RT::Blacklist)) if
> ($RT::Blacklist);
>        }
>    }
> 
>    # Let's grab the SquelchMailTo attribue and push those entries into
> the @blacklist
> ###########################
> 
> When you need to block RT mailing an address, you edit RT_SiteConfig and
> restart the web server, which is not desirable and possibly look to move
> it into a table within RT.
> Roy
> -- Original Message ----- From: "Stephen Turner" <sturner at MIT.EDU>
> To: "'Mathew'" <theillien at yahoo.com>; "'Roy El-Hames'" <rfh at pipex.net>
> Cc: "'RT Users'" <rt-users at lists.bestpractical.com>
> Sent: Monday, November 20, 2006 7:25 PM
> Subject: RE: [rt-users] Blacklist is not working on 3.6.1
> 
> 
>>
>>> -----Original Message-----
>>> From: Mathew [mailto:theillien at yahoo.com]
>>> Sent: Monday, November 20, 2006 2:22 PM
>>> To: Roy El-Hames
>>> Cc: sturner at MIT.EDU; 'RT Users'
>>> Subject: Re: [rt-users] Blacklist is not working on 3.6.1
>>>
>>> No worries.  Perhaps you could elaborate on what you've done
>>> so perhaps
>>> the rest of us might use it if it is useful to us.
>>>
>>> Mathew
>>>
>>
>> Yes, that was going to be my next question! We are interested in
>> implementing some kind of blacklist functionality, so it would be
>> interesting to see just how it works.
>>
>> Thanks,
>> Steve
>>
>>
>> _______________________________________________
>> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>>
>> Community help: http://wiki.bestpractical.com
>> Commercial support: sales at bestpractical.com
>>
>>
>> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
>> Buy a copy at http://rtbook.bestpractical.com
>>
>>
>> -- 
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.1.409 / Virus Database: 268.14.10/541 - Release Date:
>> 20/11/2006
>>
>>
> 
> 
> 




More information about the rt-users mailing list