On Mon, Nov 3, 2008 at 11:40 AM, Daniel Chojecki
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> i want to redirect all messages sent to exact "external" email addres
> to my "internal" addres - i use header_checks and REDIRECT action
>
> When external addres is in TO: field - action is taken.
> When external addres is in CC: and BCC field - email
> is sent to external MX.
>
> My header_checks looks like
> (header_checks = regexp:/etc/postfix-out/header_checks):
> /^to:[EMAIL PROTECTED]/i                  REDIRECT [EMAIL PROTECTED]
>
> Any idea ?
>
> --
> Best Regards,
> Daniel Chojecki
>

A message may have many recipient. REDIRECT target change all
recipient to specified value.

You can think about regexp with virtual_alias_maps if is a internal
mailserver because this stop recipient validation.

virtual_alias_maps = ldpa-mysql-anythin:/path/map,
regexp:/etc/postfix/virtual.regexp

# /etc/postfix/virtual.regexp
if !/(^|@)internal\.example\.com$/
/./ [EMAIL PROTECTED]
endif

# main.cf
enable_original_recipient = no


-- 
Reinaldo de Carvalho
http://korreio.sf.net
http://python-cyrus.sf.net

Reply via email to