mail text attached to notification

Mark Martinec Mark.Martinec+amavis at
Fri May 6 16:54:39 CEST 2011


> we use the amavis mechanism to notify our users when mail with banned
> content is hard rejected by postfix. Is it possible to include the text of
> the original mail into the notification mail to the user?

If you mean in notifications (DSN) sent to a sender, then no, it is
currently not possible to include a mail body into a bounce message,
only a header is attached.

If you have in mind the recipients, then a clean way is to use
'dafanging' - let banned mail be delivered, but moved to an attachment:

$final_banned_destiny = D_PASS;
$defang_banned = 1;

> The SA-alike MAKROS %A, or _SUMMARY_ with "Content Preview" seem to be
> empty, as the analysis is stopped due to the banned content before the
> mail is passed to Spamassassin?



More information about the amavis-users mailing list