Thanks Brian, but still no luck with the email.. I have configured exim4 so that I can send messages from the command line using 'mail' command and these are sent successfully.

I still get a core dump in the log when freeswitch is trying to send the mail:
/bin/cat: write error: Broken pipe
sh: line 1:  4492 Done(1)                 /bin/cat /tmp/mail.1245811149abdc
      4493 Segmentation fault      (core dumped) | /usr/local/bin/eximcompat.sh -t xxx@xx.com
2009-06-24 12:39:09.285351 [DEBUG] switch_utils.c:554 Emailed file [/tmp/mail.1245811149abdc] to [xxx@xx.com]
2009-06-24 12:39:09.285351 [DEBUG] mod_voicemail.c:2491 Sending message to xxx@xx.com

eximcompat.sh is as described on the wiki:
freeswitch:/# cat /usr/local/bin/eximcompat.sh
#!/bin/bash
exec exim4 -t

Any other thoughts?

From: Brian West <brian@freeswitch.org>
Subject: Re: [Freeswitch-users] email core dump
To: freeswitch-users@lists.freeswitch.org
Message-ID: <7C7A8ED9-ECED-4100-87F6-0875C054EC64@freeswitch.org>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

http://wiki.freeswitch.org/wiki/Mod_voicemail#Exim4_settings

/b

On Jun 21, 2009, at 6:27 AM, Mark Campbell-Smith wrote:

> Hi!
>
> I am trying to email from
> 2009-06-21 20:43:24.273895 [DEBUG] switch_core_codec.c:122 Restore
> original codec.
> 2009-06-21 20:43:24.273895 [DEBUG] mod_voicemail.c:2321 Deliver VM to
> 1000@192.168.0.20
> /bin/cat: write error: Broken pipe
> sh: line 1: 11975 Done(1)                 /bin/cat /tmp/mail.
> 124558382500b1
>     11976 Segmentation fault      (core dumped) | exim4 -t myemail@xx.com
> 2009-06-21 20:43:24.670899 [DEBUG] switch_utils.c:554 Emailed file
> [/tmp/mail.12455810042c7f] to [myemail@xx.com]
>
> I can manually send an email to myself with exim4, but freeswitch
> fails.
>
> Any ideas what I have configured incorrectly?
>
> Thanks
>