On Tue, Feb 28, 2012 at 06:51:16PM +0100, Tugdual de Lassat (ML) wrote: > I have a transport regex : transportregex > > /bounce.*@*/ bounceh: > /return.*@*/ bouncer:
I don't have time right now to go into the entire post, but I will quickly jump on this, with a wink and a nod to Mr. Zawinski: "You thought you could solve your problem with regular expressions. Now you have two problems." LEARN regular expressions if you plan to use them. KNOW what those metacharacters mean. KNOW how and when and why you need to anchor expressions. > Called in main.cf : > transport_maps = regexp:/etc/postfix/transportregex Test those expressions against these addresses: postmap -q i...@returnpath.com regexp:/etc/postfix/transportregex postmap -q taxretu...@hrblock.com regexp:/etc/postfix/transportregex postmap -q boun...@bar.example.com regexp:/etc/postfix/transportregex postmap -q i...@spambouncer.com regexp:/etc/postfix/transportregex Are these addresses supposed to be handled by your pipes? No? Oops. > And corresponding pipes in master.cf > > bounceh unix - n n - - pipe > > flags=DRhu user=www-data argv=/usr/bin/php > /home/samba/test/get_bounces.php > > bouncer unix - n n - - pipe > > flags=DRhu user=www-data argv=/usr/bin/php /home/samba/test/get_return.php -- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: