Enhancement #3274

amavisd default log_level

Added by Filippo Carletti about 4 years ago. Updated almost 4 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-mail-common
Target version:v6.7
Resolution: NEEDINFO:No

Description

I'd like to increase the amavisd log_level to 2 to see in the log spam rules that fired.
See http://community.nethserver.org/t/spam-logging-verbosity/1701/6

Associated revisions

Revision 87def519
Added by Filippo Carletti almost 4 years ago

amavisd.conf: change default tag level. Refs #3274

Revision 8c765f3a
Added by Filippo Carletti almost 4 years ago

amavisd.conf: change default log level. Refs #3274

History

#1 Updated by Filippo Carletti about 4 years ago

To have verbose logs in /var/log/maillog for all emails we need also:

$sa_tag_level_deflt  = -100;

#2 Updated by Giacomo Sanchietti almost 4 years ago

  • Status changed from NEW to TRIAGED
  • Target version set to v6.7
  • % Done changed from 0 to 20

#3 Updated by Filippo Carletti almost 4 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Filippo Carletti
  • % Done changed from 20 to 30

#4 Updated by Filippo Carletti almost 4 years ago

  • Category changed from nethserver-mail-filter to nethserver-mail-common

#5 Updated by Filippo Carletti almost 4 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Filippo Carletti)
  • % Done changed from 30 to 60

#6 Updated by Filippo Carletti almost 4 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

Packages in nethserver-testing:
nethserver-mail-filter-1.3.3-1.1.g87def51.ns6.noarch.rpm
nethserver-mail-common-1.5.1-1.2.g918d3cc.ns6.noarch.rpm

After update, check that amavisd is still running:

# service amavisd status
amavisd (pid 31662 28807 28722 18101 379) is running...

Receive an email and inspect /var/log/maillog, looking for details like this:

# grep spam-tag /var/log/maillog
Oct 22 19:44:15 ns65 amavis[18421]: (18421-01) spam-tag, <filippo@nethesis.it> -> <filippo@neth.net>, No, score=0.779 tagged_above=-1000 required=5.1 tests=[ALL_TRUSTED=-1, INVALID_DATE=0.432, MISSING_HEADERS=1.207, MISSING_MID=0.14] autolearn=no autolearn_force=no

#7 Updated by dz0 0te almost 4 years ago

  • Assignee set to dz0 0te

#8 Updated by dz0 0te almost 4 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (dz0 0te)
  • % Done changed from 70 to 90

System and Package Version installed
VM KVM - Clean install of Nethserver 6.7 fully updated
Package Installed: nethserver-mail-filter-1.3.3-1.ns6.noarch
nethserver-mail-common-1.5.1-1.ns6.noarch
Other Package installed: Email, File server, MySQL server, POP3 connector, Web server

Test Original Problem

cat /etc/amavisd.conf | grep -e log_level -e tag_level
$log_level = 0; # verbosity 0..5, -d
$sa_tag_level_deflt = 2.0; # add spam info headers if at, or above that level

Install Updated Package

yum --enablerepo=nethserver-testing update nethserver-mail-filter-1.3.3-1.1.g87def51.ns6.noarch nethserver-mail-common-1.5.1-1.2.g918d3cc.ns6.noarch

Test Results after update
Test case 1:
after update:

cat /etc/amavisd.conf | grep -e log_level -e tag_level
$log_level = 2;              # verbosity 0..5, -d
$sa_tag_level_deflt  = -1000;  # always add spam info headers

$ service amavisd status
amavisd (pid 17173 17172 17171 17170 17049) is running...
$ grep spam-tag /var/log/maillog
Oct 28 17:20:10 ns67fresh1 amavis[17171]: (17171-01) spam-tag, <bdf45166bml46.23854321@gug1.bounce.mailing-lists.it> -> <admin@localhost>, No, score=-0.015 tagged_above=-1000 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, TVD_RCVD_IP=0.001, TVD_RCVD_IP4=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no

Verified or Reopen
Verified

Note

#9 Updated by Giacomo Sanchietti almost 4 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-mail-common-1.5.2-1.ns6.noarch.rpm
  • nethserver-mail-filter-1.3.4-1.ns6.noarch.rpm

Also available in: Atom PDF