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
-
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
-
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
-
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
-
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
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....
=head1 TODO
Make the "subject munge string" configurable
=cut
It was discussed before...
http://forums.contribs.org/index.php?topic=34384.0
-
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
-
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
-
femc you have posted your problem already and please stop hijacking this tread.