Re: [exim] How to execute a php script if delivery mail fail…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Michalski Luc
Date:  
À: exim-users
Anciens-sujets: [exim] How to execute a php script if delivery mail failed
Sujet: Re: [exim] How to execute a php script if delivery mail failed

Hello,

I am sending a newsletter every weeks to my user and some users have email
addresses which don t exist anymore or are full...And i receive a mail
delivery warning for each one...

I d like to write a router in the exim.conf which send the invalid address
to a file for treatment :

invalid_from_local:
driver = accept
condition = ${if eq {$sender_address}{XXXXXXXXXXXXXXXXXXXXXXXXX}}
transport = prune_recipient

prune_recipient:
driver = pipe
command = /usr/local/bin/prune.pl

What should I write as condition for routing all these bad emails ?

Thanks in advance

Best Regards
ML


Michalski Luc wrote:
>
> Hello,
>
> I d like to delete from my website database all emails for which exim sent
> me a delivery failure notification when I sent a newsletter...
>
> I am not a specialist of exim but I guess that the way of filtering that
> is to execute a php script ( because my website is written in php and have
> an interaction with a mysql database ) with exim...
>
> How can I do that ?
>
> Thanks in advance...
>
> Cheers
> DG
>


--
View this message in context: http://www.nabble.com/How-to-execute-a-php-script-if-delivery-mail-failed-tf1993602.html#a6179357
Sent from the Exim Users forum at Nabble.com.