#7 basic script to reinject mail

closed
nobody
None
5
2003-03-07
2002-04-18
No

A simple script to reinject mail into the
non-content-filtering postfix for a specified amavis id.

The scripts could be more elaborated to see current
queue and so on...

But it works.

Discussion

  • Lars Hecking
    Lars Hecking
    2002-04-19

    Logged In: YES
    user_id=28904

    In principle a good idea, but the implementation is
    lacking, and cannot be fixed without additional work in
    amavis(d).

    The problem is that you have already lost all envelope
    information when mails are quarantined. Sending such
    messages to the addresses found in To: is plain wrong.
    (And I also think your simplistic extraction method does
    in the general case not produce email addresses in a form
    usable for SMTP.)

    Take a look at http://www.amavis.org/contrib/, furio.patch
    and furio.infect.

     
  • Lars Hecking
    Lars Hecking
    2003-03-07

    Logged In: YES
    user_id=28904

    I'm closing this report now.

    amavis-0.3.12 (just released) and the upcoming amavisd 0.1
    won't support this yet, but I'm thinking really hard about
    adding
    everything necessary for re-injection to to releases after that.
    It will probably be based on Furio's patches, and I'll also
    write
    a small per-based mailq-alike to list the contents of the
    quarantine dir (there isn't a queue as such, and won't be).

     
  • Lars Hecking
    Lars Hecking
    2003-03-07

    • status: open --> closed
     
  • Lars Hecking
    Lars Hecking
    2003-03-13

    Logged In: YES
    user_id=28904

    I have now modified amavis (o.3.x/amavisd) so that the envelope
    information is saved in quarantined emails. It's done just
    like in
    amavis-ng, so the amavis-inject tool from amavis-ng can be
    used.