Integration NOWSMS with DNS & Exchange

Integration NOWSMS with DNS & Exchange SearchSearch
Author Message
Ali Daradkeh
New member
Username: Alidh_80

Post Number: 1
Registered: 03-2009
Posted on Monday, March 09, 2009 - 12:41 pm:   

I need help in this issue please.
I want to know what is the exactly steps sall i do on DNS & exchange to make the integration with NOWSMS?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 559
Registered: 08-2008
Posted on Monday, March 09, 2009 - 05:43 pm:   

Hi,

I'm not an expert in configuring Microsoft Exchange, so I can't help you much with the Exchange side of things.

However, I can help explain DNS, and more how the e-mail capabilities of NowSMS work, so that you can hopefully find the Exchange specific information elsewhere.

Before I get started, let me explain two types of e-mail configurations that you might use.

Option #1: Only user accounts of your choosing will be able to send (and possibly receive) SMS or MMS, and it is a small or manageable number of accounts where it is acceptable to specially configure the e-mail client software for each user to enable this support.

For this configuration, you don't have to make any changes to DNS, or configure any other mail server.

On the "MMSC" page of the NowSMS configuration, enable the POP3 server.

On the "SMS Users" page of the NowSMS configuration, define a user account, and enable SMTP access for the account.

In your e-mail client, add another account where your mail server is the NowSMS server ... specifying the POP3 and SMTP ports of the NowSMS server. Make sure to enable SMTP authentication for the outbound mail sending in the account properties. Use that account in the e-mail client when you want to send SMS or MMS.

I've got a link that has a bit more information on this configuration that I'll include in this posting. But that is the basic information.

Option #2: You want more flexibility than provided by Option #1.

In this configuration, NowSMS looks like an independent SMTP mail server.

You need to register an "MX" (mail exchange record) in DNS for any e-mail domains that NowSMS will be using. This is how other mail servers know how to route e-mail to the NowSMS server, they look up the "MX" record in DNS. The "MX" record resolves to a host name ("A" record in DNS) which has the IP address of the NowSMS server.

In this configuration, you don't need to enable POP3 or setup a separate user account on the NowSMS server for each of your users. They send messages through their existing mail server, and the existing mail server uses DNS to figure out how to route the e-mail message to the NowSMS server.

Where this can get complicated is when you don't want NowSMS to be directly connected to the internet. You want to have an existing mail server accept e-mail on behalf of NowSMS, and then have that server act as a "relay host", forwarding the messages to the NowSMS server. The exact steps to configure are dependent on what mail server you are using. You would need to consult the documentation for your mail server to understand how to configure your mail server to act as a relay host for another mail server.

That is some of the basic information. For more detailed information, take a look at the section of the NowSMS manual that starts on page 227. It is titled "E-Mail to SMS/MMS Connectivity", and it goes into a lot more detail.

If I can provide any further clarification, please let me know.

--
Des
NowSMS Support
Ali Daradkeh
New member
Username: Alidh_80

Post Number: 2
Registered: 03-2009
Posted on Wednesday, May 06, 2009 - 04:05 pm:   

I used the second option but it's not work.
this is what i did:
- i create anew lookup zone called SMS.DC
- inside this zone i create an Host relay to Nowsms server.
- inside i create MX record relay to this host(Nowsms server).
- configure the MMCS in domain name for SMS is SMS.DC.
- type an email account in Authorised email to sms sender.
- i send an email from outlook using the email account defind in the autherised list as following phone number@sms.dc.
but i don't recieve any SMS massage.
so what i can do more?
Ali Daradkeh
New member
Username: Alidh_80

Post Number: 3
Registered: 03-2009
Posted on Wednesday, May 06, 2009 - 04:13 pm:   

note:
the POP3 protocole is not enabled on mail server we use IMAP.
So is this pvevent the routing emails to SMS?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 747
Registered: 08-2008
Posted on Wednesday, May 06, 2009 - 08:16 pm:   

POP3 is not required on the mail server.

NowSMS has an option to support POP3 as a server (so that an e-mail client can have an account to both send and receive via NowSMS as a mail server). But it does not use POP3 to connect to another server, so that is not a problem.

Enable the MMSCDEBUG.LOG in NowSMS (checkbox on "serial #" page).

Make sure that you see this in the MMSCDEBUG.LOG:

ThreadListenSMTPIn: Now MMSC SMTP server started on port number 25

That means that NowSMS is actively listening for SMTP connections.

Then check to see if there is any SMTP related activity appearing in the MMSCDEBUG.LOG. If there is, then we can troubleshoot it further because we know the SMTP configuration is sufficient for getting the messages routed to the NowSMS server.

If there is no SMTP related traffic then something is up with the SMTP configuration external to NowSMS.

I don't know where your MX record and lookup zone is ... is this inside of Exchange Server? Or is it on a DNS server?

If it is a public domain and you don't want to post the details, send an e-mail to nowsms@nowsms.com with "Attention: Des" in the subject line ... putting the domain details in the e-mail so that I can do an NSLOOKUP and check things out. If you do send that e-mail, also post a follow-up here so that I know to look for the e-mail message.

--
Des
NowSMS Support
Ali Daradkeh
New member
Username: Alidh_80

Post Number: 4
Registered: 03-2009
Posted on Thursday, May 07, 2009 - 07:54 am:   

the Lookup zone and MX record in the DNS server
Ali Daradkeh
New member
Username: Alidh_80

Post Number: 5
Registered: 03-2009
Posted on Thursday, May 07, 2009 - 09:28 am:   

hi.
I configure in MMSC dialog window as foolowing:
Domain name for email SMS: SMS.DC "which is anew Lookkup Zone created in DNS server".
Authoriesed sender list: ksarhan@dc.gov.ae.
SMS users: Ksarhan
configure the email client as following:
Ksarhan@sms.dc
send test email using this email client to
0504207872@sms.dc from now sms server, the SMS massage come.
but if i send the email from external email like "ksarhan@dc.gov.ae" ,the message doesn't come, so what is the action here?
application/octet-streamMMSCDEBUG.LOG
MMSCDEBUG.LOG (17.4 k)
Ali Daradkeh
New member
Username: Alidh_80

Post Number: 6
Registered: 03-2009
Posted on Thursday, May 07, 2009 - 09:50 am:   

ihave another question.
I have aother application on NOWSMS server use the SMTP port 25,if one work the another one is stop.
So do can help me how to configure the server, so both application will working fine?
Thank you so much in advance...
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 751
Registered: 08-2008
Posted on Thursday, May 07, 2009 - 07:31 pm:   

When "ksharan@dc.gov.ae" sends an e-mail message to "0504207872@sms.dc" ... the message first goes to the SMTP mail server for "ksharan@dc.gov.ae".

That SMTP mail server performs an MX record lookup to find "sms.dc". When that SMTP mail server finds "sms.dc", it makes an SMTP connection to the lowest priority host defined in that MX record.

I don't think the MX record lookup is working like you expect.

I think that your mail server is not querying your DNS server ... or the DNS server is not returning the correct information.

Here is what I would do to check ...

On the mail server, run NSLOOKUP ...

Type this:

set type=mx
sms.dc.

The first command tells NSLOOKUP that you want to query MX records.

The second command asks for an MX record lookup for "sms.dc". (The ending period is necessary.)

Try this with different domains to help determine what is wrong with your "sms.dc" setup.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 752
Registered: 08-2008
Posted on Thursday, May 07, 2009 - 07:34 pm:   


quote:

I have aother application on NOWSMS server use the SMTP port 25,if one work the another one is stop.
So do can help me how to configure the server, so both application will working fine?




On the same server, there is only one way.

Two (or more) IP addresses must be assigned to the network interface card.

In NowSMS, on the "MMSC" page, you set the "IP Address" to the one that NowSMS should use.

You would have to do a similar type of configuration in whatever other SMTP software runs on the same machine.

That is the only way that more than one application can listen on the same port number. They have to be bound to different IP addresses.

--
Des
NowSMS Support
Ali Daradkeh
New member
Username: Alidh_80

Post Number: 7
Registered: 03-2009
Posted on Sunday, May 10, 2009 - 10:55 am:   

Regarding tow application on two server , now it's working fine. thank you...

regarding the run nslookup as you mention in last reply ,the mail server return information and see sms.dc.
so is thiers any configuration on exchange mail
server?
Ali Daradkeh
New member
Username: Alidh_80

Post Number: 8
Registered: 03-2009
Posted on Sunday, May 10, 2009 - 01:25 pm:   

i found an snap shot for some conifguration exchange regarding NOWSMS, but i didn't know how i do this?exchange config
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 762
Registered: 08-2008
Posted on Monday, May 11, 2009 - 03:12 pm:   

I've never configured an Exchange Server, so I'm not sure how it interfaces with DNS.

However, from the limited information that I have read, it appears to read this information from the standard Windows configuration.

I like using command line tools (such as NSLOOKUP which I referenced above) for verifying configuration information.

By default, NSLOOKUP uses the default name server for performing lookups. So if it was able to resolve correctly in your tests and find the MX records for sms.dc, then that should be ok.

Can you show me a snapshot of what NSLOOKUP returns when you issue these commands?

set type=mx
sms.dc.

I don't think anything else is necessary to configure in Exchange.

What error do you get back when you try to send to phonenumber@sms.dc via the Exchange Server?

--
Des
NowSMS Support
Ali Daradkeh
New member
Username: Alidh_80

Post Number: 9
Registered: 03-2009
Posted on Monday, May 11, 2009 - 04:18 pm:   

this is the problem i don't receive any error massage or even a failur notification!
so i assume that the Exchange doesn't see the new ZONE, so i use the main domain and create inside an MX record relay to NowSMS server called(sms), and i run the NSLOOKUP you sent for new MX, and he return the same information as returned for sms.dc. "i will send asnapshot for return info's".
i send test email and the result the same no massage come.

.......
Thank you....
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 765
Registered: 08-2008
Posted on Monday, May 11, 2009 - 09:11 pm:   

I wish I knew more about Exchange Server troubleshooting.

Are there any logs in Exchange Server that might show what happened to the message?
Ali Daradkeh
New member
Username: Alidh_80

Post Number: 10
Registered: 03-2009
Posted on Tuesday, May 12, 2009 - 07:48 am:   

application/octet-streamNslookup command result
sms.rtf (1392.7 k)
Ali Daradkeh
New member
Username: Alidh_80

Post Number: 11
Registered: 03-2009
Posted on Tuesday, May 12, 2009 - 09:16 am:   

can you please explain to me how NOWSMS work regrading external mails?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 768
Registered: 08-2008
Posted on Tuesday, May 12, 2009 - 02:49 pm:   


quote:

can you please explain to me how NOWSMS work regrading external mails?




For receiving these e-mails, it listens for connections on the SMTP port.

That's why I had you look at the MMSCDEBUG.LOG activity earlier. It showed a local client SMTP connection being received, but no connections from another mail server.

Looking at the NSLOOKUP results, I see the SMS MX record resolves to DCHELP. Is DCHELP the server on which NowSMS is running?

--
Des
NowSMS Support
Ali Daradkeh
New member
Username: Alidh_80

Post Number: 12
Registered: 03-2009
Posted on Tuesday, May 12, 2009 - 04:00 pm:   

yes, DChelp is the NOWSMS serevr.
so what is i need to do now? and to check the connectivity to another mail server?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 771
Registered: 08-2008
Posted on Tuesday, May 12, 2009 - 04:37 pm:   

You could try sending from another mail server on your network. But, what I think would really help would be if there is some way to do a message trace in the Exchange Server.

I wish I had first hand experience in installing/managing an Exchange Server ... but I don't.

I think what you need to do is enable protocol logging in the SMTP transport so that you can trace/track the message to see how Exchange is attempting to route it.

I did a little searching around, and I think I found some relevant information in Microsoft Technet. Take a look at the following link, and see if you can enable the protocol logging and track what is happening to the message when Exchange Server routes it:

http://technet.microsoft.com/pt-br/library/bb124469(EXCHG.65).aspx

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 772
Registered: 08-2008
Posted on Tuesday, May 12, 2009 - 04:38 pm:   

Hmm ... the discussion board software didn't like that link because it includes parentheses.

Try this:

http://technet.microsoft.com/pt-br/library/bb124469%28EXCHG.65%29.aspx