Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Send a maildir to exim to be sent

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


singletoned at gmail

Sep 29, 2009, 1:03 PM

Post #1 of 4 (503 views)
Permalink
Send a maildir to exim to be sent

I wrote a system_filter to dump bounce messages into a maildir, but
unfortunately it turned out to be over enthusiastic and has dumped
_all_ messages going through exim.

I now need to resend about 50,000 messages that are in a maildir. Is
there any easy way to do this?

Many thanks for any pointers, or even just hints on good things to
google for related to this.

Ed

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


hs at schlittermann

Sep 29, 2009, 1:24 PM

Post #2 of 4 (471 views)
Permalink
Re: Send a maildir to exim to be sent [In reply to]

Ed Singleton <singletoned [at] gmail> (Di 29 Sep 2009 22:03:18 CEST):
> I wrote a system_filter to dump bounce messages into a maildir, but
> unfortunately it turned out to be over enthusiastic and has dumped
> _all_ messages going through exim.
>
> I now need to resend about 50,000 messages that are in a maildir. Is
> there any easy way to do this?
>
> Many thanks for any pointers, or even just hints on good things to
> google for related to this.

Did you add the „envelope-to“ header? Otherwise you lost the original
recipient information. (But, you may find it in the logs.)

Maybe you could have check „formail“, it can help you parsing the header
and execute any command…

Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann HS12-RIPE -----------------------------------------
gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B -
Attachments: signature.asc (0.19 KB)


singletoned at gmail

Sep 30, 2009, 9:19 AM

Post #3 of 4 (452 views)
Permalink
Re: Send a maildir to exim to be sent [In reply to]

On 29 Sep 2009, at 21:24, Heiko Schlittermann wrote:

> Ed Singleton <singletoned [at] gmail> (Di 29 Sep 2009 22:03:18 CEST):
>> I wrote a system_filter to dump bounce messages into a maildir, but
>> unfortunately it turned out to be over enthusiastic and has dumped
>> _all_ messages going through exim.
>>
>> I now need to resend about 50,000 messages that are in a maildir. Is
>> there any easy way to do this?
>>
>> Many thanks for any pointers, or even just hints on good things to
>> google for related to this.
>
> Did you add the „envelope-to“ header? Otherwise you lost the original
> recipient information. (But, you may find it in the logs.)
>
> Maybe you could have check „formail“, it can help you parsing the
> header
> and execute any command…

I didn't realise about the envelope-to header, no. I'll improve the
filter to add that in.

However, I'm resending the messages in the end using a few lines of
python. Turns out you can just iterate through a maildir and pass
those off to a smtpserver instance. I used the To and From headers,
assuming that they were correct to be the envelope headers.

They seem to be happily going off (if not a bit slowly...)

Thanks

Ed
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


peter at bowyer

Oct 1, 2009, 12:47 AM

Post #4 of 4 (450 views)
Permalink
Re: Send a maildir to exim to be sent [In reply to]

On 30/09/2009, Ed Singleton <singletoned [at] gmail> wrote:
> However, I'm resending the messages in the end using a few lines of
> python. Turns out you can just iterate through a maildir and pass
> those off to a smtpserver instance. I used the To and From headers,
> assuming that they were correct to be the envelope headers.
>
> They seem to be happily going off (if not a bit slowly...)

This is unsafe practice.

I hope there are no mailing list messages in there - you'll be busily
re-distributing the messages back to the list they came from, assuming
standard mailing list header mungling (The 'To:' header is the list
address). And I'm sure there will be more examples of brokenness.

Peter



--
Peter Bowyer
Email: peter [at] bowyer
Follow me on Twitter: twitter.com/peeebeee

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.