Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: femc on January 20, 2007, 06:04:55 AM

Title: change the spam tagging from ***SPAM*** to eg [[SPAM]]
Post by: femc on January 20, 2007, 06:04:55 AM
how can i change the tag line from ***SPAM*** to eg [[SPAM]]

Reason behind : I get often emails which are spam tagged with ***SPAM*** in the subject line, genuine emails. But my OE client sorts this into my clients spam folder.

hdmueller
femcfemc@singnet.com.sg
Title: Re: change the spam tagging from ***SPAM*** to eg [[SPAM]]
Post by: mrjhb3 on January 20, 2007, 08:58:28 AM
Quote from: "femc"
how can i change the tag line from ***SPAM*** to eg [[SPAM]]

Reason behind : I get often emails which are spam tagged with ***SPAM*** in the subject line, genuine emails. But my OE client sorts this into my clients spam folder.

hdmueller
femcfemc@singnet.com.sg


On my test server, here is what I see:

config show spamassassin
spamassassin=service
    DNSAvailable=yes
    MessageRetentionTime=90
    OkLanguages=all
    OkLocales=all
    RejectLevel=0
    ReportSafe=0
    Sensitivity=medium
    SkipRBLChecks=0
    SortSpam=enabled
    Subject=[SPAM]
    SubjectTag=enabled
    TagLevel=5
    UseBayes=0
    status=enabled

more /etc/mail/spamassassin/local.cf
#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://wiki.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
dns_available yes
internal_networks 10.10.10.1
lock_method flock
ok_languages all
ok_locales all
bayes_path /var/spool/spamd/.spamassassin/bayes
bayes_file_mode 750
auto_whitelist_path /var/spool/spamd/.spamassassin/auto-whitelist
auto_whitelist_file_mode 750
report_safe 0
required_hits 5
rewrite_header Subject [SPAM]
skip_rbl_checks 0
clear_trusted_networks
trusted_networks 10.10.10.1 127.
use_auto_whitelist 0
use_bayes 0

If you have something different then
config setprop spamassassin Subject [SPAM]

make sure in server-manager/e-mail, you have modify subject of spam messages set to enabled.  If not, set it, if so, then click save so the new db value will be saved.  Then check your above files again, and I believe that should give you what you wanted.  This is the first time I have looked at this panel with any detail.  I thought you could set you subject there as well, but you can't.

John
Title: sorry - this does not work
Post by: femc on January 20, 2007, 12:34:32 PM
sorry - when doing as outlined above, the result I am getting is the same.
...
Subject=[SPAM]
...

but the spam em received is tagged as ***SPAM***

Somebody any other proposal ?

hdmueller
femcfemc@singnet.com.sg
Title: Re: sorry - this does not work
Post by: william_syd on January 20, 2007, 03:03:02 PM
Quote from: "femc"
sorry - when doing as outlined above, the result I am getting is the same.
...
Subject=[SPAM]
...

but the spam em received is tagged as ***SPAM***

Somebody any other proposal ?

hdmueller
femcfemc@singnet.com.sg


Sound like a bug....

Change something in
/usr/share/qpsmtpd/plugins/spamassassin
in particular
Code: [Select]
sub check_spam_munge_subject {
  my ($self, $transaction) = @_;
  my $score = $self->get_spam_score($transaction) or return DECLINED;  

  return DECLINED unless $score >= $self->{_args}->{munge_subject_threshold};

  my $subject = $transaction->header->get('Subject') || '';
  $transaction->header->replace('Subject', "***SPAM*** $subject");

  return DECLINED;
}


And notice this bit....
Code: [Select]
=head1 TODO

Make the "subject munge string" configurable

=cut


It was discussed before...
http://forums.contribs.org/index.php?topic=34384.0
Title: thanks - that works
Post by: femc on January 20, 2007, 03:31:11 PM
yes - that works, just replace in the file ***SPAM*** with [SPAM]

after that it is necessary to do :
signal-event email-update
svc -t /service/qpsmtpd

hdmueller
Title: for local mail delivery need to activate /etc/startmail
Post by: femc on January 21, 2007, 11:59:24 AM
I have the setup

1) force all outgoing email connections via the sme ( the fetchmail contribs from schirrms.net ), and the clients send the outgoing emails to the sme which then sends it out immediately. This works well.

2) in order to send local mail in my virtual lan, I did set up a MX-backup ( from schirrms net ) with domain name mail.myvirtualname.com. However the local mail delivery is only done after /etc/startmail

Questions

a) there must be some kind of 'outbox' for the local delivery - where is location ?

b) how to make the local delivery immediately + automatically.

PS : My mail-server is close to finishing, and once it is tested, maybe I write a min-howto on it.

hdmueller
femcfemc@singnet.com.sg
Title: change the spam tagging from ***SPAM*** to eg [[SPAM]]
Post by: bpivk on January 21, 2007, 12:32:47 PM
femc you have posted your problem already and please stop hijacking this tread.