<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">So I've managed to see some output from
      the sendmail program in the FS logs. It appears that my fs
      instance isn't correctly setting its domain?<br>
      <br>
      the FS box has a fqdn, and I also set the domain parameter in the
      vars.xml file, but still the voicemail is sent with a from address
      of an IP address.<br>
      <br>
      Any ideas?<br>
      <br>
      Net::SMTP&gt;&gt;&gt; Net::SMTP(2.33)<br>
      Net::SMTP&gt;&gt;&gt;   Net::Cmd(2.30)<br>
      Net::SMTP&gt;&gt;&gt;     Exporter(5.71)<br>
      Net::SMTP&gt;&gt;&gt;   IO::Socket::INET(1.35)<br>
      Net::SMTP&gt;&gt;&gt;     IO::Socket(1.37)<br>
      Net::SMTP&gt;&gt;&gt;       IO::Handle(1.35)<br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 220 mb.xyz.com.au ESMTP
      Postfix (Debian/GNU)<br>
      Net::SMTP=GLOB(0x23f7748)&gt;&gt;&gt; EHLO localhost.localdomain<br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 250-mb.bongalong.st<br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 250-PIPELINING<br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 250-SIZE 10240000<br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 250-VRFY<br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 250-ETRN<br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 250-STARTTLS<br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 250-ENHANCEDSTATUSCODES<br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 250-8BITMIME<br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 250 DSN<br>
      Net::SMTP=GLOB(0x23f7748)&gt;&gt;&gt; MAIL
      FROM:<a class="moz-txt-link-rfc2396E" href="mailto:1002@192.168.1.3">&lt;1002@192.168.1.3&gt;</a><br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 501 5.1.7 Bad sender address
      syntax<br>
      Net::SMTP=GLOB(0x23f7748)&gt;&gt;&gt; RCPT
      TO:<a class="moz-txt-link-rfc2396E" href="mailto:jason@xyz.com.au">&lt;jason@xyz.com.au&gt;</a><br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 503 5.5.1 Error: need MAIL
      command<br>
      Net::SMTP=GLOB(0x23f7748)&gt;&gt;&gt; DATA<br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 503 5.5.1 Error: need RCPT
      command<br>
      Net::SMTP=GLOB(0x23f7748)&gt;&gt;&gt; QUIT<br>
      Net::SMTP=GLOB(0x23f7748)&lt;&lt;&lt; 221 2.0.0 Bye<br>
      2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633
      Session 3 (loopback/voicemail-a) Ended<br>
      2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637
      Close Channel loopback/voicemail-a [CS_DESTROY]<br>
      2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633
      Session 4 (loopback/voicemail-b) Ended<br>
      2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637
      Close Channel loopback/voicemail-b [CS_DESTROY]<br>
      <br>
      <br>
      On 20/02/2015 7:10 pm, Sergey Safarov wrote:<br>
    </div>
    <blockquote
cite="mid:CAHtxdDd8CRENTyNoi7FOn3yuy+fyCshEiknfhvhZcg36q=JFuA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <p>You mailer is not understand "mailer-app-args" has been
          configured in "switch.conf.xml"</p>
        <p>Remove extra arg or add required</p>
        <br>
        <div class="gmail_quote">пт, 20 февр. 2015, 7:49, Jason Lewis
          &lt;<a moz-do-not-send="true" href="mailto:jason@dickson.st"
            target="_blank">jason@dickson.st</a>&gt;:<br>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
            <br>
            I've been trying to make freeswitch email voicemails but as
            far as I can<br>
            tell, it never even calls sendmail.<br>
            <br>
            I have setting mailer-app to "sendmail" and
            "/usr/sbin/sendmail" to no<br>
            avail. I can successfully send an email from the commandline
            using<br>
            sendmail. (sendmail in this case is provided by postfix)<br>
            <br>
            I see no emails in the postfix mail logs when I leave a
            voicemail message.<br>
            <br>
            I also tried creating a shell just to see if it even gets
            called from<br>
            fs, but it does not get called when a voicemail is
            deposited:<br>
            #!/bin/bash<br>
            echo $(date --rfc-3339=ns): $* &gt;&gt;
            /tmp/freeswitchsendmail.log<br>
            <br>
            After every change, I have run reloadxml and reload
            mod_voicemail. I<br>
            have also tried restarting freeswitch.<br>
            <br>
            I am running the debian packages of FreeSWITCH Version
            1.4.15-1~64bit<br>
            (-1 64bit)<br>
            <br>
            my configuration is based on the vanilla configuration with
            only very<br>
            minor changes.<br>
            <br>
            I'm at a loss as to how to debug further, but I'm pretty
            sure the<br>
            mailer-app is never called. Is there some setting I'm
            missing or<br>
            something obvious I'm not doing?<br>
            <br>
            <br>
            My config:<br>
            1001.xml:<br>
            &lt;include&gt;<br>
              &lt;user id="1001"&gt;<br>
                &lt;params&gt;<br>
                  &lt;param name="password"
            value="$${default_password}"/&gt;<br>
                  &lt;param name="vm-password" value="1001"/&gt;<br>
                  &lt;param name="vm-mailto" value="<a
              moz-do-not-send="true" href="mailto:jason@xyz.com.au"
              target="_blank">jason@xyz.com.au</a>"/&gt;<br>
                  &lt;param name="vm-mailfrom" value="<a
              moz-do-not-send="true"
              href="mailto:vm@freeswitch.xyz.com.au" target="_blank">vm@freeswitch.xyz.com.au</a>"/&gt;<br>
                  &lt;!-- &lt;param name="vm-message-ext"
            value="wav"/&gt; --&gt;<br>
                &lt;/params&gt;<br>
                &lt;variables&gt;<br>
                  &lt;variable name="toll_allow"
            value="domestic,international,local"/&gt;<br>
                  &lt;variable name="accountcode" value="1001"/&gt;<br>
                  &lt;variable name="user_context" value="default"/&gt;<br>
                  &lt;variable name="effective_caller_id_name"
            value="Extension 1001"/&gt;<br>
                  &lt;variable name="effective_caller_id_number"
            value="1001"/&gt;<br>
                  &lt;variable name="outbound_caller_id_name"<br>
            value="$${outbound_caller_name}"/&gt;<br>
                  &lt;variable name="outbound_caller_id_number"<br>
            value="$${outbound_caller_id}"/&gt;<br>
                  &lt;variable name="callgroup" value="techsupport"/&gt;<br>
                &lt;/variables&gt;<br>
              &lt;/user&gt;<br>
            &lt;/include&gt;<br>
            <br>
            and in switch.conf.xml I have the following set:<br>
            <br>
                &lt;param name="mailer-app"
            value="/usr/sbin/sendmail"/&gt;<br>
                &lt;param name="mailer-app-args" value="-t"/&gt;<br>
            <br>
            <br>
            I made a log at level 7 and put it on the pastebin:<br>
            <br>
            <a moz-do-not-send="true"
              href="https://pastebin.freeswitch.org/23921"
              target="_blank">https://pastebin.freeswitch.org/23921</a><br>
            <br>
            <br>
            Jason Lewis<br>
            <a moz-do-not-send="true" href="http://emacstragic.net"
              target="_blank">http://emacstragic.net</a><br>
            <br>
            <br>
            _________________________________________________________________________<br>
            Professional FreeSWITCH Consulting Services:<br>
            <a moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org"
              target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a></blockquote>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Jason Lewis
<a class="moz-txt-link-freetext" href="http://emacstragic.net">http://emacstragic.net</a></pre>
  </body>
</html>