Re: additional domain with virtual_maps
- On Wed, Apr 1, 2009 at 6:28 PM, mouss <mouss@...> 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>.>> <http://maindomain.com> gets forwarded on to another mail server. Also
> Normally, any mail that arrives here with @maindomain.com
> mail addressed to @sub1.maindomain.com <http://sub1.maindomain.com> gets
> rewritten to have @maindomain.com <http://maindomain.com>.>While I am in, virtual_maps is obsolete. use virtual_alias_maps instead.
> I also have virtual_maps specified with:
> some_user@... <mailto:some_user@...>
> some_user@... <mailto:some_user@...>>> <http://sub2.maindomain.com> email get delivered locally to this box, so
> 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> I added:> <mailto:another_user@...>
> another_user@... <mailto:another_user@...>>> rewritten with @maindomain.com <http://maindomain.com>.
> However, this just gets forwarded on to the other mail server -
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.hard to tell. make sure the virtual alias is "enabled" (postmap the
> Any thoughts or ideas at what I can look into?
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...