Arjan Melein: > It's been a few days but i just ran into a little bump in the road.. It looks > like the ;1:1 actually changes depending on the number of recipients. > How would I change '/^RCPT\s+TO:(.*);1:1$/ RCPT TO:$1' into matching > 'domain.tld;#:#' and put the domain.tld back without the ;#:#
What does the # stand for? If it is one digit, replace 1 by [0-9], to handle multiple digits, replace 1 by [0-9]+ You can test this with: postmap -q "RCPT TO:<x.y.z> ORCPT=rfc822;a...@b.c;3;4" pcre:/file/name Wietse