OSEC

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

From: Magnus Bäck (magnusdsek.lth.se)
Date: Sun Oct 03 2004 - 03:15:24 CDT


On Sunday, October 03, 2004 at 09:21 CEST,
     Mike Everest <mikeviewbankrise.net.au> wrote:

> I have been working on this problem for a little while, and trawling
> this list shows that others have had similar issue, yet none appears
> to be exactly the same as this.
>
> Like many others, I have a virtual domain "virtualdomain.com" and I
> want to let "uservirtualdomain.com" forward mail to
> "personremotedomain.com" which lives on some other MTA out there in
> the world.
>
> I use virtual_alias_maps to rewrite the address, yet according to the
> verbose logging, the message is still handed to virtual, and virtual
> tries to find the mailbox path for "personremotedomain.com" and
> (expectedly) bounces the mail with "unknown user"
>
> I can't figure out how to stop the message from going to virtual agent
> - even what agent *should* I send to - relay? Smtp?

Since you haven't provided any logs or configuration (hint hint), I have
to guess here. Are you storing the names of the virtual mailbox domains
in a RDBMS or in LDAP, and use an incorrect query to find out if a
domain is a virtual mailbox domain? Specifically, do you have a query
like "SELECT * FROM domains" or filter like (domain=*)?

--
Magnus Bäck
magnusdsek.lth.se