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.

> [email protected] <mailto:[email protected]>   
> [email protected] <mailto:[email protected]>
> 
> 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:
> 
> [email protected]
> <mailto:[email protected]>   
> [email protected] <mailto:[email protected]>
> 
> 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.

Reply via email to