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 -----
<mrh@xxxxxx.com>
(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?
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 -----
> <mrh@xxxxxx.com>
> (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?
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=<Asterisk-0-568293266-200-2862@emssrv03.local>,
> relay=asterisk@localhost
> Dec 24 15:05:55 emssrv03 sendmail[30907]: kBOF5sdg030907:
> from=<asterisk@xxxxxx.mine.nu>, size=17949, class=0, nrcpts=1,
> msgid=<Asterisk-0-568293266-200-2862@emssrv03.local>, proto=ESMTP,
> daemon=MTA, relay=xxxxxx.mine.nu [127.0.0.1]
> Dec 24 15:05:55 emssrv03 sendmail[30906]: kBOF5qxn030906: to=MRH Office
> <mrh@xxxxxxxxxxx.co.uk>, 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=<mrh@xxxxxxxxxxx.co.uk>, ctladdr=<asterisk@xxxxxx.mine.nu>
> (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=<asterisk@xxxxxx.mine.nu>, 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)
> 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
On 20 Dec 2006 14:01:47 -0800, "Matt" <matthew.humphreys@gmail.com>
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>
> On 20 Dec 2006 14:01:47 -0800, "Matt" <matthew.humphreys@gmail.com>
> 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!
On 25 Dec 2006 03:45:37 -0800, "Matt" <matthew.humphreys@gmail.com>
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,box2001@xxxxxx.co.uk
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>
On 25 Dec 2006 03:45:37 -0800, "Matt" <matthew.humphreys@gmail.com>
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>
On 27 Dec, 07:54, David Quinton
<usenet_2005D_em...@REMOVETHISBITbizorg.co.uk> 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,box2...@xxxxxx.co.uk
>
> 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.
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.
> 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!
On 27 Dec 2006 07:45:54 -0800, "Matt" <matthew.humphreys@gmail.com>
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>
> 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....
On 5 Jan 2007 13:39:58 -0800, "Matt" <matthew.humphreys@gmail.com>
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>
> On 5 Jan 2007 13:39:58 -0800, "Matt" <matthew.humphreys@gmail.com>
> 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>
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.
On 6 Jan 2007 11:11:46 -0800, "Matt" <matthew.humphreys@gmail.com>
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>