⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gw-install

📁 手机短消息的服务器端和客户端的源代码 是应用于LINUX/UNIX开发环境的
💻
字号:
[../images/smslink.gif] [../images/mobile.gif]-------------------------------------------------------------------------------SMSLink SMS to Mail Gateway Installation Procedure1./ Configure your domain name.The DNS domain your machine was to be made part of was probably configured whenyou 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 throughgetdomainname(2), it needs to be first set through a call to domainname(1). Notall Linux distros set that up by default.Under Suse, you can set the YP_DOMAINNAME variable in /etc/rc.config. UnderSlackWare, I put my domain in /etc/DOMAINNAME and modified /etc/rc.M to includethe 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 (oranother MTA) on the localhost (that target can be overridden by editingsms_serv.h in smslink/server and modifying the MAILHOST define).This means that you should make sure sendmail (or other) is properly configuredon your machine and able to deliver outbound mail. Ability to deliver inboundmail 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 toaccomodate your platform, then type make. A few warnings might be issued duringthe 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 allrelated man pages). You can choose to compile only the gateway module by typingmake 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, itrequires root capabilities to successfully start the service, as only root canaccess the GSM device by default. This is not a problem since it will mostlikely be started by init.Should you wish to have the gateway started by another user, make sure theaccess 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 followingformat (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 valuecan 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]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -