On 6/9/2015 7:59 AM, Michael Peter wrote: > Hello, > > At our office, We are trying to BCC all emails comes from specific domain > or its subdomains by configuring postifx as follow > > we add main.cf > sender_bcc_maps = hash:/etc/postfix/sender_bcc > > then at /etc/postfix/sender_bcc we add > > @domain.com manager > > But we notice that the emails comes from domain.com is bcc to "manger" but > all emails comes from subdomain ie (sub.domain.com) is not forwarded to > "manager" > > how can we configure postix to sender_bcc emails from domain and its > subdomain as well ? > > Any ideas? > > Michael Peter > > >
to match a specific subdomain, you'll need to add another entry for it. @example.com @sub.example.com Or to match any subdomain, you'll need a regexp or pcre table. # main.cf sender_bcc_maps = regexp:/etc/postfix/sender_bcc.regexp # sender_bcc.regexp /@(.+\.)?example\.com$/ [email protected] -- Noel Jones
