  | |  | Sendmail masquerading not working | Sendmail masquerading not working 2005-06-06 - By IECISA.Ortega Gonzalez, Carlos
Back Kevin Jackson wrote:
>make sure you have the package sendmail-cf installed.
>Then make the change in /etc/mail/sendmail.mc
>make -C /etc/mail/
>service sendmail restart
I've tried this, and still the emails keep the original email address.
>I'm presuming this is a typo too in just your email:
>MASQUERADE_AS(`bigcorp.com.')
>MASQUERADE_DOMAIN(`bigcorp.com.')
>should be
>MASQUERADE_AS(`bigcorp.com')
>MASQUERADE_DOMAIN(`bigcorp.com')
>Without the period at the end.
I copied that extract from the RedHat Reference Guide for RHEL 3.0. I've tried using the period at the end, and also not using the period. The result is the same.
I've also noticed that there are differences between this code and my default sendmail.mc file. My default sendmail.mc file has the following values:
FEATURE(always_add_domain)dnl
dnl MASQUERADE_AS(`mydomain.com')dnl
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl FEATURE(masquerade_envelope)dnl
dnl FEATURE(masquerade_entire_domain)dnl
Appart from the dnls, the quotes vary. Which format is correct? Or are both formats ok?
When I send a mail with the -v option, I see
>>> MAIL From:<the original address>
Shouldn't I see
>>> MAIL From:<the new address> ???
Thanks a lot for your help.
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.322 / Virus Database: 267.4.1 - Release Date: 02/06/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> <!-- /* 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;} --> </style>
</head>
<body lang=ES link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10 .0pt; font-family:"Courier New"'>Kevin Jackson wrote:</span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10 .0pt; font-family:"Courier New"'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>>make sure you have the package sendmail-cf installed.</span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>>Then make the change in /etc/mail/sendmail.mc</span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>>make -C /etc/mail/</span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>>service sendmail restart </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've tried this, and still the emails keep the original email address.</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='text-autospace:none'><font size=2 face="Courier New"> <span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>>I'm presuming this is a typo too in just your email:</span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>>MASQUERADE_AS (`bigcorp.com.')</span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>>MASQUERADE _DOMAIN(`bigcorp.com.')</span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>>should be< /span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>>MASQUERADE_AS (`bigcorp.com')</span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>>MASQUERADE _DOMAIN(`bigcorp.com')</span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"> <span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>>Without the period at the end.</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 copied that extract from the RedHat Reference Guide for RHEL 3.0. I've tried using the period at the end, and also not using the period. The result is the same. </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'>I've also noticed that there are differences between this code and my default sendmail.mc file. My default sendmail.mc file has the following values:</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'>FEATURE(always_add_domain)dnl</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'>dnl MASQUERADE_AS(`mydomain.com')dnl</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'>dnl MASQUERADE_DOMAIN(localhost)dnl</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'>dnl FEATURE(masquerade_envelope)dnl</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size: 10.0pt;font-family:Arial'>dnl FEATURE(masquerade_entire_domain)dnl</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'>Appart from the dnls, the quotes vary. Which format is correct? Or are both formats ok?</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'>When I send a mail with the -v option, I see </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'>>>> MAIL From:<the original address>< /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'>Shouldn't I see </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'>>>> MAIL From:<the new address>?????? ???</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'>Thanks a lot for your help.</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 lang=EN-GB style='font-size:12.0pt'>Carlos Ortega</span></font></b></strong> <strong><b><font face="Times New Roman"><span lang=EN-GB> Gonz??lez</span></font></b></strong>< /p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-GB style='font-size:10.0pt'> Iberia Sistemas</span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-GB style='font-size:10.0pt'> DS/SP/Unidad Prod. Ordenadores</span>< /font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-GB style='font-size:10.0pt'> email: </span></font><font size=2><span style='font-size:10.0pt'><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.322 / Virus Database: 267.4.1 - Release Date: 02/06/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.
|
|
 |