quarantine bad header mails

Andreas Schulze andreas.schulze at datev.de
Wed Nov 28 08:42:17 CET 2012


Hi,

I [like|try] to reject messages missing required headers.
Therefore amavis knows the content category CC_BADH,7

To reject not all messages with bad headers but only those with missing headers
I put in amavisd.conf:
$final_destiny_by_ccat{ CC_BADH.',7' } = D_REJECT;

that works.

I also have "$bad_header_quarantine_method = undef;" because
I do not want a 'backup' of every message with brocken headers.
($final_bad_header_destiny = D_PASS; is default anyway)

How do I quarantine only the messages with content category CC_BADH,7?

I tried
$quarantine_method_by_ccat{ CC_BADH.',7' } = 'local:missing_header-%m';
which is simply ignored.

Then I added
$quarantine_to_maps_by_ccat{ CC_BADH.',7' } = 'bad-header-quarantine';
which produces an error:
(!!)TROUBLE in check_mail: quar+notif FAILED: Can't use string ("bad-header-quarantine") as an ARRAY ref while "strict refs" in use at /usr/sbin/amavisd line 6034.

Any hints?
thanks ...

-- 
Andreas Schulze
Internetdienste | P252

DATEV eG
90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196
E-Mail info @datev.de | Internet www.datev.de
Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70
Vorstand
Prof. Dieter Kempf (Vorsitzender)
Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender)
Dipl.-Kfm. Michael Leistenschneider
Dipl.-Kfm. Dr. Robert Mayr
Jörg Rabe v. Pappenheim
Dipl.-Vw. Eckhard Schwarzer
Vorsitzender des Aufsichtsrates: Reinhard Verholen


More information about the amavis-users mailing list