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 >