Hello all, I keep seeing an error in the logs similar to the following when a VM is emailed. Everything seems to be working just fine so I'm trying to decipher the log entry. 2011-02-21 19:57:48.288269 [ERR] switch_utils.c:699 Unable to execute command: /bin/cat /tmp/mail.12983398676f47 | /usr/sbin/sendmail -f fromuser@fromdomain.com -t touser@todomain.com /bin/cat works as does /usr/sbin/sendmail. This is on Centos 5.5 w/ Postfix instead of sendmail and /var/log/ maillog clearly shows the message being delivered. Do I have something misconfigured? Thanks, Spencer
What user is FS running as and did you test as that user? -MC On Tue, Feb 22, 2011 at 1:02 AM, Spencer Thomason < spencer@5ninesolutions.com> wrote:
Hello all, I keep seeing an error in the logs similar to the following when a VM is emailed. Everything seems to be working just fine so I'm trying to decipher the log entry.
2011-02-21 19:57:48.288269 [ERR] switch_utils.c:699 Unable to execute command: /bin/cat /tmp/mail.12983398676f47 | /usr/sbin/sendmail -f fromuser@fromdomain.com -t touser@todomain.com
/bin/cat works as does /usr/sbin/sendmail.
This is on Centos 5.5 w/ Postfix instead of sendmail and /var/log/ maillog clearly shows the message being delivered. Do I have something misconfigured?
Thanks, Spencer
_______________________________________________ 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 http://www.freeswitch.org
Freeswitch is running as freeswitch, uid 101. I did and yes both /bin/ cat and /usr/sbin/sendmail are executable as the freeswitch user. I checked perms and then verified with sudo there wasn't anything stupid somewhere in the path. The email does get delivered.. it seems if this command didn't get executed the email wouldn't get sent. [admin@pbx10 /]$ ps aux | grep freeswitch 101 5570 0.6 6.4 543132 33976 ? Ssl Feb19 30:16 /opt/ freeswitch/bin/freeswitch -ncwait -nonat Thanks, Spencer On Feb 22, 2011, at 7:17 PM, Michael Collins wrote:
What user is FS running as and did you test as that user? -MC
On Tue, Feb 22, 2011 at 1:02 AM, Spencer Thomason <spencer@5ninesolutions.com
wrote: Hello all, I keep seeing an error in the logs similar to the following when a VM is emailed. Everything seems to be working just fine so I'm trying to decipher the log entry.
2011-02-21 19:57:48.288269 [ERR] switch_utils.c:699 Unable to execute command: /bin/cat /tmp/mail.12983398676f47 | /usr/sbin/sendmail -f fromuser@fromdomain.com -t touser@todomain.com
/bin/cat works as does /usr/sbin/sendmail.
This is on Centos 5.5 w/ Postfix instead of sendmail and /var/log/ maillog clearly shows the message being delivered. Do I have something misconfigured?
Thanks, Spencer
_______________________________________________ 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 http://www.freeswitch.org
_______________________________________________ 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 http://www.freeswitch.org
participants (2)
-
Michael Collins
-
Spencer Thomason