Matteo Cazzador:
[ Charset ISO-8859-15 converted... ]
> Hi, i 've a question, i need to forward all email received with a 
> specified sender (external domain) to local domain address (suppose 
> local postfix domain is "example.com").
> 
> For examples:
> 
> all email with sender x...@gmail.com?? need to be forwarded to a 
> i...@example.com.
> 
> Is It possible to do it please?

Configuration:

/etc/postfix/main.cf:
    virtual_alias_maps = hash:/etc/postfix/virtual

/etc/postfix/virtual:
    x...@gmail.com i...@example.com

Commands:

# postmap hash:/etc/postfix/virtual
# postfix reload

Alternative:

/etc/postfix/main.cf:
    virtual_alias_maps = inline:{x...@gmail.com=i...@example.com}

# postfix reload

Requires Postfix 3.0 or later.

        Wietse

Reply via email to