Wietse Venema skrev 2010-03-29 15:00:
Patric Falinder:
/etc/postfix/recipient_bcc:
/@sub\.domain\.com/
/^(.*)@sub\.domain\.com$/ $...@new.sub.domain.com

Wietse Venema skrev 2010-03-29 14:47:
That first line has no result value.

Patric Falinder:
What should I set the result value to?
I got this example from the mailinglist so I didn't make it up my self.

I suppose that someone told you to do this:

if /@sub\.domain\.com/
...stuff...
endif

and then you mis-understood the first line.

If the ...stuff... is only one line, then the if/endif are not
needed.

I think I'm going to change the regexp and pcre table implementations
and disallow rules without result. No other Postfix table allows
that.

        Wietse
ah yes I mis-understood it so I changed it as Ansgar said:

/^(.*)@sub\.domain\.com$/ $...@new.domain.com

I don't get any errors anymore but I doesn't seem like it want to deliver to new.sub.domain.com, it only send the mail to sub.domain.com. Is there a possibility that my content-filter (Maia Mailguard) is changing something? Because I can see that both pat...@new.sub.domain.com and pat...@sub.domain.com get sent to the content-filter but only pat...@sub.domain.com comes out from there.

Can I do this "re-write" after the content-filter? So my server receives a mail, send it to my content-filter, my content-filter sends it back to postfix and then it will "make a copy" as described in recipient_bcc?

Thanks,
Patric

Reply via email to