[Freeswitch-users] Can't Send emails from within FreeSwitch

Dmitry Saratsky simpot at gmail.com
Sun Feb 27 01:33:41 MSK 2011


Hi All,

Unfortunately I can't send email from within freeswitch.
I have wrote some LUA script that should send emails.
The relevant part of the script:
-----------------
freeswitch.email("user at domain.com", "user at domain.com", "subject: Test
subject.\n", "Test body.")
-----------------

When script runs, it logs the following to console:
-----------------
2011-02-26 23:44:23.624644 [DEBUG] switch_utils.c:709 Emailed data to [
user at domain.com]
-----------------

In my switch.conf.xml I have the following mailer-app config:
-----------------
    <param name="mailer-app" value="sendmail"/>
    <param name="mailer-app-args" value="-t"/>
-----------------

I also have tried to use full path to sendmail app:
-----------------
    <param name="mailer-app" value="/usr/sbin/sendmail"/>
-----------------

I'm using:
CentOS release 5.5 (Final)
FreeSWITCH Version 1.0.head (git-cb6f1ed 2011-02-22 20-25-16 -0500)
postfix-2.3.3-2.1.el5_2 (as MTA)

The problem is, that no mail is received and nothing logged in
/var/log/maillog.
However I can successfully send emails from shell (from within freeswitch's
user) with sendmail -t command.

I have also wrote simple bash script that add some text to /tmp/12.txt on
run and pointed mailer-app (in switch.conf.xml) to this script full patch
file - nothing was added to the file.

Any Ideas?

Thanks,
Dmitry.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110227/df474447/attachment.html 


More information about the FreeSWITCH-users mailing list