Re: Re-injecting a mailbox into postfix?

From: mouss (no email)
Date: Tue Sep 04 2007 - 06:46:44 EDT

  • Next message: Jan P. Kessler: "Re: HOLD messages CC/BCCd to more than 10 recipients?"

    Luciano Mannucci wrote:
    > On Mon, 03 Sep 2007 22:17:32 +0200
    > mouss <> wrote:
    >
    >> Sean Tempesta wrote:
    >>> Luciano: I tried using this on a test message and it appears to work
    >>> (minus a loopback problem).
    >>>
    >>> Magnus: Is there a way to strip out any non mydestination recipients
    >>> so Postfix doesn't deliver mail to other recipients in the header?
    >> sendmail -t will use the From and To/Cc headers. These headers are not
    > Yes it was just a matter of pointing in a workable direction.
    > In fact I use formail only for utility mailboxes (those that collect
    > mail from programs).
    > Probably the best bet is to use fetchmail, which has a very rich set
    > of capabilities. Knowing the addresses of the domain or which you
    > have collect mail for, you can set a rule in a fetchmailrc that takes
    > the messages via pop3 from your localhost and resend them to the
    > proper address. I did that ages ago, so I'm pretty sure that fetchmail
    > can set rules based on the Delivered-To header, though I don't remember
    > the details. You may wish to dig in the fetchmail manual.

    fetchmail would be too much here.

    He could just convert the mbox to multiple files, this can be done with
    formail/reformail or by one of the mbox to maildir conversion utilities.
      then getting the addresses should be simple, except for "nasty"
    addresses (those containing punctuation or whatever shell escape
    characters). submitting mail via smtp may be safer than executing
    sendmail if addresses are not checked strictly.


  • Next message: Jan P. Kessler: "Re: HOLD messages CC/BCCd to more than 10 recipients?"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD