Ramoncio the only thing I would change in the script is who sends the email in vm_general.inc in /etc/asterisk, if you change serveremail, who the email appears to come from which would be the email used to authenticate mail this script works for any email server out there, well gmail and an exchange server hosted in the Amazon Cloud, the only other file I had to change was /etc/postfix/generic and take out anything before the first @ sign so the line looks similar to @pbx.local
username@gmail.com
then do a postmap /etc/postfix/generic and restart postfix or reboot server and email will go through authenticating to just about anyone.
Thanks for this could not have done it for a customer of mine without this.