Authorised Email to sms/mms NOT working

Authorised Email to sms/mms NOT working SearchSearch
Author Message
Lars Nielsen, MobileNation ApS - Denmark
Frequent Contributor
Username: Larsmservice

Post Number: 268
Registered: 10-2003
Posted on Wednesday, July 26, 2006 - 01:21 am:   

It does not work at all.

I got a modem with a SenderAddress=77777777
I want *@mydomain.com to send sms/mms through nowsms on that SPECIFIC modem.
This is what i do:

*@mydomain.com,77777777

So now i send an email from anyone@mydomain.com to +4512451245 with some random text.

It does not work...
Nowsms sends it out through a random modem. So i receive it from some other modem.


WHAT AM I DOING WRONG ?
Read these two threads:
http://support.nowsms.com/discus/messages/1/14481.h tml

http://support.nowsms.com/discus/messages/53/15129. html

(
MMSC: For E-mail to MMS and e-mail to SMS configurations, provide a mechanism for outbound messages to be routed via a particular SMSC or MMSC connection. When defining e-mail addresses that are allowed to send SMS or MMS messages in the "Authorised E-Mail to SMS/MMS Senders" list, it is now possible to follow an e-mail address in the list with a phone number to be used as the sender address for any messages submitted by this sender (example: *@nowsms.com,+447777777777 means that any addresses submitted by a nowsms.com e-mail address will be sent out with an SMS sender address of +447777777777).
)
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6255
Registered: 10-2002
Posted on Thursday, July 27, 2006 - 10:15 pm:   

Hi Lars,

Sigh...

It looks like this was only implemented for the SMS sender.

And as I look at it in more detail, I don't see how it could work the way that we have it implemented. It doesn't look like the MMS side of this was all of the way thought through.

So we're sort of going back to the drawing board on this, but I think I've got a fresh idea, so hopefully it won't take too long.

-bn
Lars Nielsen, MobileNation ApS - Denmark
Frequent Contributor
Username: Larsmservice

Post Number: 269
Registered: 10-2003
Posted on Thursday, July 27, 2006 - 11:16 pm:   

Hi Bryce.

You are full of ideas ;-).

Well i can assure you that it does not work with sms either. Actually i am quite curious to know how nowsms selects the modem to send it through. To me it seems to be random.

The idea was to be able to send sms/mms through nowsms via SMTP and route it through a selected modem(senderaddress).

The new section in nowsms under "Authorised Email to sms/mms" is a great and easy way to bind Sender-Email-adresses with a certain modem attached to nowsms. Though i think it is a bit un-logic to place it under the MMSC tab. A more logic approach might have been to set the sender-email-adresses under the SMSC-connection.
Just select the SMSC-connection, Press properties, and there you go ;-). All you need to do here is type the sender-email-adresses.

;)Lars
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6256
Registered: 10-2002
Posted on Friday, July 28, 2006 - 07:07 pm:   

Hi Lars,

Ok. Let's try this again.

There is another update that can be downloaded at http://www.nowsms.com/download/lars.zip.

That said, it definitely worked for the SMS routing for me before, just not for MMS.

What this setting does is apply the the phone number after the comma as the sender address for the resulting SMS message.

To determine which modem (or SMSC) to route a message to, NowSMS looks first at the sender address to see if it has a modem with a matching "Phone Number" defined for it ... or an SMSC with a matching "Default Sender Address".

(There is also other logic based upon the recipient. There is a pretty good explanation here: http://support.nowsms.com/discus/messages/1/11908.html)

With MMS, it is a bit more complicated. Basically, you don't want to change the sender address. Ideally, you'd like to keep the e-mail originating address to facilitate a reply from the MMS recipient.

Of course, you can't really keep the sender address when you route the MMS message through a GPRS modem ... but that is where the NowSMS 2006 trick "Embed Original Sender in Subject Header" comes into play. Logically, NowSMS still treats the original sender address as the MMS sender in this case.

So ... we don't want the MMS sender address to be changed ... we only want to route the MMS message as if the sender address was this alternate address, so that we can route it via the appropriate modem (or an MM7 connection for that matter).

That's what we've fixed in this update. When the SMTP message gets translated to MMS, the original e-mail sender is maintained as the sender address, but the routing logic is performed based upon this altnerate sender address as defined in the authorised e-mail table.

Confusing?

You betcha.

The problem is that there is just too much flexibility.

The reason that it is under the MMS tab is because the MMSC performs the e-mail services. That doesn't make much sense when you are routing to SMS addresses ... but it does make sense when you are also routing to MMS.

And it's also because of the SMS or MMS routing that we can't simply bind the link to a modem. There are potential configurations where people might want to bind the MMS delivery to a particular MMS route that is not a modem.

The "Sender Address" based routing is common to both SMS and MMS routing, but this does mean that you have to configure the modem in two places ... in the "SMSC" list and the "MMSC Routing" tab.

In the "SMSC" list, be sure to configure the "Phone Number" associated with the modem, using the same format that you have specified in the authorised e-mail list.

In the "MMSC Routing" list, where you define the outbound MMS routing to the modem, be sure to configure the "Default Sender Address" to be this same phone number. (Also make sure that "Allow Sender Address Override" is NOT checked. And check "Embed Original Sender in Subject Header" ... as this will allow the MMS recipients to reply back, as long as you have "Receive MMS" enabled for the modem. If an MMS comes in with an e-mail address in the reply subject header, the message will get routed back to the appropriate e-mail address, even if you have some other action defined as the default routing for received MMS messages.)

-bn
Lars Nielsen, MobileNation ApS - Denmark
Frequent Contributor
Username: Larsmservice

Post Number: 270
Registered: 10-2003
Posted on Sunday, July 30, 2006 - 10:26 pm:   

Hi bryce.

Are you sure that you put the "2006-07-28" update into: http://www.nowsms.com/download/lars.zip ?

When i update the files in my nowsms directory, and afterwards opens Nowsms the version has only changed to: "v. 2006.07.27".

My reason for asking is that i dont see the changes you mention in the thread above here:


"
(Also make sure that "Allow Sender Address Override" is NOT checked. And check "Embed Original Sender in Subject Header"
"
Lars Nielsen, MobileNation ApS - Denmark
Frequent Contributor
Username: Larsmservice

Post Number: 271
Registered: 10-2003
Posted on Sunday, July 30, 2006 - 10:36 pm:   

Bryce i got a feeling that we might not undestand each other 100%.

First of all, i for sure cannot make the sms part work right.

If i send an email (xxxxxxxx@sms.mynowsms.dk) to nowsms in pure text, nowsms should send this as a sms. That works fine, BUT it still picks a random modem to send it through. The same thing happends when i try with email2mms.

Anyway, i owe it to you to tell you that i:
Got NO sms/mms users created.
Got NOTHING in MMS VASP
Got NOTHING in MMSC ROUTING
Got my senderadresses in SMSC and "Authorised E-mail to SMS/MMS..." as exactly the same.


Am i missing anything here that you are not missing ?


;)Lars
Lars Nielsen, MobileNation ApS - Denmark
Frequent Contributor
Username: Larsmservice

Post Number: 272
Registered: 10-2003
Posted on Sunday, July 30, 2006 - 10:46 pm:   

Here's the idea behind the functionality. Just so you are 100% with me on what it's all about ;-).

Let's say you got 2 modems on your nowsms. Each modem has a simcard/phonenumber from 2 different customers.
Each customer is a radio-station who wishes to receive their SMS/MMS-messages as emails.
That's pretty easy to set up in Nowsms. That part has no problems at all.

Now both radios wishes to write SMS/MMS messages back to their users.
They want to keep it simple and wishes to send them directly from their email-program.
That is also pretty easy to set up in Nowsms.
The problem begins here, because you find out that the messages are being routed to a random modem, which
causes some of the messages to be sent through the other radio-stations modem attached to Nowsms.
Surely you can imagine what the radio-stations are complaining to me about ;-).




Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6278
Registered: 10-2002
Posted on Monday, July 31, 2006 - 08:44 pm:   

Hi Lars,

First things first ...

Only the MMSC.EXE was updated, so the user interface still displays 2006.07.27. There is a note about this feature in the patch2006.txt file at the above link. (I did add some additional text in my message to you, to help avoid confusion.)

Second ...

I think we understand each other. Something just is not working right for you.

I concentrated more above in my explanations on the MMS side of things, because that was clearly not working before. So let's forget about MMS, as you don't have any of it configured anyway.

I still haven't seen any problems with this on the SMS side in my tests.

Make sure that the phone number that you have after the "," (comma) in the Auth user list exactly matches the "Phone Number" that is configured for the modem that you want that user to send via.

A sanity check ... after sending one of these messages ... check the SMSOUT-yyyymmdd.LOG file.

The message should include something like this in the LOG entry:

SubmitUser=localsystem-mmsc;Sender=phonenumber

Is that present?

I'm wondering whether the problem is that

1.) This sender phone number is not getting applied to the message properly.

2.) The message is not being routed properly based upon the sender address.

If we can determine whether or not this "Sender=" parameter appears in the LOG, it should give us a better idea of where to look.

Another thought that comes to mind.

Enable the MMSCDEBUG.LOG. Check to see if the "MAIL FROM:" addresses that you are seeing match your expectations.

Since you have no SMS/MMS users created, I have one other thought. Are you using the SMTPIPAddressList setting to authenticate by IP address? That could be a problem. This "Authorised E-Mail to SMS/MMS" setting only gets queried if no other authorisation check succeeds. Since you have no user accounts defined that rules out any auth check based upon user accounts, and this is the only setting I could see getting in the way.

-bn
Lars Nielsen, MobileNation ApS - Denmark
Frequent Contributor
Username: Larsmservice

Post Number: 273
Registered: 10-2003
Posted on Monday, July 31, 2006 - 11:39 pm:   

Bryce, it was the "SMTPIPAddressList" that did it. I thought that was only for accepting any incoming traffic from certain SMTP servers. I did not think it had anything to do with routing message to certain modems.

Also, i have set up some MMSC Routings and they also work fine now.

So, from my chair, everything works perfectly.


Thanx again Bryce.


;)Lars