On 2010-03-24 Patric Falinder wrote: > If I have a subdomain that I need to do this with, sub.domain.com, > should it he like this then? > > /etc/postfix/recipient_bcc: > if /@sub\.domain\.com/ > /^...@sub\.domain\.com$/ $...@new.domain.com > endif
You can probably omit the "if ... endif", the match alone should be sufficient. > I get this error: > warning: regexp map /etc/postfix/recipient_bcc, line 2: out of range > replacement index "1": skipping this rule > > What did I do wrong? You didn't group what the $1 is supposed to refer to. /^(.*)@sub\.domain\.com$/ $...@new.domain.com Regards Ansgar Wiechers -- "Abstractions save us time working, but they don't save us time learning." --Joel Spolsky