[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: amavis-new not adding X-Spam-Status header



* Henrique de Moraes Holschuh schrieb am 06.08.07 um 18:05 Uhr:
> On Mon, 06 Aug 2007, Gregor Hermens wrote:
> > Am Montag, 6. August 2007 14:31 schrieb Ross, Chris:
> > > The end of last week, I upgraded out mail gateway from Serge to Etch.
> > > Most of the config appears to be working correctly now with one
> > > exception.  We are not getting X-Spam-Status header.  The following
> > > config line does not seam to be getting honored.
> > >
> > > 20-debian_defaults
> > > $sa_tag_level_deflt  = -999.0;
> > >
> > > Any help / rtfm pointer would be greatly appreciated.
> > 
> > you should put your individual settings in 50-user. All other files 
> > in /etc/amavis/conf.d are likely to be overwritten on the next update.
> 
> They are *not* overwritten.  dpkg will pester you about a changed conffile,
> and you will have to deal with it.  But that's all.
> 
> That said, make sure any email you want amavisd-new to change IS being sent
> to a recipient in one of the configured local domains.  Otherwise, it may
> refuse to change it adding headers, etc.


ack.

I have this in my amavisd config so amavisd-new will use my exim
local domains:

in /etc/amavis/conf.d/05-domain_id:

--------------------------------------------------
@local_domains_acl = ();
open(DOMAINS_FH, '< /etc/exim4/local_domains');
while (defined(my $line = <DOMAINS_FH>) ) {
  chomp $line;
  my @fields = split(/\s+/, $line);
  push(@local_domains_acl, "." . $fields[1]);
}
close(DOMAINS_FH);
--------------------------------------------------

I guess this could be done much smarter in perl, but it works.
Maybe this helps someone.

-Marc
-- 
+------------------------------------------------------------------+
|              --> http://www.links2linux.de <--                   |
|                                                                  |
+---Registered-Linux-User-#136487------------http://counter.li.org +



Reply to: