attach
Attach causes Asterisk to copy a voicemail message to an audio file and send it to the user as an attachment in an e-mail voicemail notification message. The default is not to do this. Attach takes two values yes or no.
delete
If set to "yes" the message will be deleted from the voicemailbox (after having been emailed).
The delete flag, when used alone (instead of with voicemail broadcast), provides functionality that allows a user to receive their voicemail via email alone.
Note This settting does not always work as a global setting. It is recommended to put this as an option for each voice mailbox that's messages are to be deleted after being emailed.
Note This setting needs to be prefixed with a | not a , in order to set it on a user's extension if other settings are being configured. For example 823 => 1234,office,
[email protected],,attach=yes|delete=1
mailcmd
Mailcmd allows the administrator to override the default mailer command with a defined command. Mailcmd takes a string value set to the desired command line to execute when a user needs to be notified of a voice mail message. The default command line is: '/usr/sbin/sendmail -t'. A useful alternative to sendmail is Exim which many people find easier to configure. Examples
; — you will need to escape any < or > characters with a \
mailcmd=/usr/sbin/sendmail -v -t -f
[email protected] ; use -f to prevent
[email protected]ldomain or similar
mailcmd=/usr/exim/bin/exim -t
; — use the next line for testing
mailcmd=cat \> /tmp/astvm-mail