OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: .forward file confusion

From: Magnus Bäck (magnusdsek.lth.se)
Date: Wed Sep 06 2006 - 00:16:09 CDT


On Wednesday, September 06, 2006 at 05:35 CEST,
     Bill Light <mail-listlight-family.com> wrote:

> Trying to keep the wife happy....
>
> have example1.com sending & receiving e-mails fine (local domain)
> have example2.com sending & receiving e-mails fine (virtual domain)
>
> what I wanted to do was send e-mail to wifeexample2.com and have it
> optionally/automatically go to wifeexample1.com and when she leaves
> town wifeother-domain.com (excuse me if this is a real address).

Use a designated example domain; example.com, example.org, example.net.

> I put a .forward file in
>
> /var/spool/mail/vhosts/example2.com/wife that looks like
>
> wifeexample2.com wifeexample1.com
> #wifeexample2.com wifeother-domain.com
>
> with (tenative) instructions to comment out the one she doesn't
> want...either way, it never leaves example2.com I keep reading
> that it looks as though I've done the right thing.

.forward files are only supported with local deliveries, not virtual
deliveries. You can instead use a virtual alias to perform this task.

> What am I not seeing ? And yes, I issued a "postmap .forward" and
> a "postfix reload"

.forward files are not supposed to be postmapped.

--
Magnus Bäck
magnusdsek.lth.se