On Mar 30, 2011, at 12:46 PM, Noel Jones wrote:
> 
> # main.cf
> smtp_generic_maps =
>  regexp:/etc/postfix/generic.regexp
> 
> # generic.regexp
> IF /+.*@example\.com$/
> /^(.*)+/  [email protected]
> ENDIF

Threw this verbatim into my generic.regexp:

[root@mx1 postfix]# postmap -q "[email protected]" regexp:generic.regexp 
postmap: warning: regexp map generic.regexp, line 1: Invalid preceding regular 
expression
postmap: warning: regexp map generic.regexp, line 4: ignoring ENDIF without 
matching IF
[email protected]@example.com

On the plus side, I figured out how to do something interesting by reading 
through the regexp documentation-- this solved another challenge I'd been 
facing.

-- Corey / KB1JWQ

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to