[SunHELP] query on sendmail

ipek ozge sunhelp at sunhelp.org
Tue Jul 10 07:03:51 CDT 2001


This is a multi-part message in MIME format.

------=_NextPart_000_03AA_01C10951.87DFDA00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Attachment may be useful


Ipek Ozge
We are walking under the SUN and believe ORACLE

----- Original Message -----
From: "TAG DBA" <dbatag at tatainfotech.com>
To: <sunhelp at sunhelp.org>
Sent: Tuesday, July 10, 2001 2:32 PM
Subject: [SunHELP] query on sendmail


I am a Oracle DBA doubling up as a System administrator for a new E450
Solaris 8 server. Am trying my best to setup the machine properly - reading
lots of books and faq's that I can put my hands on.
Have been trying to set up sendmail - and keep getting this message :

sendmail[382]: [ID 702911 mail.crit] My unqualified host name (surya) unknow
n; sleeping for retry

I want to know why this error comes up - I mean whats it that I can set in
sendmail.cf that will help stop this error from popping up. Unfortunately
our librarian informs that  the book "Sendmail" by OReilly which we had till
some time back is lost - hence am quite lost.
Would be gald if someone can help me.(Currently downloading the sendmail faq
from sendmail.org)
Thanks and Regards,
~aslam

_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp


------=_NextPart_000_03AA_01C10951.87DFDA00
Content-Type: text/html;
	name="Sendmail.htm"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Sendmail.htm"

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office"
xmlns:w=3D"urn:schemas-microsoft-com:office:word"
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3DWindows-1254">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 9">
<meta name=3DOriginator content=3D"Microsoft Word 9">
<link rel=3DFile-List href=3D"./Sendmail_files/filelist.xml">
<title> 3</title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>bakis</o:Author>
  <o:Template>Normal</o:Template>
  <o:LastAuthor>bakis</o:LastAuthor>
  <o:Revision>2</o:Revision>
  <o:TotalTime>11</o:TotalTime>
  <o:Created>2001-07-10T11:59:00Z</o:Created>
  <o:LastSaved>2001-07-10T11:59:00Z</o:LastSaved>
  <o:Pages>1</o:Pages>
  <o:Words>365</o:Words>
  <o:Characters>2085</o:Characters>
  <o:Company>Garanti Teknoloji</o:Company>
  <o:Lines>17</o:Lines>
  <o:Paragraphs>4</o:Paragraphs>
  <o:CharactersWithSpaces>2560</o:CharactersWithSpaces>
  <o:Version>9.3821</o:Version>
 </o:DocumentProperties>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
pre
	{margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Courier New";
	mso-fareast-font-family:"Courier New";}
@page Section1
	{size:595.3pt 841.9pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
</head>

<body lang=3DEN-US style=3D'tab-interval:36.0pt'>

<div class=3DSection1><pre><span style=3D"mso-spacerun: =
yes">=A0</span>3.1: How To Set Up a Sun As An Internet Mailhost =
</pre><pre>------------------------------------------------</pre><pre><![=
if !supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>When =
setting up a Sendmail mailhost on the Internet, you should =
follow</pre><pre>the listed steps to ensure that the most basic =
configuration needs are</pre><pre>met. Other modification may be =
necessary to customize to your =
specific</pre><pre>environment.</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>1) Install the =
correct sendmail and sendmail.cf for a mailhost:</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre><span =
style=3D"mso-spacerun: yes">=A0 </span>mv /usr/lib/sendmail =
/usr/lib/sendmail.nonmx</pre><pre><span style=3D"mso-spacerun: yes">=A0 =
</span>cp /usr/lib/sendmail.mx /usr/lib/sendmail</pre><pre><span =
style=3D"mso-spacerun: yes">=A0 </span>cp /etc/mail/main.cf =
/etc/mail/sendmail.cf</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>Note: Under =
Solaris 2.5 and higher, the first two steps, =
involving</pre><pre>/usr/lib, are not necessary.<span =
style=3D"mso-spacerun: yes">=A0 </span>Same holds try for sendmail v8 =
patches</pre><pre>on 2.3. and 2.4.</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>2) In the =
/etc/mail/sendmail.cf file, change the following:</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>a. Comment out =
the line:</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre><span =
style=3D"mso-spacerun: yes">=A0 </span>Dj$m</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>b. Uncomment =
the line:</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre><span =
style=3D"mso-spacerun: yes">=A0 </span>Dj$w.$m</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>c. Change the =
DM macro from "smartuucp" to ddn:</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre><span =
style=3D"mso-spacerun: yes">=A0 </span>DMddn</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>d. Define the =
Dm macro.<span style=3D"mso-spacerun: yes">=A0 </span>Look for an =
example about "podunk.edu" and</pre><pre><span =
style=3D"mso-spacerun: yes">=A0=A0 </span>a blank line).<span =
style=3D"mso-spacerun: yes">=A0 </span>Put this anywhere that blank =
line:</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre><span =
style=3D"mso-spacerun: yes">=A0 </span>Dm"Your domain name" =
</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>example:</pre><=
pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre><span =
style=3D"mso-spacerun: yes">=A0 </span>Dmfoo.bar.com</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre><span =
style=3D"mso-spacerun: yes">=A0=A0 </span>NOTE:<span =
style=3D"mso-spacerun: yes">=A0 </span>Dm NO SPACE AFTER THE =
"m" AND YOUR DOMAIN.</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>e. Comment out =
this line:</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre><span =
style=3D"mso-spacerun: yes">=A0 </span>R$*<@$*.$+>$*<span =
style=3D"mso-spacerun: yes">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
</span>$#$M<span style=3D"mso-spacerun: yes">=A0=A0=A0 </span>$@$R =
$:$1<@$2.$3>$4<span style=3D"mso-spacerun: yes">=A0=A0=A0=A0 =
</span>user at any.domain</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>f. Uncomment =
this line:</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre><span =
style=3D"mso-spacerun: yes">=A0 </span>#R$*<@$*.$+>$*<span =
style=3D"mso-spacerun: yes">=A0=A0=A0=A0=A0=A0=A0=A0=A0 </span>$#ddn $@ =
$2.$3 $:$1<@$2.$3>$4<span style=3D"mso-spacerun: yes">=A0=A0 =
</span>user at any.domain</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>Hint: in vi, =
search for ddn </pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>g. If your =
host receives mail for multiple domains, add a "Cm" =
entry</pre><pre><span style=3D"mso-spacerun: yes">=A0=A0 </span>after =
the "Dm" in Step "d.".<span style=3D"mso-spacerun: =
yes">=A0 </span>NOTE THERE IS A SPACE AFTER the =
"Cm"!</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>e.g.</pre><pre>=
Cm mydomain.com testdomain.com</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>h.<span =
style=3D"mso-spacerun: yes">=A0 </span>If your host is receiving mail =
under different names for "local"</pre><pre><span =
style=3D"mso-spacerun: yes">=A0=A0=A0 </span>delivery, often you need to =
define those hosts in a "Cw" line:</pre><pre>e.g.</pre><pre>Cw =
www another-name and-another</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>3) Verify that =
DNS is working properly. Running the command =
"nslookup</pre><pre>sun.com" should return</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre><span =
style=3D"mso-spacerun: yes">=A0 </span>Name:<span style=3D"mso-spacerun: =
yes">=A0=A0=A0 </span>sun.com</pre><pre><span style=3D"mso-spacerun: =
yes">=A0 </span>Address:<span style=3D"mso-spacerun: yes">=A0 =
</span>192.9.9.1</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>In Solaris, =
dns must be defined in /etc/nsswitch.conf. In SunOS, NIS</pre><pre>must =
be running to use DNS.</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>4) Verify that =
the hosts file has been changed so that the machine =
is</pre><pre>identified as "mailhost".</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>The hosts file =
should look like:</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre><span =
style=3D"mso-spacerun: yes">=A0 </span>xxx.xxx.xxx.xxx<span =
style=3D"mso-spacerun: yes">=A0=A0=A0=A0=A0=A0 </span>doghouse<span =
style=3D"mso-spacerun: yes">=A0=A0=A0=A0=A0=A0=A0 </span>mailhost =
loghost</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>5) Remember to =
stop and restart the sendmail daemon if any changes</pre><pre>have been =
made to the sendmail.cf file.</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>To stop =
sendmail: </pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre><span =
style=3D"mso-spacerun: yes">=A0 </span>/etc/init.d/sendmail =
stop</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>To start =
sendmail: </pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre><span =
style=3D"mso-spacerun: yes">=A0 </span>/etc/init.d/sendmail =
start</pre><pre><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></pre><pre>When all of =
this is complete, the mailhost should be able to =
correctly</pre><pre>deliver its own mail to the internet, and in =
addition it should be</pre><pre>able to accept mail from mailer clients, =
and pass that on to the</pre><pre>internet.</pre></div>

</body>

</html>

------=_NextPart_000_03AA_01C10951.87DFDA00--



More information about the SunHELP mailing list