No email sent after VM

I’ve done a search thru several wiki’s and thru the forum and believe I have my config files set up correctly as when a voicemail message is left asterisk does output this in the logger:

But the email is never recieved at the email address listed here. I have only had one instance where the recipient actually recieved an email. Could anyone give me some direction on where I should be looking to see what could be going on. I’m sure it’s some small detail I’m missing. But if anyone has any ideas it would be greatly appreciated.

I bet the mail server it is going to is rejecting the mail thinking its spam. Check /var/log/maillog. Also check the bounced message for a better description of why it failed.

THanks for the reply. I did check the loger and you could very well be correct. Here’s what I got from the logger inregards to this email it tried to send:

Nov 9 10:32:41 asterisk1 sendmail[28228]: kA9GWfSV028228: from=asterisk, size=13611, class=0, nrcpts=1, msgid=<Asterisk-0-332890820-225-2645@asterisk1.loca$ Nov 9 10:32:43 asterisk1 sendmail[28230]: kA9GWf8H028230: from=<asterisk@asterisk1.local>, size=13741, class=0, nrcpts=1, msgid=<Asterisk-0-332890820-225-2$ Nov 9 10:32:43 asterisk1 sendmail[28228]: kA9GWfSV028228: to=Ernest Baidoo <e_baidoo@tscci.com>, ctladdr=asterisk (5060/502), delay=00:00:02, xdelay=00:00:$ Nov 9 10:32:43 asterisk1 sendmail[28232]: kA9GWf8H028230: to=<e_baidoo@tscci.com>, ctladdr=<asterisk@asterisk1.local> (5060/502), delay=00:00:01, xdelay=00$ Nov 9 10:32:43 asterisk1 sendmail[28232]: kA9GWf8H028230: kA9GWh8H028232: DSN: Host unknown (Name server: tscci.com: no data known) Nov 9 10:32:43 asterisk1 sendmail[28232]: kA9GWh8H028232: to=<asterisk@asterisk1.local>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=44975, dsn=2.0.$

I’m fairly new to asterisk and linux so if anyone could decypher this for me I would be in forever in your gratitude.

I assume the mail server is trying to look up asterisk1.local which isn’t a domain name of course. If emails are all send to the same domain name, and you don’t control your own mail servers than you can contact the company that hosts your mail and have them whitelist your public IP.

Otherwise you can try getting a domain name and make sure RDNS is all setup.

I changed the hostname in /etc/sysconfig/network to mail.tscci.com and still got:

Nov 9 12:03:45 asterisk1 sendmail[29535]: kA9I3ji0029535: from=asterisk, size=14671, class=0, nrcpts=1, msgid=<Asterisk-1-1473794545-225-2645@asterisk1.loc$ Nov 9 12:03:45 asterisk1 sendmail[29537]: kA9I3jEJ029537: from=<asterisk@asterisk1.local>, size=14801, class=0, nrcpts=1, msgid=<Asterisk-1-1473794545-225-$ Nov 9 12:03:45 asterisk1 sendmail[29535]: kA9I3ji0029535: to=Ernest Baidoo <e_baidoo@tscci.com>, ctladdr=asterisk (5060/502), delay=00:00:00, xdelay=00:00:$ Nov 9 12:03:45 asterisk1 sendmail[29539]: kA9I3jEJ029537: to=<e_baidoo@tscci.com>, ctladdr=<asterisk@asterisk1.local> (5060/502), delay=00:00:00, xdelay=00$ Nov 9 12:03:46 asterisk1 sendmail[29539]: kA9I3jEJ029537: kA9I3kEJ029539: DSN: Host unknown (Name server: tscci.com: no data known) Nov 9 12:03:46 asterisk1 sendmail[29539]: kA9I3kEJ029539: to=<asterisk@asterisk1.local>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=46035, dsn=2.0.$

Is there another location within the asterisk configs that I need to define this?

Does mail.tscci.com resolve back to IP that can get to the Asterisk box?

As angler said above make sure the rdns is set up properly. A lot of mail providers (inluding AOL) will reject the mail if the reverse DNS is set up coeerctly.

Have a look here dnsstuff.com/tools/ptr.ch?ip=69.15.199.232

Look at the comments at the bottom of the page with having two records.

Thanks for the replies. Please bear with me as I am still getting to know linux and asterisk. I’ve been doing some searching on setting up rDNS and checking my network settings on my box as of right now I’ve got the following in my hosts file: 127.0.0.1 localhost 127.0.0.1 mail.insurancetradingpartners.com asterisk1.local asterisk1 localhost

With your suggestions am I setting up asterisk to be it’s own mail server to send out these messages? I ask because I currently have a mail server on site and my thought was that I could just configure my linux box with these settings as if it were one of my client machines and just have it use the existing mail server to send out these messages. Am I incorrect in my assumption? and if so could you point me as to which config files I should be looking into to correct my settings.

Well making some head way. Was looking thru the Bad message quene on my mail server and looks like asterisk got the message to my server. But it’s trying to send the message to e_baidoo@tscci.com. This is the header info in the email I’m going to keep messing with it and see if I can get it to go to the right place but at least we got some progress. [code]Received: from tscci.com by tscci.com
(MDaemon PRO v9.5.2)
with ESMTP id md50000794964.msg
for asterisk@mail.insurancetradingpartners.com; Fri, 10 Nov 2006 09:58:27 -0600
X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29)
X-Spam-Level:
X-Spam-Status: No, score=-4.0 required=4.9 tests=BAYES_00
autolearn=unavailable version=3.1.5
X-Spam-Report:
* -4.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1%
* [score: 0.0000]
Received: from asterisk1.local by tscci.com
(MDaemon PRO v9.5.2)
with ESMTP id md50000794963.msg
for asterisk@mail.insurancetradingpartners.com; Fri, 10 Nov 2006 09:58:22 -0600
Received: from localhost (localhost)
by asterisk1.local (8.13.1/8.13.1) id kAAFwIP4004942;
Fri, 10 Nov 2006 09:58:18 -0600
Date: Fri, 10 Nov 2006 09:58:18 -0600
From: Mail Delivery Subsystem MAILER-DAEMON@asterisk1.local
Message-Id: 200611101558.kAAFwIP4004942@asterisk1.local
To: asterisk@mail.insurancetradingpartners.com
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="kAAFwIP4004942.1163174298/asterisk1.local"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:58:23 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:58:28 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:58:34 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:58:39 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:58:43 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:58:49 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:58:53 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:58:59 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:59:03 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:59:09 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:59:14 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:59:19 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:59:25 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:59:32 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:59:36 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:59:42 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:59:46 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:59:52 -0600
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 09:59:56 -0600
X-Spam-Processed: tscci.com, Fri, 10 Nov 2006 10:00:00 -0600
(not processed: message was sent from localhost)
X-Return-Path:
X-Envelope-From:
X-MDaemon-Deliver-To: asterisk@mail.insurancetradingpartners.com
X-MDAV-Processed: tscci.com, Fri, 10 Nov 2006 10:00:02 -0600

This is a MIME-encapsulated message

–kAAFwIP4004942.1163174298/asterisk1.local

The original message was received at Fri, 10 Nov 2006 09:58:18 -0600
from localhost [127.0.0.1] (may be forged)

----- The following addresses had permanent fatal errors -----
e_baidoo@tscci.com

----- Transcript of session follows -----
550 5.1.2 e_baidoo@tscci.com… Host unknown (Name server: tscci.com: no data known)

–kAAFwIP4004942.1163174298/asterisk1.local
Content-Type: message/delivery-status

Reporting-MTA: dns; asterisk1.local
Received-From-MTA: DNS; localhost
Arrival-Date: Fri, 10 Nov 2006 09:58:18 -0600

Final-Recipient: RFC822; e_baidoo@tscci.com
Action: failed
Status: 5.1.2
Remote-MTA: DNS; tscci.com
Last-Attempt-Date: Fri, 10 Nov 2006 09:58:18 -0600

–kAAFwIP4004942.1163174298/asterisk1.local
Content-Type: message/rfc822

Return-Path: asterisk@mail.insurancetradingpartners.com
Received: from mail.insurancetradingpartners.com (localhost [127.0.0.1] (may be forged))
by asterisk1.local (8.13.1/8.13.1) with ESMTP id kAAFwIP4004940
for e_baidoo@tscci.com; Fri, 10 Nov 2006 09:58:18 -0600
Received: (from asterisk@localhost)
by mail.insurancetradingpartners.com (8.13.1/8.13.1/Submit) id kAAFwI9U004936;
Fri, 10 Nov 2006 09:58:18 -0600
Date: Fri, 10 Nov 2006 09:58:18 -0600
From: Voicemail System asteriskvoicemail@tscci.com
To: Ernest Baidoo e_baidoo@tscci.com
Subject: New message 9 in mailbox 225
Message-ID: Asterisk-8-758469647-225-2645@asterisk1.local
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=“voicemail_822526451308300552”

–voicemail_822526451308300552
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Ernest Baidoo,

There is a new voicemail in mailbox 225:

From:	"Insurance Trading Partners" <7597>
Length:	0:04

[/code]

AHHH…Still can’t get it to go…could anyone provide assistance?

  1. You said that the machine name is suposed to be: mail.tscci.com if so why do you have mail.insurancetradingpartners.com in your hosts folder.
    2)As I mentioned above you have two records set in the RDNS. Have it set to the one that you want to use.

Well mail.tscci.com is my mail server which is on a seperate box than what asterisk is running on. mail.insurancetradingpartners.com resolves to the same IP as mail.tscci.com and after reading your last post about having more than one PTR record I tried the mail.insurancetradingpartners.com. But this was all with the understanding that I was setting up the asterisk box to use my mail server to route messages. I believe this is a reverse DNS problem, but where do I need to configure these settings?

RDNS is set by whom ever owns the IP. They are the ones that have to set it. I think any easier solution would be to just run send mail on the asterisk server and have it send out all of the mail its self.

Thanks for all your help this was a DNS issue

Please supply what you actually did so others will know.

That was the OP’s problem. I’m guessing, but it’s likely that the Asterisk server’s DNS was not set up correctly.