1836970 Members
2506 Online
110111 Solutions
New Discussion

sendmail prob

 
khilari
Regular Advisor

sendmail prob

Hi guys, I am posting the outputs of three emails that I sent out from the box which was having trouble with sendmail. Now, if u see the first 2, u see MAIL From: SIZE=20, but in the third one it doesn’t. I also did a nslookup on the domains of the first 2 and added them to the /etc/hosts (the last 2 entries)

/etc/hosts
142.238.64.147 caremgr caremgr cm
127.0.0.1 localhost loopback
142.238.64.148 das1 das #tns
142.238.64.61 cln h8193n2
142.238.64.63 med pc h8193n1
142.238.64.65 fin h8193n3
142.238.64.71 dns
139.177.222.183 mckhboc.com
209.209.51.11 mckesson.com

But the problem is that the third one that is my own domain, stjosham.on.ca. I am not getting any emails from the server. When I do a nslookup on stjosham.on.ca I get back

Care Manager 16>nslookup stjosham.on.ca
Using /etc/hosts on: caremgr

Name: stjosham.on.ca

But I don’t get any ip address to put it in the /etc/hosts file, but keep one thing in mind that it is our own domain.

The output of the emails look fine, but unfortunately they are not going through.

EMAIL1:
Care Manager 7>sendmail -v csurvey@itb.mcbkhoc.com < /tmp/mujee
Dec 13 09:45:40 caremgr sendmail[20411]: unable to qualify my own domain n
sing short name
csurvey@itb.mckhboc.com... Connecting to mail1.mckhboc.com. via esmtp...
220 mail1.mckhboc.com Outbound Mail1 SMTP Relay Service ready
>>> EHLO caremgr.stjosham.on.ca
250-mail1.mckhboc.com Hello
250-DSN
250 SIZE 31457280
>>> MAIL From: SIZE=20
250 OK
>>> RCPT To:
250 OK
>>> DATA
354 Start mail input; end with .
>>> .
250 OK - Data received
csurvey@itb.mckhboc.com... Sent (OK - Data received)
Closing connection to mail1.mckhboc.com.
>>> QUIT
221 mail1.mckhboc.com Service closing connection



EMAIL2:
Care Manager 8>sendmail -v Justin.Adams@McKesson.com < /tmp/mujee
Dec 13 09:46:56 caremgr sendmail[20463]: unable to qualify my own domain n
sing short name
Justin.Adams@McKesson.com... Connecting to mail4.mckesson.com. via esmtp..
220 mail4.mckesson.com Outbound Mail1 SMTP Relay Service ready
>>> EHLO caremgr.stjosham.on.ca
250-mail4.mckesson.com Hello
250-DSN
250 SIZE 31457280
>>> MAIL From: SIZE=20
250 OK
>>> RCPT To:
250 OK
>>> DATA
354 Start mail input; end with .
>>> .
250 OK - Data received
Justin.Adams@McKesson.com... Sent (OK - Data received)
Closing connection to mail4.mckesson.com.
>>> QUIT
221 mail4.mckesson.com Service closing connection

EMAIL3:
Care Manager 9>sendmail -v mkhan@stjosham.on.ca < /tmp/mujee
Dec 13 09:47:19 caremgr sendmail[20490]: unable to qualify my own domain n
sing short name
mkhan@stjosham.on.ca... Connecting to e500mail.stjosham.on.ca. via esmtp..
220 e500mail.stjosham.on.ca SCM3200/SMTP Ready.
>>> EHLO caremgr.stjosham.on.ca
250 Requested mail action okay, completed.
>>> MAIL From:
250 Requested mail action okay, completed.
>>> RCPT To:
250 Requested mail action okay, completed.
>>> DATA
354 Enter mail, end with "." on a line by itself.
>>> .
250 Requested mail action okay, completed.
mkhan@stjosham.on.ca... Sent (Requested mail action okay, completed.)
Closing connection to e500mail.stjosham.on.ca.
>>> QUIT
221 Closing connection.
8 REPLIES 8
Geoff Wild
Honored Contributor

Re: sendmail prob

All three have root@caremgr.stjosham.on.ca

Do you mean why does the third not have SIZE=20?

Well, the first 2 connect to an Outbound Mail1 SMTP server and the third straight to e500mail.stjosham.on.ca

Different mail servers.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
khilari
Regular Advisor

Re: sendmail prob

well, my concern is that why isnt the mailing reaching its destination???. It seems that it is working but it is not. What can be the reason ?.
Thanks
Geoff Wild
Honored Contributor

Re: sendmail prob

Okay - first off - your dns resolver isn't working correctly.

What is hosts set to in /etc/nsswitch.conf?

Probably just files.

Should be

files [ NOTFOUND=continue ] dns


Next, your /etc/resolv.conf needs to contain the ip's of your dns servers.


Now, in your own domain, do you have a smart relay server? if yes, then on "Care Manager 9" server in /etc/mail/sendmail.cf set the DS macro to that smart relay server:

DSyoursmartrelayserver.itsdomain.com

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
khilari
Regular Advisor

Re: sendmail prob

well, we have a mail router. Through which all the traffic comes in and goes out. SO do u want me to put in the stjoesdc02.ad.stjosham.on.ca in the DS macro.
U see when i did a nslookup on the mailrouter i got that. 142.238.64.117 is the name server. Kindly have a look at the files outputs. And confirm if i should put stjoesdc02.ad.stjosham.on.ca in the DS macro.

Thanks

Care Manager 3>more /etc/nsswitch.conf
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]


Care Manager 4>cat /etc/resolv.conf
domain stjosham.on.ca
nameserver 142.238.64.117
nameserver 142.238.64.115

(mailrtr)root# nslookup
Default Name Server: stjoesdc02.ad.stjosham.on.ca
Address: 142.238.64.117
Keith Johnson
Valued Contributor

Re: sendmail prob

Khilari,

The DS macro should be set to identifiy the mail relay through which the traffic flows. It can be the IP of the mail relay or a host name, as long as the host name can be resolved.

Also, the "unable to qualify my own domain name using short name" messages you're getting can be corr4ected by settin the Dj$ sendmail macro to the originating server's fully qulaified domain name, or entering the fully qualified domain name in the /etc/hosts file.

Note that if you're running the sendmail daemon, you'll need to stop it and restart it after making your changes.

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
No matter where you go...there you are.
khilari
Regular Advisor

Re: sendmail prob

hi there, well i did add the complete hostname of the relay server and now i cant even sendmail to my yahoo account. I get the following message.
Care Manager 10>sendmail -v ironic707@yahoo.com < /tmp/mujee
Dec 14 10:02:46 caremgr sendmail[6661]: unable to qualify my own domain name (ca
remgr) -- using short name
ironic707@yahoo.com... Connecting to mailrtr.stjosham.on.ca. via relay...
220 mailrtr.stjosham.on.ca ESMTP Sendmail 8.9.3 (PHNE_29774)/8.9.3; Thu, 14 Dec
2006 10:03:55 -0500 (EST)
>>> EHLO caremgr.stjosham.on.ca
250-mailrtr.stjosham.on.ca Hello [142.238.64.147], pleased to meet you
250-EXPN
250-VERB
250-8BITMIME
250-SIZE 12000000
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
>>> MAIL From: SIZE=20
501 Sender domain must exist
ironic707@yahoo.com... Data format error
/dead.letter... cannot open: Permission denied
root... Connecting to local...
root... Sent
Closing connection to mailrtr.stjosham.on.ca.
>>> QUIT
221 mailrtr.stjosham.on.ca closing connection
Geoff Wild
Honored Contributor

Re: sendmail prob

501 Sender domain must exist - you need to set the DM macro to a really domain name. One that exists on the internet.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Andrew Young_2
Honored Contributor

Re: sendmail prob

Hi.

If you want to disable sendmails automatic lookup of domains and leave that to your mail gateway to do that enable the use of the /etc/mail/service.switch

It should contain the following entries:

hosts files
aliases files

Just uncomment the
O ServiceSwitchFile=/etc/mail/service.switch
line in the sendmail.cf file and restart sendmail.

HTH

Andrew
Si hoc legere scis, nimis eruditionis habes