Mark Martinec schrieb:
Hi
Thanks for your reply. I shortened the mail a bit to make it easier to read.
[...snip...]
If one does not want altermime this has to be configured explicitly.
True, the:
$defang_spam = 'attach';
should suffice.
I did set up a corresponding
ruleset for my domain but it doesn't work. Can someone point me into the
right direction? This is my rule for defanging incoming mails:
$defang_maps_by_ccat{+CC_SPAM} = [
{ # a per-recipient hash lookup table
'.dynamik.sytes.net' => 'attach',
},
$defang_spam, # fallback to old style setting if no match above
];
Appears alright.
Does recipient address match the '.dynamik.sytes.net' ?
Yes it does. All of my users are using a localpart with this domainpart.
(e.g. [EMAIL PROTECTED]) At least the user I'm using for testing
puposes does. Its not a multi-domain setup. The server I'm using is
responsible only for this domain.
Are there any other assignments to a %defang_maps_by_ccat hash?
Indeed, there are more assignments. I have made the following assignment
for adding disclaimers:
$defang_maps_by_ccat{+CC_CLEAN} = [ 'disclaimer' ];
$policy_bank{'MYUSERS'} = {
allow_disclaimers => 1,
};
$defang_maps_by_ccat{+CC_SPAM} = [
{ # a per-recipient hash lookup table
'.dynamik.sytes.net' => 'attach',
},
$defang_spam, # fallback to old style setting if no match above
];
As this only refers to CC_CLEAN I don't think this is a problem, isn't
it? In amavisd.conf it is above the +CC_SPAM assignment, so if they are
concurring, the CC_CLEAN assignment should be overwritten by the CC_SPAM
assignment.
You may send me a log privately to save bandwidth or protect privacy.
I attached a anonymized log. May it help others with the same problem.
It says that amavis is using altermime for mangling. For creating this
log entry I used an external mailaccount for sending a mail wich should
be classified as spam to a local recipient (mail from:
[EMAIL PROTECTED]). As I used an external sender, the policy bank
'MYUSERS' gets not involved and so is discl_allowed=0
Mark
regards,
Sven
Jun 8 08:22:04 mail amavis[9615]: (09615-01) mangling YES: 1 (orig: 1),
discl_allowed=0, <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>
Jun 8 08:22:04 mail amavis[9615]: (09615-01) local delivery: <> ->
<clean-quarantine>, mbx=/var/amavis/virusmails/clean/tfF3Ens85+gh
Jun 8 08:22:04 mail amavis[9615]: (09615-01) SPAM-TAG, <[EMAIL PROTECTED]> ->
<[EMAIL PROTECTED]>, Yes, score=7.506 required=5.31 tests=[AWL=-7.495,
DK_POLICY_SIGNSOME=0.001, DRS_TEST=15, UPPERCASE_25_50=0]
Jun 8 08:22:04 mail amavis[9615]: (09615-01) mangling by: 1, <[EMAIL
PROTECTED]>
Jun 8 08:22:04 mail amavis[9615]: (09615-01) mangling by altermime (1) done,
new size: 2626, orig 2704 bytes
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/