Voicemail to email issue

Hi all,

I am having a problem with a new install of my Asterisk Server.

I have a fresh install of AsteriskNOW 1.7.1 i386 using Asterisk 1.6.2.19 with FreePBX 2.9.0.7.

My voicemails are not being emailed when they are recorded as voicemails.

I can receive emails sent from the root user through a command line sendmail.
I cannot however, receive sent emails from the root user through the webmin GUI.
I can receive emails from Webmin sent from the ‘asterisk’ user

The following are two entries from /var/log/maillog.

This first entry is the maillog entry after leaving a voicemail and asterisk attempting to send it to to that mailbox’s email address (this message is not received on the recipient side):

Jul 22 07:48:52 pbx sendmail[3054]: p6MDmqF9003054: from=root, size=24032, class=0, nrcpts=1, msgid=<Asterisk-5-1316874074-999-2[email protected]>, [email protected] Jul 22 07:48:53 pbx sendmail[3055]: p6MDmq9D003055: from=<[email protected]>, size=24167, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=pbx [127.0.0.1] Jul 22 07:48:53 pbx sendmail[3054]: p6MDmqF9003054: to="Test" <[email protected]>, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=54032, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p6MDmq9D003055 Message accepted for delivery) Jul 22 07:48:53 pbx sendmail[3057]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128 Jul 22 07:48:55 pbx sendmail[3057]: p6MDmq9D003055: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:03, xdelay=00:00:02, mailer=esmtp, pri=144167, relay=gmail-smtp-in.l.google.com. [209.85.225.27], dsn=2.0.0, stat=Sent (OK 1311363916 hw10si6365489icc.0)

The second entry is the root user sending an email via the command line (which is received by the recipient):

Jul 22 07:51:44 pbx sendmail[3067]: p6MDpb9Z003067: from=root, size=42, class=0, nrcpts=1, msgid=<[email protected]>, [email protected] Jul 22 07:51:44 pbx sendmail[3070]: p6MDpiti003070: from=<[email protected]>, size=361, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=pbx [127.0.0.1] Jul 22 07:51:44 pbx sendmail[3067]: p6MDpb9Z003067: [email protected], ctladdr=root (0/0), delay=00:00:07, xdelay=00:00:00, mailer=relay, pri=30042, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p6MDpiti003070 Message accepted for delivery) Jul 22 07:51:45 pbx sendmail[3072]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128 Jul 22 07:51:47 pbx sendmail[3072]: p6MDpiti003070: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=120361, relay=gmail-smtp-in.l.google.com. [209.85.225.27], dsn=2.0.0, stat=Sent (OK 1311364084 x3si2791399ibh.118)

my /etc/hosts file looks like this:

[CODE]
cat /etc/hosts

Do not remove the following line, or various programs

that require network functionality will fail.

127.0.0.1 pbx.mydomain.com pbx localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
[/CODE]

my /etc/sysconfig/network file looks like this:

[[email protected] ~]# cat /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=pbx

I followed this post, which tells me to comment out the following:
There is a setting in the sendmail.mc file:
EXPOSED_USER(`root’)
[URL]http://forums.fedoraforum.org/showthread.php?t=119984[/URL]
Then i rebuilt the .mc file with

make -C /etc/mail

Any help is much appreciated - I’m starting to tear my hair out over this!!
Thanks in advance!

First mail sent:

Second mail sent:

Is the spelling intentional?
myemail versus MYemail?

whoops - no spelling was not intentional – I had changed all the identifying info (FQDN, email, etc.) before posting this.

In the real output of the maillog, the email addresses are the same (and correct). Same with the FQDN

Thanks for taking the time to help me out! Much appreciated

Well, the log shows:

stat=Sent (OK 1311363916 hw10si6365489icc.0)
stat=Sent (OK 1311364084 x3si2791399ibh.118)

Look in your Gmail spam folder

Yep… you were right. They are coming into my spam folder. I have no filters set up through gmail. I didn’t even check that because whenever I sent an email from the command line utility it does not get flagged as spam.

Is there any reason why the Webmin sent mail (only as root user) as well as the asterisk sendmail is being flagged as spam but not the other emails??

Confused as to whether or not this is something easily remedied or if I have to go about looking for a different solution.

Once again thanks for taking the time to help!!

  • Chris

I think it is because the link in the mail sent from the system. That triggers Gmail to put it in spam if the link is suspicious.