Be careful with use of 'sendmail' in that - I've seen a lot of issues with the stack size being limited when invoked from within freeswitch preventing invocation of larger binaries like sendmail. Suggest trying with 'msmtp' or similar instead.

Alternatively, raise the stack size before invoking freeswitch. (This will increase memory consumption significantly though if you have a lot of phones.)

On my instance, I just did a small wrapper script in perl that raised the stack size before execing msmtp/sendmail, but msmtp should probably work by itself.

-- Nathan

From: Sean Devoy <sdevoy@bizfocused.com>
Sent: Wed, Oct 30, 2019 11:12 AM CDT
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: [Freeswitch-users] mod_voicemail send email --- lost

Can anyone please help me with voicemail and sendmail? This looks like it should be so basic, but I am lost.

 

Thanks,

Sean

 

From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Sean Devoy
Sent: Tuesday, October 29, 2019 5:09 PM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: [Freeswitch-users] mod_voicemail send email --- lost

 

Hi,

 

I recently upgraded to v 1.10 on Debian 10.  My log shows emails being mailed just fine.  However, I cannot find them on the recipient end.  I have searched all folders and spam.

 

Any help would be greatly appreciated.

 

I tested with this first:

sendmail -vt < ./mailtest.txt

mailtest.txt is:

To: sdevoy@bizfocused.com

Subject: FreeSwitch sendmail test two

From: freeswitch@bizfocused.com

 

And here goes the e-mail body, test test test..

 

That works fine.  But FreeSwitch emails do not.

Switch.config.xml has:

    <param name="mailer-app" value="/usr/sbin/sendmail"/>

    <param name="mailer-app-args" value="-t"/>

    <param name="dump-cores" value="yes"/>

 

The extension params for this extension are:

          <param name="vm-mailto" value="sdevoy@bizfocused.com"/>

          <param name="vm-mailfrom" value="voicemail@bizfocused.com"/>

          <param name="vm-email-all-messages" value="true"/>

          <param name="vm-attach-file" value="true" />

 

The FS log says:

2019-10-29 20:41:28.276313 [DEBUG] mod_voicemail.c:2832 Deliver VM to 220@voicemail_BFIS

2019-10-29 20:41:28.276313 [DEBUG] mod_voicemail.c:1925 Update MWI: Processing for 220@voicemail_BFIS in inbox

2019-10-29 20:41:28.276313 [DEBUG] mod_voicemail.c:1950 Update MWI: Messages Waiting yes

2019-10-29 20:41:28.276313 [DEBUG] mod_voicemail.c:1951 Update MWI: Update Reason NEW

2019-10-29 20:41:28.276313 [DEBUG] mod_voicemail.c:1952 Update MWI: Message Account 220@voicemail_BFIS

2019-10-29 20:41:28.276313 [DEBUG] mod_voicemail.c:1953 Update MWI: Voice Message 1/0

2019-10-29 20:41:28.876348 [DEBUG] switch_utils.c:1298 Emailed file [/tmp/mail.157238168887fe] to [sdevoy@bizfocused.com]

2019-10-29 20:41:28.876348 [DEBUG] mod_voicemail.c:3042 Sending message to sdevoy@bizfocused.com

0735ca19-76d1-460e-9571-ef499f962cd1 2019-10-29 20:41:28.876348 [DEBUG] switch_core_session.c:2905 sofia/internal/14108084699@64.136.173.31 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)

0735ca19-76d1-460e-9571-ef499f962cd1 2019-10-29 20:41:28.876348 [DEBUG] switch_core_state_machine.c:651 (sofia/internal/14108084699@64.136.173.31) State EXECUTE going to sleep

0735ca19-76d1-460e-9571-ef499f962cd1 2019-10-29 20:41:28.876348 [DEBUG] switch_core_state_machine.c:585 (sofia/internal/14108084699@64.136.173.31) Running State Change CS_HANGUP (Cur 2 Tot 327)

0735ca19-76d1-460e-9571-ef499f962cd1 2019-10-29 20:41:28.876348 [DEBUG] switch_core_state_machine.c:848 (sofia/internal/14108084699@64.136.173.31) Callstate Change ACTIVE -> HANGUP

0735ca19-76d1-460e-9571-ef499f962cd1 2019-10-29 20:41:28.876348 [DEBUG] switch_core_state_machine.c:850 (sofia/internal/14108084699@64.136.173.31) State HANGUP

 

Mail.log for this time period:

Oct 29 20:46:46 fs-bfis2 sendmail[15253]: x9TKkkOP015253: from=root, size=153, class=0, nrcpts=1, msgid=<201910292046.x9TKkkOP015253@fs-bfis2.bizfocused.com>, relay=root@localhost

Oct 29 20:46:46 fs-bfis2 sm-mta[15261]: x9TKkkDb015261: from=<root@fs-bfis2.bizfocused.com>, size=389, class=0, nrcpts=1, msgid=<201910292046.x9TKkkOP015253@fs-bfis2.bizfocused.com>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]

Oct 29 20:46:46 fs-bfis2 sm-mta[15261]: STARTTLS=client, relay=bizfocused-com.mail.protection.outlook.com., version=TLSv1.2, verify=FAIL, cipher=ECDHE-RSA-AES256-SHA384, bits=256/256

Oct 29 20:46:48 fs-bfis2 sm-mta[15261]: x9TKkkDb015261: to=<sdevoy@bizfocused.com>, ctladdr=<root@fs-bfis2.bizfocused.com> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30389, relay=bizfocused-com.mai...ction.outlook.com. [104.47.37.36], dsn=2.0.0, stat=Sent (<201910292046.x9TKkkOP015253@fs-bfis2.bizfocused.com> [InternalId=15448997367314, Hostname=BN6PR01MB2611.prod.exchangelabs.com] 8530 bytes in 0.197, 42.133 KB/sec Queued mail for delivery)

Oct 29 20:46:48 fs-bfis2 sendmail[15253]: x9TKkkOP015253: to=sdevoy@bizfocused.com, ctladdr=root (0/0), delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=30153, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (x9TKkkDb015261 Message accepted for delivery)

Oct 29 20:47:31 fs-bfis2 sendmail[15317]: x9TKlVic015317: from=root, size=153, class=0, nrcpts=1, msgid=<201910292047.x9TKlVic015317@fs-bfis2.bizfocused.com>, relay=root@localhost

Oct 29 20:47:31 fs-bfis2 sm-mta[15320]: x9TKlVxv015320: from=<root@fs-bfis2.bizfocused.com>, size=389, class=0, nrcpts=1, msgid=<201910292047.x9TKlVic015317@fs-bfis2.bizfocused.com>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]

Oct 29 20:47:31 fs-bfis2 sm-mta[15320]: STARTTLS=client, relay=bizfocused-com.mail.protection.outlook.com., version=TLSv1.2, verify=FAIL, cipher=ECDHE-RSA-AES256-SHA384, bits=256/256

Oct 29 20:47:32 fs-bfis2 sm-mta[15320]: x9TKlVxv015320: to=<sdevoy@bizfocused.com>, ctladdr=<root@fs-bfis2.bizfocused.com> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30389, relay=bizfocused-com.mai...ction.outlook.com. [104.47.38.36], dsn=2.0.0, stat=Sent (<201910292047.x9TKlVic015317@fs-bfis2.bizfocused.com> [InternalId=14349485741504, Hostname=MWHPR01MB2414.prod.exchangelabs.com] 8583 bytes in 0.193, 43.379 KB/sec Queued mail for delivery)

Oct 29 20:47:32 fs-bfis2 sendmail[15317]: x9TKlVic015317: to=sdevoy@bizfocused.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30153, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (x9TKlVxv015320 Message accepted for delivery)

Oct 29 20:48:08 fs-bfis2 sendmail[15323]: gethostbyaddr(165.227.222.107) failed: 1

Oct 29 20:48:08 fs-bfis2 sendmail[15323]: gethostbyaddr(10.17.0.8) failed: 1

 

 

Mail.warn:

Oct 29 20:48:08 fs-bfis2 sendmail[15323]: gethostbyaddr(165.227.222.107) failed: 1

Oct 29 20:48:08 fs-bfis2 sendmail[15323]: gethostbyaddr(10.17.0.8) failed: 1

 

Any ideas?

Thanks,

Sean


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
-- 
------------------------------------------------------------
Nathan Neulinger                            nneul@mst.edu
Missouri S&T Information Technology         (573) 341-6679
System Administrator - Architect            (573) 612-1412
System and Desktop Infrastructure Team Manager