On Thu, May 24, 2012 at 01:13:24PM +0100, lejeczek wrote:
> I begin my adventure with postfix/dovecot and have most bits
> ready an up but was wondering if below is possible with postfix?
> 
> have local users aliased to external addresses(different domain) 
> and postfix to deliver locally and at the same time relay to 
> external user a copy of the email
> e.g.
> 
> in my local aliases:
> me: me@external.domain
> 
> me is a local user and me@external.domain is hosted on some 
> external system.
> 
> so when I internally send to me@local.domain both accounts would 
> get the same email.

The example you showed would redirect me@local.domain mail ONLY to 
me@external.domain.

> is it even possible, can you shed some light?

Have you looked yet at the manual for aliases(5)?

"
DESCRIPTION
       The  aliases(5)  table provides a system-wide mechanism to
       redirect mail for local recipients. The  redirections  are
       processed by the Postfix local(8) delivery agent.
       [ ... ]

       The format of the alias database input file is as follows:

       o      An alias definition has the form

                   name: value1, value2, ...
"

You would want:

me: me@external.domain, me@local.domain

See also about .forward files in the aliases(5) manual. With a 
.forward file a non-root user can control this forwarding.

Beware the consequences of forwarding spam in this manner. The 
external site might block it and consider you a spammer.
-- 
  http://rob0.nodns4.us/ -- system administration and consulting
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:

Reply via email to