LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-18-2009, 04:08 PM   #1
kishorerhce508
LQ Newbie
 
Registered: Oct 2008
Posts: 26

Rep: Reputation: 15
Smile how to "split" a domain's email between multiple locations


Hi all, this is Kishore. I need help for u people in this concept.

I configured a domain ex. kkd.com with some users with user@kkd.com mail ids and able to send/receive mails local systems and from external domains like gmail.com,yahoo.com.... and now i want to configure some users in other server located in US with same domain kkd.com

Now how can i send mails to the users that are in us server
ex. my server I had user user@kkd.com and my US server had a user new@kkd.com when I send mails from gmail or yahoo.com the mails must be sent to users mailbox I can send mails to user@kkd.com but unable to send mails to new@kkd.com (US server user) how can I fix this issue.I need help regarding this.

Iam using REDHAT RHEL 5.1 OS AND SENDMAIL AS MY MAIL SERVER...






THANKS AND REGARDS
KISHORE KUMAR DATLA
 
Old 06-18-2009, 05:18 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Who is the primary mx for the domain kkd.com? I guess it's your server, as you can receive mails from gmail etc.
Now the server in US should have a FQDN (ex. us.kkd.com). What you can do is to use virtusertable to distinguish local from remote users:
Code:
user@kkd.com user
new@kkd.com new@us.kkd.com
The line for the local user is not needed, but it's good to have so you can have an overview of all your users (local and remote).
After editing /etc/mail/virtusertable you should run
Code:
makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable
and restart sendmail
 
Old 06-19-2009, 12:21 AM   #3
kishorerhce508
LQ Newbie
 
Registered: Oct 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
Who is the primary mx for the domain kkd.com? I guess it's your server, as you can receive mails from gmail etc.
Now the server in US should have a FQDN (ex. us.kkd.com). What you can do is to use virtusertable to distinguish local from remote users:
Code:
user@kkd.com user
new@kkd.com new@us.kkd.com
The line for the local user is not needed, but it's good to have so you can have an overview of all your users (local and remote).
After editing /etc/mail/virtusertable you should run
Code:
makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable
and restart sendmail


Hi Bathory thanks for your valuable suggestion. i had another query actually i dont know the US doamin name and they r not providing it to me and they provided only public and private ip of that server with that ip I have to configure.
How can i transfer mails to their users through ip address please help me in this and my mx record is : ex: IN MX 5 kkd.com
I am using RHEL 5.1 and sendmail as mail server......
 
Old 06-19-2009, 12:49 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If you have only the public IP of the other mail server, then the entry in virtusertable should be changed to:
Code:
new@kkd.com new@[x.x.x.x]
 
Old 06-19-2009, 12:19 PM   #5
kishorerhce508
LQ Newbie
 
Registered: Oct 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
If you have only the public IP of the other mail server, then the entry in virtusertable should be changed to:
Code:
new@kkd.com new@[x.x.x.x]


Hi Bathory, I am very very thankful for your valuable suggestions and for your fast response. I followed your suggestions and finally got the result i.e. earlier when I send a mail to the user I would get a error like unknown user or fatal error in address now I am not getting any errors. Now I had another issue the user is not able to receive message send by me can u help me in this.........

my server kkd.com is Linux server and the us server is Windows 2003 with outlook and exchange for mails................

I will be waiting for your mail


THANKS AND REGARDS
KISHORE KUMAR.D.
 
Old 06-19-2009, 03:37 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Check your logs (usually /var/log/maillog) to see if the mail is sent to the Exchange server. Then it's a problem for the admin there to setup Exchange so it can deliver the mail to the user.
You can also use telnet to the remote server to test delivery:
Code:
telnet x.x.x.x 25
ehlo kkd.com
mail from: user@kkd.com
rcpt to: new@kkd.com
data
subject: Test
It's a test
.
quit
Write the commands above one by one waiting the server response after each command. The dot "." is necessary as it means the end of the message.
 
Old 06-22-2009, 11:34 AM   #7
kishorerhce508
LQ Newbie
 
Registered: Oct 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Wink

Quote:
Originally Posted by bathory View Post
Check your logs (usually /var/log/maillog) to see if the mail is sent to the Exchange server. Then it's a problem for the admin there to setup Exchange so it can deliver the mail to the user.
You can also use telnet to the remote server to test delivery:
Code:
telnet x.x.x.x 25
ehlo kkd.com
mail from: user@kkd.com
rcpt to: new@kkd.com
data
subject: Test
It's a test
.
quit
Write the commands above one by one waiting the server response after each command. The dot "." is necessary as it means the end of the message.

Hi Bathory,I thank you once again finally I learned many things from you. Thanks for providing me valuable information. Finally i didn't succeed, i used telnet command for checking status of port 25 in linux server it is working but from windows server no reply I think it's problem in windows server so I will ask them to enable the port 25 and check the status...

TAKE CARE BYE............

Thanks and regards
KISHORE KUMAR .D.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Multiple definition of" and "undefined reference to" in QT Creator with QJson lib echelon89 Programming 1 05-01-2009 06:48 AM
Split out from "Awesome machines" dd thread in Newbie AwesomeMachine General 18 08-27-2008 09:06 AM
Zip/Gzip "split" archives? Megamieuwsel Linux - General 2 01-10-2004 09:59 AM
x11 "split screen" on sony vaio picturebook pcg-c1xd Kerridis Linux - Laptop and Netbook 1 01-04-2004 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration