Achraf,

> I recently came across an issue with amavis 2.6.1 on Ubuntu gutsy
> on MySQL DB I defined two policies with each having its own tag2, kill,
> quarantine_cutoff and dsn cutoff score.
> when I send an email to this machine , all the scores get loaded correctly
> except the spam_dsn_cutoff_level wich apperas no where on the debug window
> of amavis.
> Does any one came across this behavior before, or is it a well known
> limitation ? any comments ? suggestions?

Some of the more rarely used lookups are performed only when needed, which
is a possible reason for not seeing a lookup for spam_dsn_cutoff_level
in the debug logging. For example, if no DSN is being sent, or if it is
being suppressed for some other reason even before it reaches a code
which is considering dsn cutoff.

There are four variables controlling DNS suppression, two for
by_sender vs. by_recip, times two for believable vs. possibly-faked
sender address (search for 'crediblefrom' in release notes):

  @spam_dsn_cutoff_level_maps
  @spam_dsn_cutoff_level_bysender_maps

  @spam_crediblefrom_dsn_cutoff_level_maps
  @spam_crediblefrom_dsn_cutoff_level_bysender_maps

Of these four, only the first one has its SQL field 'spam_dsn_cutoff_level'.
The rest of them only do statical lookups (no SQL or LDAP equivalent).

This may look like a limitation, although I consider suppressing DNS
rather a site manager's decision and not a recipient's decision, so
in this view even the 'spam_dsn_cutoff_level' SQL field can be
considered redundant/undesirable.

The default for setting sender as 'credible' is for originating mail
(outgoing or internal-to-internal), or when a valid DKIM signature is
made by a domain matching envelope sender domain. Custom hooks may
supply other/additional criteria. If the 'sender is credible' flag
is turned on, only lookups on:
  @spam_crediblefrom_dsn_cutoff_level_maps
  @spam_crediblefrom_dsn_cutoff_level_bysender_maps
are performed, which may be another reason why you are not
seeing SQL lookup in debug logging.

> If you think it's not the right way to post a question just let me know...
> I'm new and not used to users lists

It is the right way.

  Mark

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to