RT3 and SpamAssassin?

Hi,
Is there an easy way to get RT3 to work with SpamAssassin? I
tried modifying Email.pm to add “Filter::SpamAssassin” in front
of “Auth::MailFrom”, but I got an error. Before I go digging, I
thought I’d make sure that this is supposed to work (since I
found very little information on it). :slight_smile:
…thnx,
…dave alden

ps Sorry, I don’t remember the error, but that shouldn’t matter
since I’m only asking if this is supposed to be possible,
not for assistance with the error. :slight_smile:

On Wed, Mar 26, 2003 at 04:37:33PM -0500,
Dave Alden alden@math.ohio-state.edu is thought to have said:

Hi,
Is there an easy way to get RT3 to work with SpamAssassin? I
tried modifying Email.pm to add “Filter::SpamAssassin” in front
of “Auth::MailFrom”, but I got an error. Before I go digging, I
thought I’d make sure that this is supposed to work (since I
found very little information on it). :slight_smile:
…thnx,
…dave alden

ps Sorry, I don’t remember the error, but that shouldn’t matter
since I’m only asking if this is supposed to be possible,
not for assistance with the error. :slight_smile:

Why try to integrate into RT? Why not do it at the MTA level? Plenty of
integrations already exist for the various mail servers RT works with.

Tabor J. Wells rt@fsckit.net
Fsck It! Just another victim of the ambient morality

On Wed, Mar 26, 2003 at 04:37:33PM -0500,
Dave Alden alden@math.ohio-state.edu is thought to have said:

Is there an easy way to get RT3 to work with SpamAssassin?
[snip]
Why try to integrate into RT? Why not do it at the MTA level? Plenty of
integrations already exist for the various mail servers RT works with.

  • One may not control the MTA that RT uses.

  • For policy or technical reasons, one may not want to run SA for all
    users or at the MTA level (I know, all_spam_to can work around some of
    this)

hth,

– Bob

The answer here is “yes”

perldoc rt-mailgate should have information on mail gateway plugins.
As a bonus, a spamassassin plugin ships with RT, though it’s not used by
default.On Wed, Mar 26, 2003 at 04:16:06PM -0600, Bob Apthorpe wrote:

On Wed, 26 Mar 2003, Tabor J. Wells wrote:

On Wed, Mar 26, 2003 at 04:37:33PM -0500,
Dave Alden alden@math.ohio-state.edu is thought to have said:

Is there an easy way to get RT3 to work with SpamAssassin?
[snip]
Why try to integrate into RT? Why not do it at the MTA level? Plenty of
integrations already exist for the various mail servers RT works with.

  • One may not control the MTA that RT uses.

  • For policy or technical reasons, one may not want to run SA for all
    users or at the MTA level (I know, all_spam_to can work around some of
    this)

hth,

– Bob


rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

http://www.bestpractical.com/rt – Trouble Ticketing. Free.

Hi,
Ok, then now I’m asking for help. :slight_smile: I’m not really sure where the
proper place to define RT::MailPlugins is, so I modified Email.pm and
put it in there (where is the best place to do this?). I replaced:

push @RT::MailPlugins, "Auth::MailFrom"   unless @RT::MailPlugins;

with

@RT::MailPlugins = (
    "Filter::SpamAssassin",
    "Auth::MailFrom"
    );

Email now bounces back with a webpage. There’s a ton of HTML, followed
by a “raw error” message, a bunch of
's and then:

No GetCurrentUser code found in module at /home/rt3/lib/RT/Interface/Email.pm line 466.

Trace begun at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Exceptions.pm line 90
HTML::Mason::Exceptions::ANON(‘No GetCurrentUser code found in module at /home/rt3/lib/RT/Interface/Email.pm line 466.^J’) called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 283
HTML::Mason::Request::ANON(‘No GetCurrentUser code found in module at /home/rt3/lib/RT/Interface/Email.pm line 466.^J’) called at /home/rt3/lib/RT/Interface/Email.pm line 466

etc…

Help?

…thnx,
…dave

Dave Alden wrote:

Ok, then now I’m asking for help. :slight_smile: I’m not really sure where the
proper place to define RT::MailPlugins is, so I modified Email.pm and
put it in there (where is the best place to do this?). I replaced:

RT_SiteConfig.pm.

No GetCurrentUser code found in module at
/home/rt3/lib/RT/Interface/Email.pm line 466.

Odd. What RT version?
�|� http://www.bestpractical.com/rt – Trouble Ticketing. Free.