• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2263
  • Last Modified:

How to configure trixbox to use smtp.google.com

How do I configure trixbox to send voicemail notifications. I have googled this topic a lot and find a number of promising articles, but they all seem to be missing some vital information.

Following some of these articles I installed sendmail; the maillog entries are below.

I told sendmail to use smtp.google.com.

I installed webmin - the interfaces there are overwhelming - again insufficient guidance available.

I suspect authentication is the issue - how do I specify the gmail password.

Or should I use a different smtp server? Is one built in toTrixbox?
Apr  3 19:34:16 trixbox1 sendmail[8276]: o33NYGwB008276: from=asterisk, size=3439, class=0, nrcpts=1, msgid=<Asterisk-4-2106564531-526-2725@trixbox1.localdomain>, relay=asterisk@localhost
Apr  3 19:34:16 trixbox1 postfix/smtpd[8277]: connect from cpe-075-177-136-251.nc.res.rr.com[127.0.0.1]
Apr  3 19:34:16 trixbox1 postfix/smtpd[8277]: 1B1204AFCB6: client=cpe-075-177-136-251.nc.res.rr.com[127.0.0.1]
Apr  3 19:34:16 trixbox1 postfix/cleanup[8280]: 1B1204AFCB6: message-id=<Asterisk-4-2106564531-526-2725@trixbox1.localdomain>
Apr  3 19:34:16 trixbox1 postfix/qmgr[2411]: 1B1204AFCB6: from=<asterisk@cpe-075-177-136-251.nc.res.rr.com>, size=3894, nrcpt=1 (queue active)
Apr  3 19:34:16 trixbox1 sendmail[8276]: o33NYGwB008276: to="Bob's Office" <bgailer@gmail.com>, ctladdr=asterisk (100/101), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=33439, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 1B1204AFCB6)
Apr  3 19:34:16 trixbox1 postfix/smtpd[8277]: disconnect from cpe-075-177-136-251.nc.res.rr.com[127.0.0.1]
Apr  3 19:34:18 trixbox1 postfix/smtp[8281]: 1B1204AFCB6: to=<bgailer@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.217.26]:25, delay=1.9, delays=0.15/0.01/0.14/1.6, dsn=2.0.0, status=sent (250 2.0.0 OK 1270337658 6si9444334gxk.12)
Apr  3 19:34:18 trixbox1 postfix/qmgr[2411]: 1B1204AFCB6: removed

Open in new window

0
ramrom
Asked:
ramrom
2 Solutions
 
edattoliCommented:
0
 
ramromconsultant Author Commented:
Still trying to address the above.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
edattoliCommented:
0
 
naulivCommented:
Ramrom,

Sendmail is a very bloated application and not very user intuitive. I'm currently using google's SMTP server with ssmtp and it works great.

* If you are using Debian, you can find it here: http://packages.debian.org/source/sid/ssmtp
* If you are using Fedora/Redhat/CentOS, you can install it this way:
    rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
    yum install ssmtp

* Then change in your voicemail.conf:

    mailcmd=/usr/sbin/ssmtp -t

* And the ssmt.conf will look like:

    mailhub=smtp.gmail.com
    hostname=your_asterisk_server_hostname
    AuthUser=username@gmail.com
    AuthPass=googlepassword
    root=user@example.com
    usetls=yes

Hope it works for you too !
0
 
ramromconsultant Author Commented:
Thank you for all the advice. By some magic my trixbox suddenly began sending mail, so I now have nothing to fix
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now