Peter,

> is it possible to modify the subject at all, using sendmail-milter with
> AM.PDP.

Yes, I believe it should work.
Make sure the recipient is local - @local_domains_maps must
be configured correctly.

> I setup a test system using the new amavisd-milter and AM.PDP seems to
> work quite well. However I don't seem to manage to haveth esubject
> changed.

Do you get X-Spam-* header fields inserted? If yes, the @local_domains_maps
is probably correct. If no, then Subject is not modified for the same
reason as X-Spam-* headers are not inserted: recipient not considered local.

> Relevant entries in amavisd.conf look like this:
>
> $undecipherable_subject_tag = '***UNCHECKED*** ';
> $sa_spam_subject_tag = undef;
> $sa_spam_level_char = '*';
> $sa_spam_modifies_subj = 1;
> @spam_modifies_subj_maps= (\$sa_spam_modifies_subj);
> @spam_subject_tag_maps  = (\$sa_spam_subject_tag1); # N.B.: inconsistent
> name
> @spam_subject_tag2_maps = (\$sa_spam_subject_tag);  # N.B.: inconsistent
> name
> @spam_subject_tag3_maps = ();
>
> %subject_tag_maps_by_ccat = (
>   CC_VIRUS,      [ '***INFECTED*** ' ],
>   CC_BANNED,     undef,
>   CC_UNCHECKED,  sub { [ c('undecipherable_subject_tag') ] },
>   CC_SPAM,       [ ' ****SPAM**** ' ],
>   CC_SPAMMY.',1',sub { ca('spam_subject_tag3_maps') },
>   CC_SPAMMY,     sub { ca('spam_subject_tag2_maps') },
>   CC_CLEAN.',1', sub { ca('spam_subject_tag_maps') },
> );

It is more usual that ' ****SPAM**** 'is inserted at tag2
level (=spammy), and not at kill level (whose primary purpose
is to block mail in most cases). The above can be simplified
to a single:

  $sa_spam_subject_tag = ' ****SPAM**** ';

and leaving out the assignment to %subject_tag_maps_by_ccat,
the default usually suffices, also other values are the
same as defaukt, so need not be reasserted again
(see amavisd.conf-default).

> OT: How do you test spam, other than sending the included sample-spam. Is
> there aservice ( ;) ) one could subscribe to to actually get real spam. I
> would raher test everything on my testmachine first than change my
> production servers.

The sample-spam-GTUBE-junk.txt test message contains a GTUBE
test pattern, which should score very highly by SA,
see  http://spamassassin.apache.org/gtube/

  Mark

-------------------------------------------------------------------------
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
[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