|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: mouss (mlist.only
free.fr)
Date: Tue Sep 04 2007 - 05:46:44 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Luciano Mannucci wrote:
> On Mon, 03 Sep 2007 22:17:32 +0200
> mouss <mlist.only
free.fr> 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.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]