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

Mailing List Archive: exim: users

How to create a filter to catch all bounce messages

 

 

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


singletoned at gmail

Sep 29, 2009, 1:23 PM

Post #1 of 3 (698 views)
Permalink
How to create a filter to catch all bounce messages

As a follow-up to my previous question. How does one go about
creating a filter that would match all bounce messages?

I have tried:

if error_message then
seen save /nm_var/bounces/
endif

But that doesn't catch the bounces that exim sends. For example if I
do:

-----
exim singletoned [at] gmail
To: asdfasdfasdfasdfasdfasdfewrqertrtyrthsfgdfgadfqeadvxzvz [at] gmail
Subject: A bounce test

Another bounce
-----

Then that gets bounced to my gmail address.

The filter that I tried that caught all my mail was:

if $header_return-path: is "" then
seen save /Users/singletoned/temp/exim/var/
endif

As before, any clues or ideas will be gratefully received.

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/


thomy at vincentz

Sep 30, 2009, 3:44 AM

Post #2 of 3 (639 views)
Permalink
Re: How to create a filter to catch all bounce messages [In reply to]

> As a follow-up to my previous question. How does one go about
> creating a filter that would match all bounce messages?
>
> I have tried:
>
> if error_message then
> seen save /nm_var/bounces/
> endif
why not look for x-failed-recipients in the header?

greets,
thomy

--
## 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/


singletoned at gmail

Sep 30, 2009, 9:12 AM

Post #3 of 3 (640 views)
Permalink
Re: How to create a filter to catch all bounce messages [In reply to]

On 30 Sep 2009, at 11:44, thomy [at] vincentz wrote:

>
>> As a follow-up to my previous question. How does one go about
>> creating a filter that would match all bounce messages?
>>
>> I have tried:
>>
>> if error_message then
>> seen save /nm_var/bounces/
>> endif
> why not look for x-failed-recipients in the header?

That's a brilliant idea, thank you. I'll try that out post haste.

For the moment, checking that the return path contains my server name
appears to work, but obviously isn't going to be correct in all
cases. Yours is a much better solution.

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/

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.