On Wed, Apr 1, 2009 at 6:28 PM, mouss <mo...@ml.netoyen.net> wrote:

> ScottO a écrit :
> > So I have a main.cf <http://main.cf> with mydestination that includes
> > maindomain.com <http://maindomain.com>, sub1.maindomain.com
> > <http://sub1.maindomain.com>, sub2.maindomain.com
> > <http://sub2.maindomain.com>.
> >
> > Normally, any mail that arrives here with @maindomain.com
> > <http://maindomain.com> gets forwarded on to another mail server.  Also
> > mail addressed to @sub1.maindomain.com <http://sub1.maindomain.com> gets
> > rewritten to have @maindomain.com <http://maindomain.com>.
> >
> > I also have virtual_maps specified with:
> >
>
> While I am in, virtual_maps is obsolete. use virtual_alias_maps instead.
>
> > some_u...@maindomain.com <mailto:some_u...@maindomain.com>
> > some_u...@sub1.maindomain.com <mailto:some_u...@sub1.maindomain.com>
> >
> > This allows particular top-level domain email to be delivered locally to
> > this box.
> >
> > What I wanted to do was have a certain sub2.maindomain.com
> > <http://sub2.maindomain.com> email get delivered locally to this box, so
> > I added:
> >
> > another_u...@sub2.maindomain.com
> > <mailto:another_u...@sub2.maindomain.com>
> > another_u...@sub1.maindomain.com <mailto:
> another_u...@sub1.maindomain.com>
> >
> > However, this just gets forwarded on to the other mail server -
> > rewritten with @maindomain.com <http://maindomain.com>.
> >
>
> you need to check if there is a rule that rewrites the address. if you
> can't find it, post:
> - output of 'postconf -n'
> - relevant logs
> - output of 'postmap -q' showing that the mapping is ok.
>
> > Any thoughts or ideas at what I can look into?
>
> hard to tell. make sure the virtual alias is "enabled" (postmap the
> virtual alias map file, send a new test message, ...). you can use
> 'postmap -q' to test your maps.
>

Thanks for the suggestions.  We noticed that masquerade was rewriting
recipient as well...

Reply via email to