cancel
Showing results for 
Search instead for 
Did you mean: 

Mail Routing

U.SivaKumar_2
Honored Contributor

Mail Routing

Hi ,

Assume I have two servers A and B hosting email service with sendmail for same domain xyz.com. I have 50 users in server A and 50 users in Server B. All users will have sender address in this format - user_name@xyz.com

user in server A should able to send mail to other users in server A and also server B. How to do mail routing without using LDAP ?.

regards,

U.SivaKumar.
Innovations are made when conventions are broken
3 REPLIES
James Specht
Trusted Contributor

Re: Mail Routing

We have a similiar setup here. I have 12 servers holding my users actual email accounts. All users are known as user_name@abc.edu. What I have done is in our primary mail server for the domain I have an alias file that points all individuals to the correct server. So jim@abc.edu is aliased to jim@serverA.abc.edu and joe@abc.edu is aliased to joen@serverB.abc.edu. This alias file is then cloned to all the other email servers so everyone is in sync and can deliver their own mail internally.

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
Steven E. Protter
Exalted Contributor

Re: Mail Routing

/etc/aliases

On all the systems

user_name@xyz.com: user_name@servername.xyz.com


The file is tab delimited.

That change will start working as soon as you implement it, though its always a good idea to bounce the sendmail daaemon with a service sendmail restart

I like James's idea. I may modify it to provide failover mail queing between my three domain servers.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: Mail Routing

If you have some predictable pattern to the users on the given systems, you could use the 'virtual user table' to redirect them easier (for groupings) than the aliases file.
One long-haired git at your service...