GW-INSTALL
上传用户:eo_sii
上传日期:2007-01-05
资源大小:91k
文件大小:3k
- [../images/smslink.gif] [../images/mobile.gif]
- -------------------------------------------------------------------------------
- SMSLink SMS to Mail Gateway Installation Procedure
- 1./ Configure your domain name.
- The DNS domain your machine was to be made part of was probably configured when
- you first installed it. If so, it will be defined for instance in your /etc/
- resolv.conf. But in order for the application to be able to pick it up through
- getdomainname(2), it needs to be first set through a call to domainname(1). Not
- all Linux distros set that up by default.
- Under Suse, you can set the YP_DOMAINNAME variable in /etc/rc.config. Under
- SlackWare, I put my domain in /etc/DOMAINNAME and modified /etc/rc.M to include
- the following line:
- /bin/domainname `cat /etc/DOMAINNAME`
- 2./ Make sure mail delivery is working.
- By default, sms2mailgw(1) will try to deliver mail by contacting sendmail (or
- another MTA) on the localhost (that target can be overridden by editing
- sms_serv.h in smslink/server and modifying the MAILHOST define).
- This means that you should make sure sendmail (or other) is properly configured
- on your machine and able to deliver outbound mail. Ability to deliver inbound
- mail should be checked as well for future extensions and failure reports.
- 3./ Untar and compile SMSLink.
- If not done yet, untar this distribution package (for instance under /usr/src),
- change directory to smslink/server, modify the first part of the Makefile to
- accomodate your platform, then type make. A few warnings might be issued during
- the compile phase, but those can be safely ignored.
- When compiled successfully, type make install as root.
- Note that this will install both sms_serv(1) and sms2mailgw(1) (as well as all
- related man pages). You can choose to compile only the gateway module by typing
- make sms2mailgw, but there is no separate install instructions.
- 4./ Arrange for the service to be started at boot time.
- Edit your init scripts to have the service started at boot time. Normally, it
- requires root capabilities to successfully start the service, as only root can
- access the GSM device by default. This is not a problem since it will most
- likely be started by init.
- Should you wish to have the gateway started by another user, make sure the
- access rights on the inbox file are set accordingly.
- 5./ Test your installation.
- Now that the gateway is installed, configured and started, time to test it.
- From a GSM, send an SMS to your server where the message obeys to the following
- format (see sms2mailgw(1) for more details):
- t:somebody@somedomain This is a test.
- Please note: the email address given above should be adapted to your needs.
- Then wait for up to 1 hour for the inbox to be processed (the interval value
- can be reduced or enlarged by modifying the MBCHKINTERVAL define in server/
- sms_serv.h), and go check your mailbox.
- That's all, Folks...
- -------------------------------------------------------------------------------
- Last Modified: March 13th, 2000. [http://lines0.uwic.ac.uk/cgi-bin/
- philippe_andersson@ste.scitex.com Count.cgi?dd=B|frgb=100;100;100|df=smslink.dat]