1

Topic: Remove "*** SPAM ***" mark in subject for incoming mails

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version:  ubuntu trusty
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello iRedMail community!

I want to remove the "*** SPAM ***" mark from incoming mails.

I've searched the following configuration folders and found nothing:

/etc/spamassassin/
/etc/amavis/
/opt/iredapd/
/usr/share/spamassassin/
/usr/share/amavis/

Where can I find the setting and disable the change of the subject?

Kind regards and thank you in advance,
Benjamin

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Remove "*** SPAM ***" mark in subject for incoming mails

*) In /etc/amavis/conf.d/50-user, comment out below parameter (or set it to empty value).

$sa_spam_subject_tag = '***Spam*** ';

*) if you're running iRedMail-0.9.7 (fresh installation), you may need to update SQL table "amavisd.policy" also.

3

Re: Remove "*** SPAM ***" mark in subject for incoming mails

Hey Zhang,

thank you for your quick answer. The setting in the amavis config file can't be the setting, since we're getting whitespaces in the subject.

Subject: "*** SPAM ***"
Config: "***Spam***"

We'll take a look at the MySQL table now and report back if this is succesfull.

4

Re: Remove "*** SPAM ***" mark in subject for incoming mails

Hello again,

we had a look at the table and it has 4 entries, 3 of them are settings for specfic adresses. The entry for our whole domain is full of NULL values. I can provide a SQL-Dump or SELECT if needed, but I can't find "*** SPAM ***" there either. Could you maybe direct us in the right direction on what to do?

Kind regrads,
Benjamin

5

Re: Remove "*** SPAM ***" mark in subject for incoming mails

igot2b wrote:

thank you for your quick answer. The setting in the amavis config file can't be the setting, since we're getting whitespaces in the subject.

Did you check "$sa_spam_subject_tag" in /etc/amavis/conf.d/50-user?

6

Re: Remove "*** SPAM ***" mark in subject for incoming mails

Hello Zhang,

we set the following on our server:

211 # Modify email subject, add '$sa_spam_subject_tag'.
212 #   0:  disable
213 #   1:  enable
214 $sa_spam_modifies_subj = 0;

The following message is generated when restarting the amavis service:


Stopping amavisd: amavisd-new.
Starting amavisd: Variable $sa_spam_modifies_subj was retired, changing its value has no effect. See release notes.
at /etc/amavis/conf.d/50-user line 214.
amavisd-new.

Kind regards,
Benjamin

7

Re: Remove "*** SPAM ***" mark in subject for incoming mails

PLEASE READ MY PREVIOUS REPLY, IT'S "$sa_spam_subject_tag", not "$sa_spam_modifies_subj".

8

Re: Remove "*** SPAM ***" mark in subject for incoming mails

Hello Zhang,

the setting $sa_spam_subject_tag is not present in 50-user, only in 20-debian_defaults.

I commented it out there, restarted amavisd and will report back if it worked.

Kind regards,
Benjamin

9

Re: Remove "*** SPAM ***" mark in subject for incoming mails

Hello Zhang,

I'm still getting mails with the "*** SPAM ***" mark after commenting out the line in 20-debian_defaults.
I've copied the setting to 50-user and removed everything within the pranthesis and restarted amavisd.

I'll report back again if that worked. If you've got any other suggestions please let me know.

Kind regards,
Benjamin

10

Re: Remove "*** SPAM ***" mark in subject for incoming mails

Hello Zhang,

this also didn't work. Have you got any other ideas?

Since we've got provided with an external Anti-Virus/Anti-Spam solution, can we disable / remove amavisd / spamasassing if we can't get this working?

Kind regards,
Benjamin

11

Re: Remove "*** SPAM ***" mark in subject for incoming mails

Instead of commenting out "$sa_spam_subject_tag", please set this value to empty string in 50-user, restart amavisd and try again.

$sa_spam_subject_tag = undef;    # undef means 'undefined'

12 (edited by igot2b 2017-10-11 19:22:16)

Re: Remove "*** SPAM ***" mark in subject for incoming mails

Hi Zhang,

our /etc/amavis/conf.d/50-user part looks like this now:

214 $sa_spam_modifies_subj = undef;
215
216 #remove spam tag from subject
217 $sa_spam_subject_tag = '';

I'll report back if this works.

EDIT: The following warning was shown when restarting amavisd.

Starting amavisd: Variable $sa_spam_modifies_subj was retired, changing its value has no effect. See release notes.
 at /etc/amavis/conf.d/50-user line 214.

13

Re: Remove "*** SPAM ***" mark in subject for incoming mails

You just didn't read my reply ... I always say "$sa_spam_subject_tag" in my posts in this thread.