Adding X_SPAM headers to passed messages

James B. Byrne via amavis-users amavis-users at
Wed May 14 15:36:52 CEST 2014

On Tue, May 13, 2014 17:42, Larry Stone via amavis-users wrote:
> On Tue, 13 May 2014, James B. Byrne via amavis-users wrote:
>>>> I have the following settings in /etc/amavisd/amavisd.conf:
>>>> $sa_tag_level_deflt  = -9999; # add spam info headers if at, or above
>>> that level
>> If you review the configuration settings I gave above you will discover that
>> I
>> already have applied the suggested configuration changes and am not
>> obtaining
>> the results indicated:
>> For example, taken verbatim from the link you helpfully provided:
>>> Eureka! Uncommenting and changing the first line to
>>>   $sa_tag_level_deflt = -9999; # always add spam info headers
>>> and restarting amavis
>>>   sudo service amavis restart
>>> has resulted in all messages getting the X-Spam- headers:
>> Well, my setting in amavisd.conf is: $sa_tag_level_deflt  = -9999;  and
>> amavisd has been restarted many times since that change was made.
> Are you sure the amavisd.conf you're editing (/etc/amavisd/amavisd.conf
> per what you originally said and quoted above) is the one amavisd is
> actually using? What is the command used to start amavisd? The
> default configuration file name can be overridden on the command used to
> start it.
> -- Larry Stone
>     lstone19 at

# service amavisd stop
Shutting down amavisd: Daemon [24485] terminated by SIGTERM
                                                           [  OK  ]
amavisd stopped
[root at inet08 ~]# mv /etc/amavisd/amavisd.conf /etc/amavisd/amavisd.conf.locked
[root at inet08 ~]# service amavisd start
Starting amavisd: Config file "/etc/amavisd/amavisd.conf" does not exist, at
/usr/sbin/amavisd line 2085.

This package is obtained from EPEL and follows the Fedora/RedHat FHS layout. 
The init script sets the configuration file explicitly at:

prog_base="$(basename ${prog})"


and the program is run by:

case "$1" in
	action $"Starting ${prog_base}:" ${prog} -c ${prog_config_file}
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/${prog_base}

I am fairly confident that I am working on the right configuration file.

I keep thinking that there is something about SPF and Spamassassin which is
influencing this matter but I have no clue as to why I have that sense.  But,
as Amavisd is what handles the header writing, I have to deal with the issue

***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB at
Harte & Lyne Limited
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

More information about the amavis-users mailing list