Posting back in case it helps anyone else. Turns out it was caused by /tmp having spurious permissions (wasn't world writeable). Should have caught it earlier as there was a hint buried in the fs_cli log: 2013-01-19 17:38:02.746424 [WARNING] switch_utils.c:915 Failed to delete file [/tmp/mail.1358617081f8b2] What was strange was that with "sendmail" as the mailer-app, FS still sent an email but with no attachment or body text. With msmtp (or a simple bash wrapper script), nothing appeared to get fired at all. Charlie On 20/01/2013 20:51, Charlie Orford wrote:
As a follow up:
I installed msmtp and changed the mailer-app param in switch.conf.xml to:
<param name="mailer-app" value="msmtp"/>
Then put the following in /etc/msmtprc:
account default host mail.domain.com domain fs.domain.com syslog on
Now calling an extension and leaving a voicemail doesn't even result in a blank email being sent. It's as if FS never invokes msmtp. There's nothing in /var/log/syslog (where msmtp is configured to log to) and no log of a connection attempt on my mail server.
I've spent all day on this trying to get to the bottom of it but am stumped :(
Charlie
On 19/01/2013 20:56, Charlie Orford wrote:
Hi list,
Voice mails get correctly saved in /usr/local/freeswitch/storage/voicemail/default/domain.com/extnum/ but the email sent by mod_voicemail always arrives blank with the wav file attachment missing.
To check the problem wasn't mail server related, I setup a simple postfix "Local only" installation on the same host as FS.
Here's the entire contents of a voicemail email sent to postfix by FS (note: domain.com is substituted for real domain):
# cat /var/mail/root From voicemail@domain.com Sat Jan 19 17:38:03 2013 Return-Path: <voicemail@domain.com> X-Original-To: postmaster@fs.domain.com Delivered-To: postmaster@fs.domain.com Received: by fs (Postfix, from userid 1001) id 9E6AC23E57; Sat, 19 Jan 2013 17:38:03 +0000 (UTC) Message-Id: <20130119183349.9E6AC23E57@fs> Date: Sat, 19 Jan 2013 18:33:49 +0000 (UTC) From: voicemail@angloeuropean.com To: undisclosed-recipients:;
And here are the voicemail specific config params for the extension:
<param name="vm-password" value="1234"/> <param name="vm-attach-file" value="true"/> <param name="vm-mailto" value="postmaster@fs.domain.com"/> <param name="vm-mailfrom" value="voicemail@domain.com"/> <param name="vm-email-all-messages" value="true"/> <param name="vm-message-ext" value="wav"/> <param name="vm-keep-local-after-email" value="true"/>
/usr/local/freeswitch/conf/voicemail.tpl exists and looks correct (contents here: http://pastebin.com/Tr4fvyht )
I took a log (via fsi_cli and /log 7) of a call leaving a voicemail to that extension (here: http://pastebin.com/B1zteGV7 ) but nothing jumps out.
Is there anything else I can do to track down what's causing this?
I'm running the latest stable branch on Debian squeeze: FreeSWITCH Version 1.2.5.3+git~20121229T001759Z~e04eab7902 (git e04eab7 2012-12-29 00:17:59Z)
Thanks, Charlie