LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-14-2004, 11:00 PM   #1
dingzihang
LQ Newbie
 
Registered: Mar 2004
Posts: 9

Rep: Reputation: 0
Angry all experts, please help me with sendmail configuration!


Dear experts,

i am newbie in linux, i have the following questions about sendmail configurations. i try to solve it for a whole week but at last i failed, please help me to solve it.


this is the basic setting of my linux server:


Domain 1

name server : ns1.domain1.com ip:***.***.***.152
domain 1 domain1.com ip:***.***.***.152
mail server mail.domain1.com ip:***.***.***.152

there is one user in the domain which email box is
user1@domain1.com

Domain 2

name server 1: ns1.domain1.com ip:***.***.***.152
domain 2 domain2.com ip:***.***.***.154
mail server mail.domain2.com ip:***.***.***.154

there is one user in the domain which email box is
user2@domain2.com

is there anything wrong with the dns setting? since my second domain use the same domain name server as domain1.

also the host name of my server is ns1.domain1.com

in my sendmail configurations

i have add domain 2 in the local domain file, and i have add in the user2 to the virtual user table, and i made the database file.

now my problems comes



i can send email to user1@domain1.com

i can send email to user2@domain1.com

i can not send email to user2@domain2.com


and i can get the reply of the mail said it can not find user2@domain2.com

when i check the mail log file in the server, there is nothing related to the failer of sending mail to user2@domain2.com

can anyone help me to solve it? i really need your help. since my server is used in web hosting, if i can not solve the problem, i can not put my clients web inside since they need their mails.

if there is good reference about web hosting server set-up, please let me know.

thanks


zihang
 
Old 03-15-2004, 11:29 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I think I'm confused as to what you can and cannot do. Please explain where you can send from as well as to.

You could try this..

put in your domain instead of mine.


dig MX dcphillips.net

; <<>> DiG 9.2.3 <<>> MX dcphillips.net
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19597
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 2, ADDITIONAL: 5

;; QUESTION SECTION:
;dcphillips.net. IN MX

;; ANSWER SECTION:
dcphillips.net. 86400 IN MX 20 mail.dcphillips.net.
dcphillips.net. 86400 IN MX 60 iris1.directnic.com.
dcphillips.net. 86400 IN MX 60 iris2.directnic.com.
dcphillips.net. 86400 IN MX 80 mx.linuxquestions.org.

;; AUTHORITY SECTION:
dcphillips.net. 83748 IN NS ns0.directnic.com.
dcphillips.net. 83748 IN NS ns1.directnic.com.

;; ADDITIONAL SECTION:
mail.dcphillips.net. 83748 IN A 68.63.77.127
iris1.directnic.com. 196 IN A 204.251.10.81
iris2.directnic.com. 685 IN A 204.251.10.82
ns0.directnic.com. 141863 IN A 204.251.10.100
ns1.directnic.com. 141863 IN A 206.251.177.2

;; Query time: 296 msec
;; SERVER: 205.171.3.65#53(205.171.3.65)
;; WHEN: Mon Mar 15 23:07:52 2004
;; MSG SIZE rcvd: 263



Check to see if the answer section shows to right ip address.


Now try this...


telnet mailserver 25

see if the mailserver answers, if so enter this

ehlo hostname

mail from: user

rcpt to: user

data

testing
.


check the maillog


tail -f /var/log/maillog
 
Old 03-15-2004, 11:54 PM   #3
dingzihang
LQ Newbie
 
Registered: Mar 2004
Posts: 9

Original Poster
Rep: Reputation: 0
question

thank you for your reply.

can you tell me where is the file you ask me to modify?

i can send mail to user1@domain1.com

but i can not send mail to user2@domain2.com

through hotmail.com.

but i can send mail locally which means i can use user1@domain1.com to send mail user2@domain2.com


regards

zihang
 
Old 03-17-2004, 10:03 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
There was no file to modify in my post, just some commands to test the status of your DNS and to try to telnet into the system.
 
  


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
Sendmail Configuration - I need Help ukjairaj Linux - Networking 5 06-23-2005 12:26 PM
Linux: By Experts - For Experts Cinematography General 10 05-12-2005 02:14 AM
Sendmail configuration MichaelING AIX 0 07-02-2004 04:23 AM
Sendmail Configuration arshad Red Hat 3 12-14-2003 12:11 AM
any sendmail experts here? RazorH Linux - Software 2 02-22-2003 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:58 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