Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail Server Is Filling Up

Status
Not open for further replies.

StarTAC

ISP
Jun 23, 2000
424
GH
i have a domain, say user.net and provide e-mail to several users on the mail server... however, the mail server is growing and i need to have a second one, not with a bigger hard drive, but one that will handle the new clients...

how can i work with Linux to be able to know which client's account belongs on which of the two mail servers... ?... because user1 may be on mail server 1 and user2 may be on mail server 2.. when a message is sent to user2@user.net, how can Linux route that mail to mail server 2 instead of mail server 1...

all help will be appreciated...

many thanks
 
There are a couple of ways:
If you are using sendmail you can recompile a config with a virtuser db and other options.
(SAMS sendmail for linux is a good source as
is the info in the sendmail package docs.)
Otherwise you can distribute users across
mail servers by using your /etc/aliases
flat file for redirection.
ex:
user : user@num2.domain.net
user2 : user2@num3.domain.net
etc...
This can be unwieldy with more than a few users.
 
thanks alot for the info.. from what u say this alias file would have to reside on the mail server specified as the MX in the DNS server....?..

i would also like to know how i would do this is the mail servers were to be accessible from a web interface running IMAP... how would the program know which server to connect user2 to.. or this depends on the web interface programming...?...

i will have a look at the virtuser db... my distribution is compiled with it...

thanks for all the help though...

 
As far as i know this should be handled
client side.
If the webmail redirects users then it should be able to use virtusers or
the aliases file.

Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top