dougbtv / docker-asterisk

Some dockerfiles for whipping up an asterisk server
286 stars 132 forks source link

Enable voicemail to email delivery #75

Open parleer opened 5 years ago

parleer commented 5 years ago

Right now voicemails are not getting delivered to email (default setting) because sendmail is not installed.

parleer commented 5 years ago

Some resources for various mail transfer agents:

sendmail https://www.voip-info.org/asterisk-voicemail-as-email-using-sendmail/

postfix http://jonathanmanning.com/2014/12/28/how-to-asterisk-voicemail-to-email-using-gmail-account/

exim https://www.dreamvps.com/tutorials/install-setup-mailserver-centos-7-vps-exim/ https://www.noreplied.com/how-to-install-exim-on-centos-6/

parleer commented 5 years ago

exim was by far the easiest to setup and configure:

yum -y install epel-release
yum -y install exim

cat >/etc/exim/exim.conf.local <<EOF
@ROUTERSTART@
    smart_route:
    driver = manualroute
    domains = !+local_domains
    transport = remote_smtp
    route_list = * host.name.of.smart.host.server
EOF

In my case, host.name.of.smart.host.server was smtp-relay.gmail.com.

Boom! It works.

fcois93 commented 4 years ago

Hello,

I have this on my synology docker : systemctl start exim Failed to get D-Bus connection: Operation not permitted

know you why please?

mimusica commented 4 years ago

@fcois93 https://stackoverflow.com/questions/50393525/failed-to-get-d-bus-connection-operation-not-permitted

mimusica commented 4 years ago

@parleer Once we've added a docker-compose file, we'll add this functionality.

We'll use environment variables in the docker compose file so that you can change it to your needs.