  | |  | Sendmail relay configuration - RHEL 3.0 | Sendmail relay configuration - RHEL 3.0 2005-04-26 - By IECISA.Ortega Gonzalez, Carlos
Back Hi.
The solution to my problem was quite simple in the end. I only had to create the /etc/mail/service.switch file with the following content:
hosts files
aliases files
This way, sendmail doesn't try to resolve the email addresses using the DNS, so I don't even need to configure the DNS client.
Tu sum up, I had to take the following steps:
- Include the ip of the mailhost in the /etc/hosts file.
- Edit the /etc/mail/sendmail.mc file, modify the SMART_HOST line and create the new sendmail.cf.
- Edit the /etc/mail/submit.mc file, modify the last line, and create the new submit.cf .
- Create the /etc/mail/service.switch file.
- Restart sendmail.
I hope this helps other people with the same problem.
Regards,
Carlos Ortega Gonz?lez
Iberia Sistemas
DS/SP/Unidad Prod. Ordenadores
email: HYPERLINK "mailto:iecisa.cortegag@(protected)"iecisa.cortegag@(protected)
Extensi?n: 4691
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.10.3 - Release Date: 25/04/2005
-- ---- ---- ---- ---- ---- ---- ---- ---- --- Has decidido el mejor precio. Has decidido IBERIA.com You?ve chosen the best price. You?ve chosen IBERIA.com -- ---- ---- ---- ---- ---- ---- ---- ---- --- http://www.iberia.com
<html>
<head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style> <!-- /* Font Definitions */ @(protected) {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EstiloCorreo17 {font-family:Arial; color:windowtext;} @(protected) Section1 {size:595.3pt 841.9pt; margin:70.85pt 3.0cm 70.85pt 3.0cm;} div.Section1 {page:Section1;} /* List Definitions */ ol {margin-bottom:0cm;} ul {margin-bottom:0cm;} --> </style>
</head>
<body lang=ES link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Hi.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'>The solution to my problem was quite simple in the end. I only had to create the /etc/mail/service.switch file with the following content:</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'>? ??hosts files</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'>? ??aliases files</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'>This way, sendmail doesn't try to resolve the email addresses using the DNS, so I don't even need to configure the DNS client.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'>Tu sum up, I had to take the following steps:</span>< /font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'> </span></font></p>
<p class=MsoNormal style='margin-left:53.25pt;text-indent:-18.0pt'><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>- <font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'> </span></font></span></font><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Include the ip of the mailhost in the /etc/hosts file.</span></font></p>
<p class=MsoNormal style='margin-left:53.25pt;text-indent:-18.0pt'><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>- <font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'> </span></font></span></font><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Edit the /etc/mail/sendmail.mc file, modify the SMART_HOST line and create the new sendmail.cf.</span></font></p>
<p class=MsoNormal style='margin-left:53.25pt;text-indent:-18.0pt'><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>- <font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'> </span></font></span></font><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Edit the /etc/mail/submit.mc file, modify the last line, and create the new submit.cf .</span></font></p>
<p class=MsoNormal style='margin-left:53.25pt;text-indent:-18.0pt'><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>- <font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'> </span></font></span></font><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Create the /etc/mail/service.switch file.</span></font></p>
<p class=MsoNormal style='margin-left:53.25pt;text-indent:-18.0pt'><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>- <font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'> </span></font></span></font><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Restart sendmail.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'>I hope this helps other people with the same problem. </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'>Regards,</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'> </span></font></p>
<p class=MsoNormal><strong><b><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Carlos Ortega</span></font></b></strong><strong><b> <font face="Times New Roman"> Gonz?lez</font></b></strong></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size: 10.0pt'> Iberia Sistemas</span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size: 10.0pt'> DS/SP/Unidad Prod. Ordenadores</span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size: 10.0pt'> email: <a href="mailto:iecisa.cortegag@(protected)">iecisa .cortegag@(protected)</a> </span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size: 10.0pt'> Extensi?n: 4691</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> </span></font></p>
</div>
</body>
</html> <BR>
<P><FONT SIZE=2>--<BR> No virus found in this outgoing message.<BR> Checked by AVG Anti-Virus.<BR> Version: 7.0.308 / Virus Database: 266.10.3 - Release Date: 25/04/2005<BR> </FONT> </P> <BR>
<P><B><FONT SIZE=2 FACE="Arial">-- ---- ---- ---- ---- ---- ---- ---- ---- ---< /FONT></B></P>
<P><B><FONT SIZE=2 FACE="Arial">Has decidido el mejor precio. Has decidido IBERIA.com </FONT></B></P>
<P><FONT SIZE=2 FACE="Arial">You?ve chosen the best price. You?ve chosen IBERIA.com </FONT></P>
<P><FONT SIZE=2 FACE="Arial">-- ---- ---- ---- ---- ---- ---- ---- ---- ---< /FONT></P>
<P><B><FONT SIZE=2 FACE="Arial">http://www.iberia.com </FONT></B></P> <BR>
-- Taroon-list mailing list Taroon-list@(protected) http://www.redhat.com/mailman/listinfo/taroon-list
Earn $52 per hosting referral at Lunarpages.
|
|
 |