Trouble with sending Voicemail notifications

Discussion in 'General' started by EricLomm, Jan 15, 2010.

  1. EricLomm

    Joined:
    May 19, 2009
    Messages:
    20
    Likes Received:
    0
    Hello,

    We are having a problem with sending email notifications from out elastix system to any email addresses. We have bee trying multiple ideas to get this to work and the latest idea that we have tried is the solution that was listed in section 37.5 of "Elastix without Tears" which is to have a domain that has its email hosted by the postfix on elastix.

    This is still not working at this point in time. We have been able to use roundcube to send emails from asterisk on this box and they go through successfully.

    However when we are trying to send the emails from the elastix system the message are being returned as undeliverable.

    Below are what we think the relevent sections from the /var/log/maillog file. (I have replaced our real host name with "ourdomain" in these log files.

    Here is from the roundcube system. this email went through
    Code:
    Jan 15 12:58:48 elastix2 postfix/pickup[23143]: A551814FB76A: uid=100 from=<asterisk@ourdomain.info>
    Jan 15 12:58:48 elastix2 postfix/cleanup[23145]: A551814FB76A: message-id=<5daee2ea0a879ab15990907d9f6e5155@localhost>
    Jan 15 12:58:48 elastix2 postfix/qmgr[23144]: A551814FB76A: from=<asterisk@ourdomain.info>, size=490, nrcpt=1 (queue active)
    Jan 15 12:58:48 elastix2 imap[22970]: seen_db: user asterisk^ourdomain^info opened /var/lib/imap/user/a/asterisk^ourdomain^info.seen
    Jan 15 12:58:48 elastix2 imap[23095]: accepted connection
    Jan 15 12:58:48 elastix2 imap[23095]: login: localhost.localdomain [127.0.0.1] asterisk.ourdomain.info plaintext User logged in
    Jan 15 12:58:48 elastix2 imap[23095]: seen_db: user asterisk^ourdomain^info opened /var/lib/imap/user/a/asterisk^ourdomain^info.seen
    Jan 15 12:58:48 elastix2 imap[23095]: open: user asterisk^ourdomain^info opened INBOX
    Jan 15 12:58:49 elastix2 postfix/smtp[23148]: A551814FB76A: to=<andyp@ourdomain.com>, relay=ourdomain.com[69.89.31.108]:25, delay=0.62, delays=0.02/0/0.31/0.29, dsn=2.0.0, status=sent (250 OK id=1NVsJl-0003WW-5q)
    Jan 15 12:58:49 elastix2 postfix/qmgr[23144]: A551814FB76A: removed
    
    Here is from the voicemail notification that did not go through
    Code:
    Jan 15 13:03:19 elastix2 postfix/pickup[23143]: 2029E14FB768: uid=100 from=<asterisk>
    Jan 15 13:03:19 elastix2 postfix/cleanup[23241]: 2029E14FB768: message-id=<Asterisk-1-102547711-21-2680@elastix2.micronixinc.office>
    Jan 15 13:03:19 elastix2 postfix/qmgr[23144]: 2029E14FB768: from=<asterisk@ourdomain.info>, size=11540, nrcpt=1 (queue active)
    Jan 15 13:03:19 elastix2 postfix/smtp[23244]: 2029E14FB768: to=<andyp@ourdomain.com>, relay=ourdomain.com[69.89.31.108]:25, delay=0.86, delays=0.08/0.02/0.28/0.49, dsn=5.0.0, status=bounced (host 360b.com[69.89.31.108] said: 550 Administrative prohibition (in reply to end of DATA command))
    Jan 15 13:03:19 elastix2 postfix/cleanup[23241]: F076E14FB76A: message-id=<20100115200319.F076E14FB76A@elastix2.micronixinc.office>
    Jan 15 13:03:19 elastix2 postfix/bounce[23245]: 2029E14FB768: sender non-delivery notification: F076E14FB76A
    Jan 15 13:03:19 elastix2 postfix/qmgr[23144]: 2029E14FB768: removed
    Jan 15 13:03:19 elastix2 postfix/qmgr[23144]: F076E14FB76A: from=<>, size=13502, nrcpt=1 (queue active)
    
    If somebody can point me in the direction of why the voice mails are not going through it would be appreciated.
     
  2. EricLomm

    Joined:
    May 19, 2009
    Messages:
    20
    Likes Received:
    0
    Ok, so we have been backing up and starting over on the configuration of the sending email with authentication out of section 37.3 of "Elastix without tears".

    Our configuration is as follows
    Code:
    mydomain = 360b.com
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options =
    
    relayhost = mail.360b.com
    myhostname = elastix2.micronixinc.office
    
    The maillog file is showing the following message when we try to send a voicemail.

    Code:
    Jan 15 16:08:18 elastix2 postfix/pickup[29067]: D91AB14FB76A: uid=100 from=<asterisk>
    Jan 15 16:08:18 elastix2 postfix/cleanup[29128]: D91AB14FB76A: message-id=<Asterisk-4-373749768-21-2680@elastix2.micronixinc.office>
    Jan 15 16:08:18 elastix2 postfix/qmgr[29068]: D91AB14FB76A: from=<asterisk@elastix2.micronixinc.office>, size=14152, nrcpt=1 (queue active)
    Jan 15 16:08:20 elastix2 postfix/smtp[29131]: D91AB14FB76A: to=<andyp@360b.com>, relay=360b.com[69.89.31.108]:25, delay=1.2, delays=0.05/0.02/0.84/0.27, dsn=5.0.0, status=bounced (host 360b.com[69.89.31.108] said: 550-Verification failed for <asterisk@elastix2.micronixinc.office> 550-The mail server could not deliver mail to asterisk@elastix2.micronixinc.office.  The account or domain may not exist, they may be blacklisted, or missing the proper dns entries. 550 Sender verify failed (in reply to RCPT TO command))
    Jan 15 16:08:20 elastix2 postfix/cleanup[29128]: 3F47914FB76F: message-id=<20100115230820.3F47914FB76F@elastix2.micronixinc.office>
    Jan 15 16:08:20 elastix2 postfix/bounce[29132]: D91AB14FB76A: sender non-delivery notification: 3F47914FB76F
    Jan 15 16:08:20 elastix2 postfix/qmgr[29068]: 3F47914FB76F: from=<>, size=16685, nrcpt=1 (queue active)
    Jan 15 16:08:20 elastix2 postfix/qmgr[29068]: D91AB14FB76A: removed
    Jan 15 16:08:20 elastix2 postfix/local[29133]: 3F47914FB76F: to=<asterisk@elastix2.micronixinc.office>, relay=local, delay=0.03, delays=0.01/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
    Jan 15 16:08:20 elastix2 postfix/qmgr[29068]: 3F47914FB76F: removed
    
    Hopefully this will give somebody more of a clue as to what our problems are.
     
  3. EricLomm

    Joined:
    May 19, 2009
    Messages:
    20
    Likes Received:
    0
    First off we have figured out how to get email notification of voice mails to work for people that are internal to our organization, by relaying the message through our exchange server. However and this is the real killer for us we cannot get sending email to work for people who our outside of our organization. We have several people that we need to send notices to that are outside of our organization.

    We have looked at the log files and We believe that the problem is coming down to the from address in the email that are being sent from our system.

    Here is a section from the log file for a message that was sent successfully through our exchange server:
    Code:
    Jan 18 08:04:02 elastix2 postfix/cleanup[9671]: 4F25314FB76A: message-id=<Asterisk-3-1285645513-22-2680@elastix2.micronixinc.office>
    Jan 18 08:04:02 elastix2 postfix/qmgr[29244]: 4F25314FB76A: from=<asterisk@micronixinc.office>, size=64634, nrcpt=1 (queue active)
    Jan 18 08:04:02 elastix2 postfix/smtp[9673]: 4F25314FB76A: to=<tori@micronix.com>, relay=10.0.1.132[10.0.1.132]:25, delay=0.2, delays=0.06/0.02/0/0.12, dsn=2.6.0, status=sent (250 2.6.0  <Asterisk-3-1285645513-22-2680@elastix2.micronixinc.office> Queued mail for delivery)
    
    Here is ta section from the log file when a message failed when we were sending the message through our external email server:
    Code:
    Jan 18 10:04:15 elastix2 postfix/cleanup[10208]: B397414FB76A: message-id=<Asterisk-1-1293060595-21-2680@elastix2.micronixinc.office>
    Jan 18 10:04:15 elastix2 postfix/qmgr[10149]: B397414FB76A: from=<asterisk@elastix2.micronixinc.office>, size=8532, nrcpt=1 (queue active)
    Jan 18 10:04:17 elastix2 postfix/smtp[10211]: B397414FB76A: to=<andyp@360b.com>, relay=360b.com[69.89.31.108]:25, delay=1.4, delays=0.05/0.02/1.2/0.12, dsn=5.0.0, status=bounced (host 360b.com[69.89.31.108] said: 550-Verification failed for <asterisk@elastix2.micronixinc.office> 550-The mail server could not deliver mail to asterisk@elastix2.micronixinc.office.  The account or domain may not exist, they may be blacklisted, or missing the proper dns entries. 550 Sender verify failed (in reply to RCPT TO command))
    
    It appears that the problem is in from value that is assigned to the message. Can someone point me in the correct direction to find the correct values so the the message that are going external to our organization can be sent?
     
  4. EricLomm

    Joined:
    May 19, 2009
    Messages:
    20
    Likes Received:
    0
    Hello,

    I was thinking about putting an emoticon in here to show how I feel about this but, I can't find the right one.

    It turns out that after 4 days of trying to figure out if the problem was related to how we were configuring our postfix and trying to find if there was something that we had missed, Our postfix was setup fine. The problem wound up being the hosting company that we were trying to relay the email messages through.

    We have found that by creating an account at fastmail.fm and using that for the relaying of messages we can send email messages to just about everywhere we need to send them to. I said just about everywhere because the email accounts we have at our original hosting site are still not receiving the email's (I think they are rejecting elastix specific email's no matter where they are coming from)

    It appears that our problem is with the hosting company, not elastix. We finally have something that works for sending the voice mail messages we need to send.

    Eric Lommatsch
     

Share This Page