<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-CA link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>Getting closer....this seems to
be a sendmail issue not asterisk.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>It seems that if sendmail is run
with &#8211;f (from) using any account other than root, the from domain is NOT
trusted, and so sendmail does ns lookup &#8211; which of course resolves back
to our firewall.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>So it seems that I need to tell
sendmail to trust the asterisk account or voicemail from address....<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>OCG
Technical Support<br>
<b>Sent:</b> March-19-08 9:57 AM<br>
<b>To:</b> Asterisk Users List<br>
<b>Subject:</b> Re: [asterisk-users] Bug in voicemail's serveremail setting in
1.4.18<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>For more info, I grab the
relevant portion of the maillog.&nbsp; It looks like asterisk is trying to send
using the right from email, but it&#8217;s getting changed.&nbsp; This would
suggest a sendmail problem, EXCEPT, it works fine when I send mail from the
command line.&nbsp; Can anyone offer ideas?<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Mar 19 09:41:07 pbx
sendmail[28458]: m2JDf7AJ028458: from=voicemail@pbx.MYDOMAIN.COM, size=57772,
class=0, nrcpts=1,
msgid=&lt;Asterisk-1-208889898-290-2040@pbx.MYDOMAIN.COM&gt;,
relay=root@localhost<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Mar 19 09:41:07 pbx sendmail[28459]:
m2JDf7E1028459: from=&lt;voicemail@firewall.MYDOMAIN.COM&gt;, size=57908,
class=0, nrcpts=1,
msgid=&lt;Asterisk-1-208889898-290-2040@pbx.MYDOMAIN.COM&gt;, proto=ESMTP,
daemon=MTA, relay=pbx.MYDOMAIN.COM [127.0.0.1]<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Mar 19 09:41:07 pbx
sendmail[28458]: m2JDf7AJ028458: to=&quot;TEST&quot; &lt;testuser&gt;,
ctladdr=voicemail@pbx.MYDOMAIN.COM (0/0), delay=00:00:00, xdelay=00:00:00,
mailer=relay, pri=87772, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
(m2JDf7E1028459 Message accepted for delivery)<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Mar 19 09:41:07 pbx
sendmail[28460]: STARTTLS=client, relay=[172.31.254.35], version=TLSv1/SSLv3,
verify=FAIL, cipher=RC4-MD5, bits=128/128<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Mar 19 09:41:07 pbx
sendmail[28460]: m2JDf7E1028459: to=&lt;test@MYDOMAIN.COM&gt;, delay=00:00:00,
xdelay=00:00:00, mailer=smtp, pri=118089,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>OCG
Technical Support<br>
<b>Sent:</b> March-19-08 9:41 AM<br>
<b>To:</b> Asterisk Users List<br>
<b>Subject:</b> [asterisk-users] Bug in voicemail's serveremail setting in
1.4.18<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Since upgrading from asterisk 1.2.x to 1.4.18 I&#8217;ve
noticed a change (bug) in the voicemail messaging emailing operation.&nbsp; I
had set serveremail option to:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><a href="mailto:voicemail@pbx.mydomain.com">voicemail@pbx.mydomain.com</a><o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>and under ast 1.2.x messages arrived at user mailboxes from
voicemail@pbx.mydomain.com .&nbsp; However, since upgrading emails arrive from <a
href="mailto:voicemail@firewall.mydomain.com">voicemail@firewall.mydomain.com</a>&nbsp;
(the path from asterisk box to our corp mail server runs through
firewall.mydomain.com).&nbsp; Before someone jumps to the obvious conclusion, I
tried sending mail using &#8220;sendmail <a href="mailto:me@mydomain.com">me@mydomain.com</a>&#8221;
from the asterisk box, and the return address is correct!!&nbsp; So, Asterisk
is somehow messing up the return address.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>It appears that as of asterisk 1.4.x, voicemail is
incorrectly setting the return address &#8211; just how/why I don&#8217;t
know.&nbsp; The FROM name is properly set, and the from email is partially set
right (voicemail@) but the remainder of the &#8220;serveremail&#8221; is wrong.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Is there something else I need to change?&nbsp; Can someone
explain this?<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Thanks,<o:p></o:p></p>

<p class=MsoNormal>MD<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>