On Fri, Aug 20, 1999 at 08:38:42PM +0530, Amit Vadehra wrote:
> I need to implement user based Email forwarding. This essentially means that
> i can have multiple users on one particular domain. There might be
> [EMAIL PROTECTED] and [EMAIL PROTECTED] Both these users physically sit at
> different places say one is in London and one in New York. Now both these
> places have a email server. This email server could be any POP3 / SMTP email
> server and not necessary on Linux/Qmail. Now My Qmail server is the gateway
> for both these locations . The Domain MX record points to this this server
> which physically sits elsewhere from the other two servers.
>
> Now what i need is that when the mail for User1 comes to the Qmail server ,
> it should get forwarded to the London server and when the mail for User2
> comes it should get forwarded to the New York server. All the servers are on
> the Internet and connectivity is not a problem .The forwarding should take
> place on IP rather that Domains or any Names as i dont want any DNS
> resolution to take place.
>
> I DO NOT want them to have different domains like [EMAIL PROTECTED]
> .This is possible by putting the entries in the SMTPROUTES file , but this is
> NOTwhat i require.As it is one organisation , i would like all the e-mail
> addresses to be with a single domain.
This is exactly what you require. The machines in London and New York do have
names, or at least IP addresses, even if you don't want people addressing mail
directly to them. On your main mail server, you'd have:
~alias/.qmail-user1:
&[EMAIL PROTECTED]
~alias/.qmail-user2
&[EMAIL PROTECTED]
control/smtproutes:
london.domain.com:[london's IP address]
newyork.domain.com:[newyork's IP address]
All your e-mail addresses would be of the form [EMAIL PROTECTED], and your main
mail server would be responsible for getting the mail to its ultimate
destination.
Chris