LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   all experts, please help me with sendmail configuration! (https://www.linuxquestions.org/questions/linux-networking-3/all-experts-please-help-me-with-sendmail-configuration-157787/)

dingzihang 03-14-2004 11:00 PM

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

DavidPhillips 03-15-2004 11:29 PM

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

dingzihang 03-15-2004 11:54 PM

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

DavidPhillips 03-17-2004 10:03 PM

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.


All times are GMT -5. The time now is 10:41 PM.