On Mon, 26 May 2014 17:33:52 -0500
Noel Jones <njo...@megan.vbhcs.org> wrote:

> On 5/26/2014 6:19 AM, mancyb...@gmail.com wrote:
> > Hi I wrote this script: http://pastebin.com/BZGNDcdn
> > which is configured in postfix in transport_maps like this:
> > emailtocatcherr...@example.com myCustomScript:dummy
> > and is supposed to catch emails that return errors ("Undelivered Mail 
> > Returned to Sender") when emailtocatcherr...@example.com sends emails.
> > (btw I'm sending 100% legit traffic, nothing spammy here)
> > 
> > It works very well
> > but if I try to send an email to emailtocatcherr...@example.com
> > it loops 10 times and then gives up (554 5.4.0 Error: too many hops).
> 
> A transport must deliver mail outside of postfix, such as to a
> remote system, a mailbox, or another postfix instance.  The
> transport must not loop mail back into the same postfix instance.
> 
> Perhaps a simple content_filter will fit your needs better than a
> transport. Or maybe not.
> http://www.postfix.org/FILTER_README.html#simple_filter
> 
> 
>   -- Noel Jones
> 
> 
> > 
> > I'm seeking community or professional support to fix this issue.
> > 
> > 
> > Thanks for your attention,
> > regards and have a nice day,
> > Mike
> > 
> 

Hi Noel, thanks for your suggestion but unfortunately I've already been there.
If you configure the script as a FILTER, instead of a transport_map, you'll not 
be able to catch bounced emails
as suggested here: http://marc.info/?l=postfix-users&m=139933564703452&w=2


Thanks to the helpful community,
regards and have a nice day,
Mike

Reply via email to