Trixbox / Asterisk voicemail notification error

Discussion in 'UK VOIP' started by Matt, Dec 20, 2006.

  1. Matt

    Matt Guest

    Hi,

    Suddenly started having a problem with voicemail notifications.

    All outgoing emails from asterisk are failing.

    The error message I get is..

    The original message was received at Wed, 20 Dec 2006 21:58:38 GMT
    from xxxx.mine.nu [127.0.0.1]

    ----- The following addresses had permanent fatal errors -----
    <>
    (reason: 501 5.1.7 Syntax error in mailbox address "asterisk@?"
    (non-printable
    character))

    ----- Transcript of session follows -----
    .... while talking to xxxxxxx.com.:
    >>> MAIL From:<asterisk@> SIZE=817

    <<< 501 5.1.7 Syntax error in mailbox address "asterisk@?"
    (non-printable character)
    501 5.6.0 Data format error


    Can anyone point me in the right direction to correct this?

    Many thanks


    Matthew
     
    Matt, Dec 20, 2006
    #1
    1. Advertising

  2. Matt

    Linker3000 Guest

    Matt wrote:
    > Hi,
    >
    > Suddenly started having a problem with voicemail notifications.
    >
    > All outgoing emails from asterisk are failing.
    >
    > The error message I get is..
    >
    > The original message was received at Wed, 20 Dec 2006 21:58:38 GMT
    > from xxxx.mine.nu [127.0.0.1]
    >
    > ----- The following addresses had permanent fatal errors -----
    > <>
    > (reason: 501 5.1.7 Syntax error in mailbox address "asterisk@?"
    > (non-printable
    > character))
    >
    > ----- Transcript of session follows -----
    > ... while talking to xxxxxxx.com.:
    >>>> MAIL From:<asterisk@> SIZE=817

    > <<< 501 5.1.7 Syntax error in mailbox address "asterisk@?"
    > (non-printable character)
    > 501 5.6.0 Data format error
    >
    >
    > Can anyone point me in the right direction to correct this?
    >
    > Many thanks
    >
    >
    > Matthew
    >

    Have you tried the collective wisdom of the Trixbox forums?
     
    Linker3000, Dec 20, 2006
    #2
    1. Advertising

  3. Matt

    Matt Guest


    > >

    > Have you tried the collective wisdom of the Trixbox forums?


    Afraid so, no response there!

    Will keep trying!

    Thanks


    Matthew
     
    Matt, Dec 21, 2006
    #3
  4. Matt

    ale.cx Guest

    Matt wrote:

    > > >

    > > Have you tried the collective wisdom of the Trixbox forums?

    >
    > Afraid so, no response there!
    >
    > Will keep trying!


    tail -f /var/log/maillog, then leave yourself a voicemail, and see what
    happens.

    alexd
     
    ale.cx, Dec 23, 2006
    #4
  5. Matt

    Matt Guest


    > tail -f /var/log/maillog, then leave yourself a voicemail, and see what
    > happens.
    >
    > alexd


    Thanks for the reply.

    I've also checked that other users can send mail ok, its just Asterisk
    that has problems!


    Dec 24 15:05:54 emssrv03 sendmail[30906]: kBOF5qxn030906:
    from=asterisk, size=17820, class=0, nrcpts=1,
    msgid=<>,
    relay=asterisk@localhost
    Dec 24 15:05:55 emssrv03 sendmail[30907]: kBOF5sdg030907:
    from=<>, size=17949, class=0, nrcpts=1,
    msgid=<>, proto=ESMTP,
    daemon=MTA, relay=xxxxxx.mine.nu [127.0.0.1]
    Dec 24 15:05:55 emssrv03 sendmail[30906]: kBOF5qxn030906: to=MRH Office
    <>, ctladdr=asterisk (5060/502), delay=00:00:03,
    xdelay=00:00:01, mailer=relay, pri=47820, relay=[127.0.0.1]
    [127.0.0.1], dsn=2.0.0, stat=Sent (kBOF5sdg030907 Message accepted for
    delivery)
    Dec 24 15:06:01 emssrv03 sendmail[30909]: kBOF5sdg030907:
    to=<>, ctladdr=<>
    (5060/502), delay=00:00:06, xdelay=00:00:06, mailer=esmtp, pri=137949,
    relay=xxxxxxxxxxx.co.uk. [195.69.95.221], dsn=5.6.0, stat=Data format
    error
    Dec 24 15:06:01 emssrv03 sendmail[30909]: kBOF5sdg030907: forward
    /var/lib/asterisk/.forward.austrey: Group writable directory
    Dec 24 15:06:01 emssrv03 sendmail[30909]: kBOF5sdg030907: forward
    /var/lib/asterisk/.forward: Group writable directory
    Dec 24 15:06:01 emssrv03 sendmail[30909]: kBOF5sdg030907:
    kBOF61dg030909: DSN: Data format error
    Dec 24 15:06:01 emssrv03 sendmail[30909]: kBOF61dg030909:
    to=<>, delay=00:00:00, xdelay=00:00:00,
    mailer=local, pri=49187, dsn=2.0.0, stat=Sent

    Hope this helps!

    Thanks again


    Matthew
     
    Matt, Dec 24, 2006
    #5
  6. Matt

    Jono Guest

    After serious thinking Matt wrote :
    >> tail -f /var/log/maillog, then leave yourself a voicemail, and see what
    >> happens.
    >>
    >> alexd

    >
    > Thanks for the reply.
    >
    > I've also checked that other users can send mail ok, its just Asterisk
    > that has problems!
    >
    >
    > Dec 24 15:05:54 emssrv03 sendmail[30906]: kBOF5qxn030906:
    > from=asterisk, size=17820, class=0, nrcpts=1,
    > msgid=<>,
    > relay=asterisk@localhost
    > Dec 24 15:05:55 emssrv03 sendmail[30907]: kBOF5sdg030907:
    > from=<>, size=17949, class=0, nrcpts=1,
    > msgid=<>, proto=ESMTP,
    > daemon=MTA, relay=xxxxxx.mine.nu [127.0.0.1]
    > Dec 24 15:05:55 emssrv03 sendmail[30906]: kBOF5qxn030906: to=MRH Office
    > <>, ctladdr=asterisk (5060/502), delay=00:00:03,
    > xdelay=00:00:01, mailer=relay, pri=47820, relay=[127.0.0.1]
    > [127.0.0.1], dsn=2.0.0, stat=Sent (kBOF5sdg030907 Message accepted for
    > delivery)
    > Dec 24 15:06:01 emssrv03 sendmail[30909]: kBOF5sdg030907:
    > to=<>, ctladdr=<>
    > (5060/502), delay=00:00:06, xdelay=00:00:06, mailer=esmtp, pri=137949,
    > relay=xxxxxxxxxxx.co.uk. [195.69.95.221], dsn=5.6.0, stat=Data format
    > error
    > Dec 24 15:06:01 emssrv03 sendmail[30909]: kBOF5sdg030907: forward
    > /var/lib/asterisk/.forward.austrey: Group writable directory
    > Dec 24 15:06:01 emssrv03 sendmail[30909]: kBOF5sdg030907: forward
    > /var/lib/asterisk/.forward: Group writable directory
    > Dec 24 15:06:01 emssrv03 sendmail[30909]: kBOF5sdg030907:
    > kBOF61dg030909: DSN: Data format error
    > Dec 24 15:06:01 emssrv03 sendmail[30909]: kBOF61dg030909:
    > to=<>, delay=00:00:00, xdelay=00:00:00,
    > mailer=local, pri=49187, dsn=2.0.0, stat=Sent


    I am far from an expert.....and do not understand the
    above.....however, I have only experienced problems with Asterisk's
    email when the hostname didn't match my fully qualified domeain or
    DynDNS hostname.

    To be sure, at a console, logged in as root, type:
    hostname "matt.dydns.hostname" - then press enter.
    (without the quotes & wth your /actual/ hostnam, of course)
     
    Jono, Dec 24, 2006
    #6
  7. Matt

    Matt Guest


    > I am far from an expert.....and do not understand the
    > above.....however, I have only experienced problems with Asterisk's
    > email when the hostname didn't match my fully qualified domeain or
    > DynDNS hostname.
    >
    > To be sure, at a console, logged in as root, type:
    > hostname "matt.dydns.hostname" - then press enter.
    > (without the quotes & wth your /actual/ hostnam, of course)


    Cheers Jono,

    host xxxx.mine.nu
    xxxx.mine.nu has address 195.69.xx.xxx

    where 195.69.xx.xxx is my external IP address.

    Cheers

    Matthew
     
    Matt, Dec 24, 2006
    #7
  8. On 20 Dec 2006 14:01:47 -0800, "Matt" <>
    wrote:
    I'm no expert, but have been following this thread with interest.
    I've just re-read from the start...

    [snip]
    > ----- Transcript of session follows -----
    >... while talking to xxxxxxx.com.:
    >>>> MAIL From:<asterisk@> SIZE=817

    ><<< 501 5.1.7 Syntax error in mailbox address "asterisk@?"
    >(non-printable character)
    >501 5.6.0 Data format error


    I've just spotted what looks like the culprit - it's displaying in
    Agent as what looks like an emboldened pipe character after the
    MAIL From:<asterisk@

    Did you maybe edit your conf files on a Windows machine and upload
    them to the linux box?
    Or could a control character somehow have got into one of the conf
    files (finger problem whilst using a Linux editor)?
    --
    Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
    Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
     
    David Quinton, Dec 25, 2006
    #8
  9. Matt

    Matt Guest

    David Quinton wrote:

    > On 20 Dec 2006 14:01:47 -0800, "Matt" <>
    > wrote:
    > I'm no expert, but have been following this thread with interest.
    > I've just re-read from the start...
    >
    > [snip]
    > > ----- Transcript of session follows -----
    > >... while talking to xxxxxxx.com.:
    > >>>> MAIL From:<asterisk@> SIZE=817

    > ><<< 501 5.1.7 Syntax error in mailbox address "asterisk@?"
    > >(non-printable character)
    > >501 5.6.0 Data format error

    >
    > I've just spotted what looks like the culprit - it's displaying in
    > Agent as what looks like an emboldened pipe character after the
    > MAIL From:<asterisk@
    >
    > Did you maybe edit your conf files on a Windows machine and upload
    > them to the linux box?
    > Or could a control character somehow have got into one of the conf
    > files (finger problem whilst using a Linux editor)?
    > --


    Cheers Dave,

    All files edited via linux - but could have been finger trouble!

    Any idea which file it may be????

    Merry Christmas!
     
    Matt, Dec 25, 2006
    #9
  10. On 25 Dec 2006 03:45:37 -0800, "Matt" <>
    wrote:

    >Cheers Dave,
    >
    >All files edited via linux - but could have been finger trouble!
    >
    >Any idea which file it may be????


    Don't get TOO excited - it's only a suggested reason!

    In my (Debian, "normal" Asterisk) installation, the notification email
    addresses are in voicemail.conf.
    Lines like:-
    2001 => 8383,Sidney Zweibel,

    My suspicion is that the "rogue character" might be after the "@".

    HTH
    --
    Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
    Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
     
    David Quinton, Dec 27, 2006
    #10
  11. On 25 Dec 2006 03:45:37 -0800, "Matt" <>
    wrote:

    >Cheers Dave,


    Amenment to my previous - sorry.
    Just noticed it's the FROM (and not the TO) address that might be
    suspect.
    I think it gets the From from /etc/hostname
    --
    Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
    Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
     
    David Quinton, Dec 27, 2006
    #11
  12. Matt

    ale.cx Guest

    On 27 Dec, 07:54, David Quinton
    <> wrote:

    > In my (Debian, "normal" Asterisk) installation,


    Don't forget that with a vanilla Debian installation, you have the
    rather huge advantage of not using Sendmail ;-)

    > the notification email addresses are in voicemail.conf.
    > Lines like:-
    > 2001 => 8383,Sidney Zweibel,
    >
    > My suspicion is that the "rogue character" might be after the "@".


    The trouble with FreePBX is that it butchers all the Asterisk config
    files, so you may have some trouble finding what you're after, so 'grep
    asterisk@ /etc/asterisk/*' might be handy. Also, if you go editing the
    config files, some of them are rebuilt after you click the red bar when
    making changes in the web interface.

    alexd
     
    ale.cx, Dec 27, 2006
    #12
  13. Matt

    Jono Guest

    ale.cx laid this down on his screen :
    > Also, if you go editing the
    > config files, some of them are rebuilt after you click the red bar when
    > making changes in the web interface.


    And even if you don't click the red bar, when you restart the machine.
     
    Jono, Dec 27, 2006
    #13
  14. Matt

    Matt Guest


    > Amenment to my previous - sorry.
    > Just noticed it's the FROM (and not the TO) address that might be
    > suspect.
    > I think it gets the From from /etc/hostname
    > --


    Cheers Dave,

    Just recreated the hosts and hostname files with a different server
    name, but it still gives the same error message - even after a reboot!

    Thanks anyway!
     
    Matt, Dec 27, 2006
    #14
  15. On 27 Dec 2006 07:45:54 -0800, "Matt" <>
    wrote:

    >Just recreated the hosts and hostname files with a different server
    >name, but it still gives the same error message - even after a reboot!


    [previous caveats apply - "I am not an expert" etc. - just my brain's
    meanderings...]

    I think this might be annoying me nearly as much as it is you!
    Let's try another tack..

    I wonder what that character that my newsreader is displaying as Pipe
    really is?
    Maybe it's a Linefeed (Hex 0A) character?

    IIRC MTAs use linefeeds to separate the various lines of email
    headers.
    So MAYBE you've actually got *NO* Hostname at all.
    Sendmail expects there to be something in there, but there isn't - so
    it b*ggers up the parsing?

    I wonder if
    <http://www.aussievoip.com/wiki/index.php?page=DM-VoicemailEmail>
    relates at all?
    --
    Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
    Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
     
    David Quinton, Dec 30, 2006
    #15
  16. Matt

    Matt Guest


    > I wonder if
    > <http://www.aussievoip.com/wiki/index.php?page=DM-VoicemailEmail>
    > relates at all?
    > --


    Cheers Dave.

    Been through the example and recreated all my files as per the
    instructions - exactly the same problem.

    If i send and email from the box normally all is ok - so I guess the
    zones and bits are ok. Its only when the voice mail module tries to
    send an email....

    This is driving me, and the users, mad!

    Cheers


    Matthew
     
    Matt, Jan 5, 2007
    #16
  17. On 5 Jan 2007 13:39:58 -0800, "Matt" <>
    wrote:

    >This is driving me, and the users, mad!


    What MTA do you have on the box? Esndmail, Exim?
    Maybe look at the logs.

    (If it's any consolation, it's driving me mad too!)
    --
    Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
    Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
     
    David Quinton, Jan 6, 2007
    #17
  18. Matt

    Matt Guest

    David Quinton wrote:

    > On 5 Jan 2007 13:39:58 -0800, "Matt" <>
    > wrote:
    >
    > >This is driving me, and the users, mad!

    >
    > What MTA do you have on the box? Esndmail, Exim?
    > Maybe look at the logs.
    >
    > (If it's any consolation, it's driving me mad too!)
    > --
    > Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
    > Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>


    SendMail 8.13.1

    The log shows...

    Jan 5 14:40:42 asterisk1 sendmail[18613]: l05EebvR018613:
    from=asterisk, size=609, class=0, nrcpts=1,
    msgid=<>,
    relay=asterisk@localhost
    Jan 5 14:40:42 asterisk1 sendmail[18615]: l05EegRL018615:
    from=<>, size=737, class=0, nrcpts=1,
    msgid=<>, proto=ESMTP,
    daemon=MTA, relay=localhost [127.0.0.1]
    Jan 5 14:40:42 asterisk1 sendmail[18613]: l05EebvR018613:
    to=Springbank <>, ctladdr=asterisk (5060/502),
    delay=00:00:05, xdelay=00:00:00, mailer=relay, pri=30609,
    relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l05EegRL018615
    Message accepted for delivery)
    Jan 5 14:40:48 asterisk1 sendmail[18617]: l05EegRL018615:
    to=<>, ctladdr=<>
    (5060/502), delay=00:00:06, xdelay=00:00:06, mailer=esmtp, pri=120737,
    relay=one-web.com. [195.69.95.xxx], dsn=5.6.0, stat=Data format error
    Jan 5 14:40:48 asterisk1 sendmail[18617]: l05EemRL018617:
    to=<>, delay=00:00:00, xdelay=00:00:00,
    mailer=local, pri=31972, dsn=2.0.0, stat=Sent


    Does that help anyone?

    My thoughts are that its still a typo in the asterisk config files.....
    but I haven't a clue which one!

    Cheers



    Matthew
     
    Matt, Jan 6, 2007
    #18
  19. Matt

    Matt Guest

    Re: Trixbox / Asterisk voicemail notification error RESOLVED!!

    OK,

    Managed to catch someone of the #freepbx irc channel.

    After about 30 mins of checks and looking at files it was sorted....

    Somehow, in the middle of the sendmail configuration file there was a
    stray ascii character. We've no idea how it got there, but removing
    and restarting sendmail proved successful!

    Many thanks to all those who came up with possible solutions.

    Cheers

    Matthew
     
    Matt, Jan 6, 2007
    #19
  20. Re: Trixbox / Asterisk voicemail notification error RESOLVED!!

    On 6 Jan 2007 11:11:46 -0800, "Matt" <>
    wrote:

    [snip]
    >stray ascii character. We've no idea how it got there, but removing
    >and restarting sendmail proved successful!


    I was SORT of right!
    Glad you got it fixed...
    --
    Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
    Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
     
    David Quinton, Jan 7, 2007
    #20
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guest
    Replies:
    9
    Views:
    957
    Thomas Kenyon
    May 12, 2006
  2. Sean
    Replies:
    10
    Views:
    11,033
    alben
    Sep 11, 2009
  3. Dan
    Replies:
    2
    Views:
    831
  4. Stephane M

    Trixbox vs Asterisk

    Stephane M, Nov 19, 2006, in forum: UK VOIP
    Replies:
    3
    Views:
    865
    Thomas Kenyon
    Jan 5, 2007
  5. Sparks
    Replies:
    1
    Views:
    640
Loading...

Share This Page