>> fwiw, my current hack is in `header_checks` a la >> >> /^To:.*[email protected]/ PASS >> /^To:.*[email protected]/ PASS >> /^To:.*[email protected]/ PASS >> ... >> /^To:.*@bogus.com/ DISCARD > > A more elegant mechanism would be to do that in your virtual map. Use > it to direct the valid addresses to their delivery points and discard > the rest: > > virtual_alias_maps=pcre:/etc/postfix/virtual > > virtual: > > /.*[email protected]/ [email protected] > /.*[email protected]/ [email protected] > /.*[email protected]/ [email protected] > /.*@bogus.com/ /dev/null
cool. why pcre as opposed to regex? i.e. /(randy|root)@bogus.com/ [email protected] /[email protected]/ dest.server /[email protected]/ dest.server /[email protected]/ dest.server /.*@bogus.com/ /dev/null thanks! randy _______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
