Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Joost on August 01, 2002, 11:47:30 PM

Title: Forwarding mail for Virtual Domain to internal host
Post by: Joost on August 01, 2002, 11:47:30 PM
Hi there,

Does anyone know how to forward all e-mail for a certain virtual domain do another internal host (while all normal e-mail stays at the sme server)? I need to get this working in 5.5.

TIA,
Joost
Title: Re: Forwarding mail for Virtual Domain to internal host
Post by: Haj on August 02, 2002, 03:18:23 AM
I used a procmail rule on the admin user.
Title: Re: Forwarding mail for Virtual Domain to internal host
Post by: stephen noble on August 02, 2002, 11:27:06 AM
this will mostly work unless user1@maindomain exists as well as user1@virtual
then mail goes to the maindomain user1

my vdomain rpm alters the mx record so you forward mail for the virtual domain to another IP, this may work for your case

www.dungog.net/sme/howto/vdomain.html

regards
stephen noble
Title: Re: Forwarding mail for Virtual Domain to internal host
Post by: haj on August 02, 2002, 12:04:48 PM
I've got a virtual host (domain.com) that i use for my intranet. So, email sent to  lolo@domain.com goes to user lolo. If the user doesn't exist it goes to admin user.

domain.com exist on the internet. It is own by me and hosted on an other computer on the internet. I want email for unknow user foward to the internet.

Is it possible ?


ps: excuse my poor english as i am fench spoken.
Title: Re: Forwarding mail for Virtual Domain to internal host
Post by: Joost De Raeymaeker on August 02, 2002, 02:30:49 PM
I've been checking this out myself, and stumbled across a file called smtproutes. When I specify a delegate mail host in the server manager, this gets filled up with domain names and IP addresses, so I guess that it should be enough to put my virutal domain in that list with the associated internal IP, right???

Joost
Title: Re: Forwarding mail for Virtual Domain to internal host
Post by: Steen Hadsbjerg on August 02, 2002, 02:36:37 PM
Hi,

Have a look at this.

http://myezserver.com/downloads/mitel/howto/vdomain-alias-howto.html


It perhaps may help you....


Steen
Title: Re: Forwarding mail for Virtual Domain to internal host
Post by: Joost De Raeymaeker on August 02, 2002, 11:09:25 PM
I've paid for and downloaded your rpm, and it doesn't work on e-smith 5.5 any hints?

Joost
stephen noble wrote:
>
> this will mostly work unless user1@maindomain exists as well
> as user1@virtual
> then mail goes to the maindomain user1
>
> my vdomain rpm alters the mx record so you forward mail for
> the virtual domain to another IP, this may work for your case
>
> www.dungog.net/sme/howto/vdomain.html
>
> regards
> stephen noble