<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<span style="color: windowtext;" lang="EN">You need</span><br>
<span style="color: windowtext;" lang="EN"></span><br>
<pre><span style="color: windowtext;" lang="EN"><param name="mailer-app-args" value=""/></span></pre>
<span style="color: windowtext;" lang="EN"></span><br>
<span style="color: windowtext;" lang="EN">It's the same as the
nullmailer case documented in the wiki. Ie, you need to override
the default "-t" setting.</span><br>
<span style="color:windowtext" lang="EN"></span><br>
<br>
John<br>
<br>
On 27/01/12 03:14, Rob Morin wrote:
<blockquote cite="mid:19c501ccdca1$beb1a3e0$3c14eba0$@blie-ent.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<base href="x-msg://101/">
<style><!--
/* Font Definitions */
@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Courier New \;color\:windowtext";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle26
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Okay,
this is not expected.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
switched over to ssmtp, since from what I can tell, that
attaching of the voicemail file occurs within Freeswitch.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">It
isn’t sending anything, although, again, I can send it from
the command line.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">When
I run freeswitch from the command line and leave a
voicemail, it gives the following errors:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"
style="margin-bottom:10.0pt;line-height:115%;text-autospace:none"><span
style="font-size:11.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:windowtext"
lang="EN">ssmtp: recipients with -t option not supported<o:p></o:p></span></p>
<p class="MsoNormal"
style="margin-bottom:10.0pt;line-height:115%;text-autospace:none"><span
style="font-size:11.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:windowtext"
lang="EN">ssmtp: recipients with -t option not supported<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The
only problem is, my switch.conf file looks like this,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"
lang="EN"> <param name="mailer-app"
value="/usr/sbin/ssmtp"/><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"
lang="EN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"
lang="EN"> <param name="dump-cores" value="yes"/><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"
lang="EN"> <!--RTP port range --><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"
lang="EN"> <!--<param name="rtp-start-port"
value="16384"/>--><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"
lang="EN"> <!--<param name="rtp-end-port"
value="32768"/>--><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">So,
where is it getting the “-t “ ???<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Just to be safe, I removed the </span><span style="color:windowtext" lang="EN"><param name="mailer-app-args" value="-t"/> </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">line <u>and</u> rebooted. But it is still there?<o:p></o:p></span></pre>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></pre>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank you,<o:p></o:p></span></pre>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Rob</span><span style="color:windowtext" lang="EN"><o:p></o:p></span></pre>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
John [<a class="moz-txt-link-freetext"
href="mailto:freeswitch@earthspike.net">mailto:freeswitch@earthspike.net</a>]
<br>
<b>Sent:</b> Thursday, January 26, 2012 8:41 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated"
href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b> Re: [Freeswitch-users] Sendmail
segfaulting<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Rob,<br>
<br>
sendmail is running as a service, so the segfault could be
being thrown by the sendmail service, not necessarily by the
command-line-app-version that adds mails to the queue (and
then terminates). Most mailers work this way: separate
processes to add the mail to the queue, process the queue,
accept connections on various sockets. FreeSWITCH is written
to wait until the queue-insertion invocation of sendmail is
completed. Thankfully, it doesn't wait until the message is
actually sent on to its next location as, in some cases, that
could take hours if the remote host is down. In your log
below, it looks like sendmail [25200] has happily accepted the
message from FreeSWITCH and queued it for delivery. sendmail
[25207] is the process that has then barfed, after the message
has been queued, which suggests that it is nothing to do with
FreeSWITCH itself. Perhaps there might be a copy of the
message from the crashing process in the message queues in
/var/spool/mail (or similar) which you could look at to see if
there is anything weird in it? But the bottom line is that it
looks like you have pure sendmail problem. Unfortunately,
that's where my knowledge stops as I run Postfix as my main
mailer and ssmtp as a dumb relay. Maybe someone on a CentOS
or sendmail list can help you with the sendmail issue? Or, as
I mentioned earlier, if you don't need a full mailer, you
could remove sendmail and install a simpler mailer such as
ssmtp (as I see you have a relay that needs TLS and for which
authentication appears to be failing).<br>
<br>
John<br>
<br>
PS. The parallel test is to wrap the original command in
parentheses and duplicate it several times on a single command
line, each time followed by an ampersand to put it into the
background, ie:<br>
<br>
rmorin@blie-fs$ ( cat .... | sendmail ...... ... ) & (
cat ..... | sendmail .... ) & .... and so on <br>
<br>
[It maybe that your sendmail queues faster than your shell can
invoke sendmail, so it isn't really in parallel, but then that
should be similar for FreeSWITCH too, so it would be a
'rapid-fire' test instead of a parallel test.]<br>
<br>
On 27/01/12 00:46, Rob Morin wrote: <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">John,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank
you for your help.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
ran the command line as you described, and everything worked
fine.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
should also mention, that some of my extensions do not have
the notifications turned on. And even for them, getting the
message through is hit or miss – sometimes it segfaults,
sometimes it doesn’t. So I don’t necessarily think it’s a
“two message” issue. Also, in looking at the logs, sometimes
I see the segfault appear in the middle of the maillog
logging for the other message. So it doesn’t look like FS is
waiting for the sendmail command to return before executing
the next command. Here’s what I mean…</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New
;color:windowtext","serif"">Jan 26 14:28:50
blie-fs sendmail[25200]: q0QESoi9025200:
Authentication-Warning: blie-fs.blie-ent.com: freeswitch set
sender to <a moz-do-not-send="true"
href="mailto:voicemail@blie-ent.com">voicemail@blie-ent.com</a>
using -f</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New
;color:windowtext","serif"">Jan 26 14:28:50
blie-fs sendmail[25200]: q0QESoi9025200: <a
moz-do-not-send="true"
href="mailto:from=voicemail@blie-ent.com">from=voicemail@blie-ent.com</a>,
size=18662, class=0, nrcpts=1, msgid=<a
moz-do-not-send="true"
href="mailto:201201261428.q0QESoi9025200@blie-fs.blie-ent.com"><201201261428.q0QESoi9025200@blie-fs.blie-ent.com></a>,
relay=freeswitch@localhost</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New
;color:windowtext","serif"">Jan 26 14:28:51
blie-fs sendmail[25201]: q0QESpVj025201: from=<a
moz-do-not-send="true"
href="mailto:voicemail@blie-ent.com"><voicemail@blie-ent.com></a>,
size=19026, class=0, nrcpts=1, msgid=<a
moz-do-not-send="true"
href="mailto:201201261428.q0QESoi9025200@blie-fs.blie-ent.com"><201201261428.q0QESoi9025200@blie-fs.blie-ent.com></a>,
proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New
;color:windowtext","serif"">Jan 26 14:28:51
blie-fs sendmail[25200]: q0QESoi9025200: <a
moz-do-not-send="true"
href="mailto:to=rmorin@blie-ent.com">to=rmorin@blie-ent.com</a>,
<a moz-do-not-send="true"
href="mailto:ctladdr=voicemail@blie-ent.com">ctladdr=voicemail@blie-ent.com</a>
(501/501), delay=00:00:01, xdelay=00:00:00, mailer=relay,
pri=48662, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0,
stat=Sent (q0QESpVj025201 Message accepted for delivery)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Jan 26
14:28:51 blie-fs kernel: [41082.268638] sendmail[25207]:
segfault at 7fff96dffed8 rip 7f158ee0b7fb rsp 7fff96dffea0
error 6</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New
;color:windowtext","serif"">Jan 26 14:28:51
blie-fs sendmail[25203]: STARTTLS=client,
relay=smtp.sendgrid.net., version=TLSv1/SSLv3, verify=FAIL,
cipher=DHE-RSA-AES256-SHA, bits=256/256</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New
;color:windowtext","serif"">Jan 26 14:28:51
blie-fs sendmail[25203]: q0QESpVj025201: to=<a
moz-do-not-send="true" href="mailto:rmorin@blie-ent.com"><rmorin@blie-ent.com></a>,
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=139026,
relay=smtp.sendgrid.net. [174.36.32.204], dsn=2.0.0,
stat=Sent (Delivery in progress)</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">On
this instance, the notification didn’t get through, but the
message did.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">All
of that said, I’m not sure how to run the ‘parallel’ test,
though. (I did run the single test many times in quick
succession with no failures.)</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">My
ulimit –s is set at 8192. And I don’t have any other
arguments, other than ‘-t’.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank
you,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Rob</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
John [<a moz-do-not-send="true"
href="mailto:freeswitch@earthspike.net">mailto:freeswitch@earthspike.net</a>]
<br>
<b>Sent:</b> Thursday, January 26, 2012 6:23 PM<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] Sendmail
segfaulting</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Rob,<br>
<br>
ssmtp sends whatever it's given: FreeSWITCH puts the message
together (in src/switch_utils.c:switch_simple_email()) to make
a fully MIME-compliant message with the attachments read out
of their files and then pipes it into the 'sendmail' (whether
ssmtp, nullmailer, sendemail.py or whatever) program for it to
send/relay it. FreeSWITCH waits for the 'cat | sendmail'
program to return before continuing execution and deleting
files, so file deletion is unlikely to be the issue. Like you
say, it sounds like the problem is not with configuration but
it's also very unlikely to be with file deletion. <br>
<br>
Can you reproduce the fault by running sendmail from the
command line with a suitably formatted mail message[*] as
input? This is pretty much what FreeSWITCH does:<br>
<br>
cat message.txt | <sendmail.app> -f <a
moz-do-not-send="true" href="mailto:noreply@mydomain.com">noreply@mydomain.com</a>
<mailer-args> <a moz-do-not-send="true"
href="mailto:recipient@mydomain.com">recipient@mydomain.com</a><br>
<br>
... with <..> from what you have in
conf/autoload_configs/switch.conf.xml?<br>
<br>
[* 'suitably formatted message' could be one of the successful
ones, view source, then edit to trim off the transport
headers]<br>
<br>
If that is successful, try to replicate your
2-message-scenario by running two of the above commands in
parallel with different input files and see if that generates
a segfault. [If you are a linux noob as well as a FS noob I
can spell this out for you.]<br>
<br>
John<br>
<br>
On 26/01/12 22:04, Rob Morin wrote: <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">John,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">That’s
helpful, but ssmtp doesn’t support attachments so it won’t
support sending the voicemail files.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Additionally,
I’m somewhat stumped on the default ‘sendmail’ option. The
references in the Wiki are basically all ‘configuration’
issues – stack size, etc. The problem I have is that it
isn’t a configuration issue – sometimes it goes through,
sometimes it doesn’t. If it were a configuration issue, it
would never go through (unless it was a resource that was
near its margin). So that’s why I wanted to insert a delay.
It appears to me that the segfault is being caused by the
file getting moved, deleted, or still being open when
sendmail attempts to access it. I wish I had more to go on
though.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank
you,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Rob</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
John [<a moz-do-not-send="true"
href="mailto:freeswitch@earthspike.net">mailto:freeswitch@earthspike.net</a>]
<br>
<b>Sent:</b> Thursday, January 26, 2012 1:49 PM<br>
<b>To:</b> <a moz-do-not-send="true"
href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b> Re: [Freeswitch-users] Sendmail
segfaulting</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Slightly unrelated, but I have been using
the python script sendemail.py until recently when a user
noticed that they were not being emailed some voicemails. I
have since changed to using ssmtp (rather than nullmailer as
my mail server requires a login, TLS on tcp/587). One thing I
noticed, and it may be me that caused it, but the sendemail.py
script had some indentation using (4) spaces and some using
tabs. But the main problem is that the script keeps warning
about the MimeWriter class being deprecated and has no error
reporting or recovery, it seems. For me, it was easier to
install ssmtp than rewrite the python script. If you don't
need a full mail server, I would recommend using a null mailer
like ssmtp or nullmailer.<br>
<br>
John<br>
<br>
On 26/01/12 15:13, Rob Morin wrote: <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
tried to modify the eximcompat.sh script to work with
sendmail. I’m not sure why it didn’t work. It might be that,
for starters, I don’t have exim installed, I have sendmail.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
haven’t tried the python script. Is that the one you use?</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Rob</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
Michael Jerris [<a moz-do-not-send="true"
href="mailto:mike@jerris.com">mailto:mike@jerris.com</a>]
<br>
<b>Sent:</b> Thursday, January 26, 2012 8:09 AM<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] Sendmail
segfaulting</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">delay won't help you. Why didn't the
script work? I know we do this and it works fine. Pretty
sure we use a modified version of the sample in tree.<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Mike<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">On Jan 25, 2012, at 10:43 PM, Rob
Morin wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
saw that, and tried everything I could. Still no
luck.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">My
stack limit is 8192, so that shouldn’t be the
issue. I’m running CentOS x_64.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
tried creating a script as the wiki suggests, so
that I could make changes without having to restart
FS. But that didn’t work either (I’m still a noob).
My goal was to add a sleep delay, in the case that
FS is calling the sendmail command before it’s
completely written and released the email it’s
sending. Any idea how to make that work?<br>
<br>
Thank you,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Rob</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
</div>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in
0in;border-width:initial;border-color:initial">
<div>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
class="apple-converted-space"><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></span><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Michael
Jerris <a moz-do-not-send="true"
href="mailto:[mailto:mike@jerris.com]">[mailto:mike@jerris.com]</a><span
class="apple-converted-space"> </span><br>
<b>Sent:</b><span class="apple-converted-space"> </span>Wednesday,
January 25, 2012 1:57 PM<br>
<b>To:</b><span class="apple-converted-space"> </span>FreeSWITCH
Users Help<br>
<b>Subject:</b><span
class="apple-converted-space"> </span>Re:
[Freeswitch-users] Sendmail segfaulting before
second message is sent</span><o:p></o:p></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Mod_voicemail#Exim4_settings">http://wiki.freeswitch.org/wiki/Mod_voicemail#Exim4_settings</a><o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">On Jan 25, 2012, at 1:31 PM,
Rob Morin wrote:<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif"">For
some extensions, I’ve got FreeSWITCH
configured to send both the voicemail to an
email address and a notification to a cell
phone that there is a message.</span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Sendmail
is segfaulting (error 6) before the second
email message is sent. Sometimes the
notification message is going out, sometimes
the email message goes.</span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif"">If
I am just sending an email, it is *<b>generally</b>*
successful. Although sometimes it fails, so
I really need to fix this.</span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Does
anyone have any suggestions as to how I can
troubleshoot this?<span
class="apple-converted-space"> </span><br>
<br>
(Running CentOS 5.7, sendmail 8.13).</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>
<pre>_________________________________________________________________________<o:p></o:p></pre>
<pre>Professional FreeSWITCH Consulting Services:<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.cudatel.com">http://www.cudatel.com</a><o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>Official FreeSWITCH Sites<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.cluecon.com">http://www.cluecon.com</a><o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>FreeSWITCH-users mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><o:p></o:p></pre>
<pre>UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></pre>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><br>
<br>
<br>
<br>
<o:p></o:p></p>
<pre>_________________________________________________________________________<o:p></o:p></pre>
<pre>Professional FreeSWITCH Consulting Services:<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.cudatel.com">http://www.cudatel.com</a><o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>Official FreeSWITCH Sites<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.cluecon.com">http://www.cluecon.com</a><o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>FreeSWITCH-users mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><o:p></o:p></pre>
<pre>UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></pre>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_________________________________________________________________________<o:p></o:p></pre>
<pre>Professional FreeSWITCH Consulting Services:<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.cudatel.com">http://www.cudatel.com</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Official FreeSWITCH Sites<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.cluecon.com">http://www.cluecon.com</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>FreeSWITCH-users mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><o:p></o:p></pre>
<pre>UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></pre>
<p class="MsoNormal"><o:p> </o:p></p>
</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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.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://wiki.freeswitch.org">http://wiki.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>
</body>
</html>