1

Topic: SPAM mail subject line

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: Ubuntu 14 LTS
- Related log if you're reporting an issue:
====

Hi,

Following up on this issue: http://www.iredmail.org/forum/topic8887 … anged.html

Spam mail still have the subject line of "SPAM" added.

Below is relevant part of /etc/amavis/conf.d/50-user file:

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

----

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

2

Re: SPAM mail subject line

Set $sa_spam_modifies_subj to 0, then restart Amavisd service.

3

Re: SPAM mail subject line

Just received first SPAM email since changing the setting per the above and restarting. The subject line is still modified. Below is the relevant part of /etc/amavis/conf.d/50-user file:

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

4

Re: SPAM mail subject line

*) Did you restart Amavisd service?
*) Do you have iRedAdmin-Pro with global or per-domain, per-user spam policy configured?

5

Re: SPAM mail subject line

-Restarted the server as a whole (multiple times)

-Do not have iRedAdmin-Pro

$sa_spam_modifies_subj is a depreciated setting (see below message on startup)

http://i58.tinypic.com/502vkh.jpg

6

Re: SPAM mail subject line

It's not supported by Amavisd anymore, you have to use per-recipient lookup policy (either per-recipient or a global policy) instead.

7

Re: SPAM mail subject line

Once one enables per-recipient lookup policy (as stated here: http://www.iredmail.org/docs/amavisd.pe … okup.html) where does one put the spamassassin setting:
rewrite_header null

8

Re: SPAM mail subject line

If anyone can offer any assistance getting rod of the SPAM subject change would be appreciated. Still haven't been able to figure out how to get rid of it.

9

Re: SPAM mail subject line

I suggest you asking in Amavisd mailing list instead.

10

Re: SPAM mail subject line

ZhangHuangbin this continues to be an amazing project. Do you have any new suggestions as to removing the SPAM mail subject line or do you still recommend asking the Amavisd mailing list?

11

Re: SPAM mail subject line

*) If you have per-user recipient policy enabled, you must set spam_subject_tag, spam_subject_tag2 and spam_subject_tag3 to NULL (sql value, not string "NULL").

*) In Amavisd config file, set '$sa_spam_modifies_subj = 0;' (without quotes). Retarting amavisd service is required.

12 (edited by schnappi 2016-02-04 11:03:52)

Re: SPAM mail subject line

Finally figured how to to stop subject from being changed for spam messages. Comment out:

$sa_spam_subject_tag = '[SPAM] ';

in /etc/amavis/conf.d/50-user

13

Re: SPAM mail subject line

For future reference to anyone who is interested and to conclude this:

Add:

$sa_spam_subject_tag = '';

to the bottom of /etc/amavis/conf.d/50-user

and this will solve the issue.