Michael,

> Yeah, unlikely but possible. In fact the mail passes through 2 filters
> before being returned to postfix:
> postfix:25 -> amavis:10024 -> apache-james:10025 -> postfix:10026 ->
> smarthost
> 
> All i can tell is that some mails (like 1 out of 20000) get corrupted in
> the process and end up being unusable. I cannot disable amavis
> completely as spam hell would break lose. I cannot disable apache-james
> because it contains some custom filters. The most likely culprit here is
> apache-james because it contains some custom code. But if i disable it i
> cannot tell which mails would have triggered the bug and which ones
> didn't. That's why i want to store mails at postfix:25 before they get
> altered.

You may enable archive quarantine in your pre-queue amavis,
e.g.:

  $archive_quarantine_method   = 'local:archive-%m';
  $archive_quarantine_to = 'archive-quarantine';  # default

to be able to compare a corrupted message to what was seen
by amavisd.  This would not help if a problem lies in stages
prior to or in amavisd, but at least it can help troubleshooting
later stages (SMTP output from amavisd and apache-james).

  Mark

Reply via email to