<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'>RESOLVED! For others
fiting a similar problem.... look at /etc/mail/service.switch<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>This is the only way to force
sendmail to not do a DNS lookup (first)...<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </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> </o:p></p>
<p class=MsoNormal><span style='color:#1F497D'>For more info, I grab the
relevant portion of the maillog. It looks like asterisk is trying to send
using the right from email, but it’s getting changed. This would
suggest a sendmail problem, EXCEPT, it works fine when I send mail from the
command line. Can anyone offer ideas?<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </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=<Asterisk-1-208889898-290-2040@pbx.MYDOMAIN.COM>,
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=<voicemail@firewall.MYDOMAIN.COM>,
size=57908, class=0, nrcpts=1,
msgid=<Asterisk-1-208889898-290-2040@pbx.MYDOMAIN.COM>, 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="TEST" <testuser>,
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=<test@MYDOMAIN.COM>, 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> </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> </o:p></p>
<p class=MsoNormal>Since upgrading from asterisk 1.2.x to 1.4.18 I’ve
noticed a change (bug) in the voicemail messaging emailing operation. I
had set serveremail option to:<o:p></o:p></p>
<p class=MsoNormal><o:p> </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> </o:p></p>
<p class=MsoNormal>and under ast 1.2.x messages arrived at user mailboxes from
voicemail@pbx.mydomain.com . However, since upgrading emails arrive from <a
href="mailto:voicemail@firewall.mydomain.com">voicemail@firewall.mydomain.com</a>
(the path from asterisk box to our corp mail server runs through
firewall.mydomain.com). Before someone jumps to the obvious conclusion, I
tried sending mail using “sendmail <a href="mailto:me@mydomain.com">me@mydomain.com</a>”
from the asterisk box, and the return address is correct!! So, Asterisk
is somehow messing up the return address.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>It appears that as of asterisk 1.4.x, voicemail is
incorrectly setting the return address – just how/why I don’t
know. The FROM name is properly set, and the from email is partially set
right (voicemail@) but the remainder of the “serveremail” is wrong.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Is there something else I need to change? Can someone
explain this?<o:p></o:p></p>
<p class=MsoNormal><o:p> </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> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>