VaibhaV Sharma on Tue, Sep 05, 2000 rearranged electrons thusly:

> What I want is that if users A and B are in delhi i.e. [EMAIL PROTECTED] and
> [EMAIL PROTECTED] are in delhi and C and D are in mumbai i.e. [EMAIL PROTECTED] and
> [EMAIL PROTECTED] and what we want is that if a user in delhi [EMAIL PROTECTED]
> sends a mail to [EMAIL PROTECTED] which is on the same server then the mail
> should get to the user's local mailbox immediately.
 
I'd suggest you compile exim or grab an exim rpm ... then rtfm in the exim faq
- there's a way to do this (it'll check if the mail can be delivered locally,
  if not local then it will send it to the mailserver for onward transmission).

In any case, the easiest way is to set up subdomains - delhi.xyz.com,
bombay.xyz.com etc etc - where the user's [EMAIL PROTECTED] is actually an alias for
[EMAIL PROTECTED] etc.  That way, sendmail itself can easily determine that the
user is local and it won't bother to send to the bombay mailserver ...

> The suers are using normal mail clients like outlook express so pine and
> MUTT are not good options.
 
Whatever it be ;)  The best way for mailing inside your network without much
hassle is to set up a UUCP connection between your local lan servers - and have
a uucp-smtp gateway at the local mailserver.

If you had static IPs for each lan then it'd be trivial to alias the user's
mailboxes to [EMAIL PROTECTED], [EMAIL PROTECTED] etc - the delivery would
be local / across the net quite intelligently, that way.

For lans connected to the net via dialups, you might try UUCP if you dont want
to go for lots of static ips, leased lines etc etc.

-suresh


----------------------------------------------
Find out more about this and other Linux India 
mailing lists at http://lists.linux-india.org/

Reply via email to