SMS format and DSN: Data format error
list Michael Lowery
I'm having problems getting mail messages to my phone. I can send them manually, but was under the impression that I should use the "FORMAT=SMS" option to send to my phone since it has <160 characters allowed. When sending, I get the "DSN: Data format error" from the mail server at my cell company. Do I have to have a script written for this to work, or should it work as I have it configured? Here is the only entry in hobbit that I have configured that has anything to do with this message being sent. Any help would be appreciated! Hobbit v4.0.2 hobbit-alerts.cfg ----snip---- PAGE=%mon/* SERVICE=* EXSERVICE=mrtg TIME=W:0800:1700 MAIL user-fe5c6937c554@xymon.invalid FORMAT=SMS DURATION>120 COLOR=red ----end snip---- /var/log/maillog ----snip----- Jun 2 16:37:29 hobbit sendmail[2124]: j52LbTok002124: from=<user-414139e0bbe7@xymon.invalid>, size=385, class=0, nrcpts=1, msgid=<user-463396ebf92d@xymon.invalid>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Jun 2 16:37:29 hobbit sendmail[2119]: j52LbThb002119: to=user-fe5c6937c554@xymon.invalid, ctladdr=hobbit (500/500), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30070, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (j52LbTok002124 Message accepted for delivery) Jun 2 16:37:29 hobbit sendmail[2130]: j52LbTok002124: to=<user-fe5c6937c554@xymon.invalid>, ctladdr=<user-414139e0bbe7@xymon.invalid> (500/500), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30385, relay=mms-mta.cellular.com. [20.30.40.50], dsn=5.6.0, stat=Data format error Jun 2 16:37:29 hobbit sendmail[2130]: j52LbTok002124: j52LbTok002130: DSN: Data format error ----end snip---- Thanks, Michael
list Henrik Størner
▸
On Sat, Jun 04, 2005 at 12:46:22PM -0500, Lowery, Michael wrote:
I'm having problems getting mail messages to my phone. I can send them manually, but was under the impression that I should use the "FORMAT=SMS" option to send to my phone since it has <160 characters allowed. When sending, I get the "DSN: Data format error" from the mail server at my cell company. Do I have to have a script written for this to work, or should it work as I have it configured?
Can you send e-mail directly to your cell-phone mail address and have it work ? E.g. echo "test message" | mail user-fe5c6937c554@xymon.invalid Because this looks more like a mail configuration problem than a problem with the Hobbit notification message. Regards, Henrik
list Michael Lowery
No, it doesn't. Seems like I'll have to do some masquerading to get their server to accept the mail. Thanks for the tip, I'll see if I can get it worked out! Michael
▸
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Saturday, June 04, 2005 4:49 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] SMS format and DSN: Data format error
On Sat, Jun 04, 2005 at 12:46:22PM -0500, Lowery, Michael wrote:I'm having problems getting mail messages to my phone. I can send them manually, but was under the impression that I should use the "FORMAT=SMS" option to send to my phone since it has <160 characters allowed. When sending, I get the "DSN: Data format error" from the mail server at my cell company. Do I have to have a script written for this to work, or should it work as I have it configured?
Can you send e-mail directly to your cell-phone mail address and have it work ? E.g. echo "test message" | mail user-fe5c6937c554@xymon.invalid Because this looks more like a mail configuration problem than a problem with the Hobbit notification message. Regards, Henrik
list Michael Lowery
Thanks for the tip, Henrik. The problem was that my hobbit server does not have any valid DNS entries. Once I masqueraded the envelope and relayed through a server with a good PTR record, it worked great! Thanks again.
▸
Michael
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Saturday, June 04, 2005 4:49 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] SMS format and DSN: Data format error
On Sat, Jun 04, 2005 at 12:46:22PM -0500, Lowery, Michael wrote:I'm having problems getting mail messages to my phone. I can send them manually, but was under the impression that I should use the "FORMAT=SMS" option to send to my phone since it has <160 characters allowed. When sending, I get the "DSN: Data format error" from the mail server at my cell company. Do I have to have a script written for this to work, or should it work as I have it configured?
Can you send e-mail directly to your cell-phone mail address and have it work ? E.g. echo "test message" | mail user-fe5c6937c554@xymon.invalid Because this looks more like a mail configuration problem than a problem with the Hobbit notification message. Regards, Henrik